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

调整侧边栏

上级 030e72a8
...@@ -268,6 +268,8 @@ ...@@ -268,6 +268,8 @@
} }
}, },
created() { created() {
let storeId = localStorage.getItem('storeId') || 0;
this.searchForm.storeId = storeId;
this.searchList(); this.searchList();
}, },
methods: { methods: {
......
...@@ -451,15 +451,21 @@ ...@@ -451,15 +451,21 @@
// 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 shop1 = { const shop = {
title: '云鹊店铺',
icon: 'el-icon-first-aid-kit',
index: 'shop-list'
};
vm.items.push(shop);
const shop1 = {
title: '商品管理', title: '商品管理',
icon: 'el-icon-first-aid-kit', icon: 'el-icon-first-aid-kit',
index: 'goods-manage' index: 'goods-manage'
...@@ -470,7 +476,7 @@ ...@@ -470,7 +476,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) {
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<el-row> <el-row>
<el-col :span="24" style="text-align: right"> <el-col :span="24" style="text-align: right">
<el-button type="primary" size="small" @click="createShop" :disabled="!canAdd">新建店铺</el-button> <el-button type="primary" size="small" @click="createShop" :disabled="!canAdd">新建店铺</el-button>
<!--<el-button type="primary" size="small" @click="createShop">新建店铺</el-button>-->
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
...@@ -144,9 +145,9 @@ ...@@ -144,9 +145,9 @@
} }
}, },
created() { created() {
// this.initPrivilege();
this.getAddAuth(); this.getAddAuth();
// this.searchList(); this.searchList();
localStorage.setItem('storeId', 0)
}, },
methods: { methods: {
getAddAuth() { getAddAuth() {
...@@ -210,6 +211,7 @@ ...@@ -210,6 +211,7 @@
storeId: row.tradeStore.id, storeId: row.tradeStore.id,
} }
}) })
localStorage.setItem('storeId', row.tradeStore.id)
}, },
//编辑 //编辑
editShop(row) { editShop(row) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册