Commit e81207ea by liuliufashi

update

parent 28d6f871
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
:maxCount="1" @preview="handlePreview" @change="handleChange" :before-upload="beforeUpload"> :maxCount="1" @preview="handlePreview" @change="handleChange" :before-upload="beforeUpload">
<div v-if="fileList.length < 8"> <div v-if="fileList.length < 8">
<plus-outlined /> <plus-outlined />
<div style="margin-top: 8px">Upload</div> <div style="margin-top: 8px" >Upload</div>
</div> </div>
</a-upload> </a-upload>
<a-modal :visible="previewVisible" :title="previewTitle" :footer="null" @cancel="handleCancel"> <a-modal :visible="previewVisible" :title="previewTitle" :footer="null" @cancel="handleCancel">
...@@ -442,6 +442,9 @@ defineExpose({ ...@@ -442,6 +442,9 @@ defineExpose({
} }
</style> </style>
<style lang="less"> <style lang="less">
.page .ant-input-affix-wrapper > input.ant-input{
background-color: white;
}
.clearfix-up-1 { .clearfix-up-1 {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -288,7 +288,7 @@ const onSelectPlain = (e: any) => { ...@@ -288,7 +288,7 @@ const onSelectPlain = (e: any) => {
const handleChanges = async(value: string) => { const handleChanges = async(value: string) => {
const uid = getUid(); const uid = getUid();
const params = { const params = {
name: '', name: value?value:'',
size:10, size:10,
page:1, page:1,
uid, uid,
...@@ -479,6 +479,9 @@ defineExpose({ ...@@ -479,6 +479,9 @@ defineExpose({
} }
</style> </style>
<style lang="less"> <style lang="less">
.page .ant-input-affix-wrapper > input.ant-input{
background-color: white;
}
.clearfix-up-1 { .clearfix-up-1 {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -305,8 +305,8 @@ const tableChange=async(e:any)=>{ ...@@ -305,8 +305,8 @@ const tableChange=async(e:any)=>{
}; };
const uid = getUid(); const uid = getUid();
const prarms: any = { const prarms: any = {
size: queryData.current_page, size:queryData.per_page,
page: queryData.per_page, page:queryData.current_page,
strtus:status.value, strtus:status.value,
uid, uid,
} }
......
...@@ -20,12 +20,15 @@ ...@@ -20,12 +20,15 @@
style="background: #ebebeb" style="background: #ebebeb"
> >
<a-menu-item <a-menu-item
v-for="item in store.state.routerList" v-for="item,index in store.state.routerList"
:key="item" :key="item"
@click="goNewPage(item)" @click="goNewPage(item,index)"
> >
<div style="display: flex; align-items: center" > <div style="display: flex; align-items: center" >
<i :class="getText(item)" style="font-size:24px; padding: 5px;"> </i> <img v-if="index === 0" src="../../assets/img/1.png" alt="" style="width:30px;height: 30px; padding: 5px;"/>
<img v-else-if="index === 1" src="../../assets/img/2.png" alt="" style="width:30px;height: 30px; padding: 5px;" />
<img v-else-if="index === 2" src="../../assets/img/3.png" alt="" style="width:30px;height: 30px; padding: 5px;" />
<img v-else-if="index === 3" src="../../assets/img/1.png" alt="" style="width:30px;height: 30px;padding: 5px;" />
<span class="nav-text" >{{ item.name }}</span> <span class="nav-text" >{{ item.name }}</span>
</div> </div>
</a-menu-item> </a-menu-item>
...@@ -63,9 +66,11 @@ interface FormUser { ...@@ -63,9 +66,11 @@ interface FormUser {
const router = useRouter(); const router = useRouter();
const store = useStore(); const store = useStore();
const indexItem = ref<any>(0)
const selectedKeys = ref<string[]>(["1"]) const selectedKeys = ref<string[]>(["1"])
const info = reactive<FormUser>(store.getters.getUserInfo); const info = reactive<FormUser>(store.getters.getUserInfo);
const goNewPage = (e: any) => { const goNewPage = (e: any,index:any) => {
indexItem.value = index
const { path } = e; const { path } = e;
router.push({ router.push({
path, path,
...@@ -76,9 +81,7 @@ const goNewPage = (e: any) => { ...@@ -76,9 +81,7 @@ const goNewPage = (e: any) => {
const setRoutet = (list: any) => { const setRoutet = (list: any) => {
store.commit("setRoutet", list); store.commit("setRoutet", list);
}; };
const getText = (item:any)=>{
return `iconfont ${item.meta.icon}`
}
onMounted(async() => { onMounted(async() => {
const list: any = await getRouters(); const list: any = await getRouters();
const newList:any = router.options.routes[2].children const newList:any = router.options.routes[2].children
......
...@@ -228,7 +228,7 @@ const popupScroll = ()=>{ ...@@ -228,7 +228,7 @@ const popupScroll = ()=>{
const onSubSearch = async(value:any)=>{ const onSubSearch = async(value:any)=>{
const uid = getUid(); const uid = getUid();
const params = { const params = {
name: '', name: value?value:'',
page:1, page:1,
size:10, size:10,
uid, uid,
...@@ -237,7 +237,6 @@ const onSubSearch = async(value:any)=>{ ...@@ -237,7 +237,6 @@ const onSubSearch = async(value:any)=>{
optionss.value = data.data.goods optionss.value = data.data.goods
} }
const onSelectCheckboxValue = async(e:any,index:any)=>{ const onSelectCheckboxValue = async(e:any,index:any)=>{
index = index+1 index = index+1
const uid =getUid() const uid =getUid()
let data:any ={} let data:any ={}
......
...@@ -242,8 +242,8 @@ const tableChange=async(e:any)=>{ ...@@ -242,8 +242,8 @@ const tableChange=async(e:any)=>{
per_page:e.pageSize//每页显示条数 per_page:e.pageSize//每页显示条数
}; };
const params = { const params = {
size: queryData.current_page, size:queryData.per_page,
page: queryData.per_page, page:queryData.current_page ,
uid: getUid() uid: getUid()
} }
const data = await onfindby(params) const data = await onfindby(params)
...@@ -312,7 +312,7 @@ const onSelect =(e:any,opt:any)=>{ ...@@ -312,7 +312,7 @@ const onSelect =(e:any,opt:any)=>{
const onSubSearch = async(value:any)=>{ const onSubSearch = async(value:any)=>{
const uid = getUid(); const uid = getUid();
const params = { const params = {
name: '', name: value?value:'',
size:10, size:10,
page:1, page:1,
uid, uid,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment