提交 ce7c9b01 编写于 作者: yi.li's avatar yi.li

侧边栏改造

上级 a2ae408b
<template>
<div class="yqshop-wrapper">
<bread-crumb :curmbFirst="curmbFirst"></bread-crumb>
<bread-crumb :curmbFirst="curmbFirst" :curmbSecond="curmbSecond"></bread-crumb>
<div class="yqshop-content screenSet" id="screenSet">
<div class="header-title">商品管理</div>
<el-form ref="searchForm" :model="searchForm" label-width="80px" label-suffix=":" :inline="true">
......@@ -188,6 +188,7 @@
data(){
return{
curmbFirst: '云鹊店铺',
curmbSecond: '店铺管理',
showAllFlag: false,
showNewFlag: false,
batchDialog:false,
......
......@@ -207,7 +207,7 @@
},
data(){
return{
curmbFirst: '店铺管理',
curmbFirst: '云鹊店铺',
curmbSecond: '订单管理',
activeName: 'all',
showAllFlag: false,
......@@ -268,8 +268,7 @@
}
},
created() {
let storeId = localStorage.getItem('storeId') || 0;
this.searchForm.storeId = storeId;
this.searchForm.storeId = this.$route.query.storeId || 0,
this.searchList();
},
methods: {
......@@ -300,7 +299,7 @@
this.activeName = 'all';
this.searchForm = {
showStatus: -1,
storeId: 0,
storeId: this.$route.query.storeId,
goodsName: '',
orderNo: '',
receiver: '',
......
......@@ -229,16 +229,6 @@
return 0;
}
},
getGoodsAuth() {
let isShowGoods = localStorage.getItem('isShowGoods')
if (isShowGoods == 1) {
this.isShowGoods = true;
localStorage.setItem('isShowGoods', 2)
}else {
this.isShowGoods = false;
localStorage.setItem('isShowGoods', 2)
}
},
getRoleObj() {
getCircleRole({}).then((res) => {
localStorage.removeItem('highMainManager');
......@@ -447,19 +437,19 @@
},
setShopSide(){
queryShopAuth().then(res => {
//0 表示超级管理员,大于0 表示小店或供应商,null 表示非法用户
// if (res.data == null) {
// return;
// }else {
// const shop = {
// title: '云鹊店铺',
// icon: 'el-icon-first-aid-kit',
// index: 'shop-list'
// };
// vm.items.push(shop);
// }
// 0 表示超级管理员,大于0 表示小店或供应商,null 表示非法用户
if (res.data == null) {
return;
}else {
const shop = {
title: '云鹊店铺',
icon: 'el-icon-first-aid-kit',
index: 'shop-list'
};
vm.items.push(shop);
}
})
const shop = {
/*const shop = {
title: '云鹊店铺',
icon: 'el-icon-first-aid-kit',
index: 'shop-list'
......@@ -476,7 +466,7 @@
icon: 'el-icon-first-aid-kit',
index: 'order-manage'
};
vm.items.push(shop2);
vm.items.push(shop2);*/
},
goToMessageSendPage(checkAuth) {
......
......@@ -76,6 +76,7 @@
<div>
<el-button @click="editShop(scope.row)" type="text" size="small">编辑</el-button>
<el-button @click="shopManage(scope.row)" type="text" size="small">店铺管理</el-button>
<el-button @click="orderManage(scope.row)" type="text" size="small">订单管理</el-button>
</div>
</template>
</el-table-column>
......@@ -147,7 +148,6 @@
created() {
this.getAddAuth();
this.searchList();
localStorage.setItem('storeId', 0)
},
methods: {
getAddAuth() {
......@@ -204,14 +204,20 @@
},
//店铺管理
shopManage(row) {
localStorage.setItem('isShowGoods', 1)
this.$router.push({
path: '/goods-manage',
query: {
storeId: row.tradeStore.id,
}
})
localStorage.setItem('storeId', row.tradeStore.id)
},
orderManage(row) {
this.$router.push({
path: '/order-manage',
query: {
storeId: row.tradeStore.id,
}
})
},
//编辑
editShop(row) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册