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

侧边栏改造

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