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

调整侧边栏

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