Commit e81207ea by liuliufashi

update

parent 28d6f871
......@@ -15,11 +15,11 @@
<a-form-item label=" 商品示图" name="picurl" :rules="rulesRef.picurl" :wrapper-col="{ offset: 0, span: 8 }" class="Up"
labelAlign="left" :label-col="{ span: 2 }">
<div class="clearfix">
<a-upload class="clearfix-up" v-model:file-list="fileList" action="http://43.142.42.187:8899/file/upload" list-type="picture-card"
<a-upload class="clearfix-up" v-model:file-list="fileList" action="http://43.142.42.187:8899/file/upload" list-type="picture-card"
:maxCount="1" @preview="handlePreview" @change="handleChange" :before-upload="beforeUpload">
<div v-if="fileList.length < 8">
<plus-outlined />
<div style="margin-top: 8px">Upload</div>
<div style="margin-top: 8px" >Upload</div>
</div>
</a-upload>
<a-modal :visible="previewVisible" :title="previewTitle" :footer="null" @cancel="handleCancel">
......@@ -442,6 +442,9 @@ defineExpose({
}
</style>
<style lang="less">
.page .ant-input-affix-wrapper > input.ant-input{
background-color: white;
}
.clearfix-up-1 {
display: flex;
align-items: center;
......
......@@ -288,7 +288,7 @@ const onSelectPlain = (e: any) => {
const handleChanges = async(value: string) => {
const uid = getUid();
const params = {
name: '',
name: value?value:'',
size:10,
page:1,
uid,
......@@ -479,6 +479,9 @@ defineExpose({
}
</style>
<style lang="less">
.page .ant-input-affix-wrapper > input.ant-input{
background-color: white;
}
.clearfix-up-1 {
display: flex;
align-items: center;
......
......@@ -305,8 +305,8 @@ const tableChange=async(e:any)=>{
};
const uid = getUid();
const prarms: any = {
size: queryData.current_page,
page: queryData.per_page,
size:queryData.per_page,
page:queryData.current_page,
strtus:status.value,
uid,
}
......
......@@ -20,12 +20,15 @@
style="background: #ebebeb"
>
<a-menu-item
v-for="item in store.state.routerList"
v-for="item,index in store.state.routerList"
:key="item"
@click="goNewPage(item)"
@click="goNewPage(item,index)"
>
<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>
</div>
</a-menu-item>
......@@ -63,9 +66,11 @@ interface FormUser {
const router = useRouter();
const store = useStore();
const indexItem = ref<any>(0)
const selectedKeys = ref<string[]>(["1"])
const info = reactive<FormUser>(store.getters.getUserInfo);
const goNewPage = (e: any) => {
const goNewPage = (e: any,index:any) => {
indexItem.value = index
const { path } = e;
router.push({
path,
......@@ -76,9 +81,7 @@ const goNewPage = (e: any) => {
const setRoutet = (list: any) => {
store.commit("setRoutet", list);
};
const getText = (item:any)=>{
return `iconfont ${item.meta.icon}`
}
onMounted(async() => {
const list: any = await getRouters();
const newList:any = router.options.routes[2].children
......
......@@ -228,7 +228,7 @@ const popupScroll = ()=>{
const onSubSearch = async(value:any)=>{
const uid = getUid();
const params = {
name: '',
name: value?value:'',
page:1,
size:10,
uid,
......@@ -237,7 +237,6 @@ const onSubSearch = async(value:any)=>{
optionss.value = data.data.goods
}
const onSelectCheckboxValue = async(e:any,index:any)=>{
index = index+1
const uid =getUid()
let data:any ={}
......
......@@ -242,8 +242,8 @@ const tableChange=async(e:any)=>{
per_page:e.pageSize//每页显示条数
};
const params = {
size: queryData.current_page,
page: queryData.per_page,
size:queryData.per_page,
page:queryData.current_page ,
uid: getUid()
}
const data = await onfindby(params)
......@@ -312,7 +312,7 @@ const onSelect =(e:any,opt:any)=>{
const onSubSearch = async(value:any)=>{
const uid = getUid();
const params = {
name: '',
name: value?value:'',
size:10,
page:1,
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