diff --git a/src/router/index.js b/src/router/index.js index f5d6225..6165abf 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -218,6 +218,20 @@ export const dynamicRoutes = [ }, ], }, + { + path: "/wcs/space-info", + component: Layout, + hidden: true, + permissions: ["base:storeInfo:list"], + children: [ + { + path:"index/:storeCode", + component:() => import("@/views/base/spaceInfo/index"), + name:"childSpaceInfo", + meta: {title: "货道信息",activeMenu: "/base/spaceInfo"}, + }, + ], + }, ] // 防止连续点击多次路由报错 diff --git a/src/views/base/spaceInfo/index.vue b/src/views/base/spaceInfo/index.vue index 0357665..d556dd8 100644 --- a/src/views/base/spaceInfo/index.vue +++ b/src/views/base/spaceInfo/index.vue @@ -2,12 +2,14 @@
- + + + @@ -88,6 +90,15 @@ >导出 + + 关闭 + @@ -295,6 +306,7 @@ export default { }; }, created() { + this.queryParams.storeCode = this.$route.params && this.$route.params.storeCode; this.getList(); findStoreList().then(response => { this.storeList = response.data; @@ -345,6 +357,11 @@ export default { this.resetForm("queryForm"); this.handleQuery(); }, + /** 返回按钮操作 */ + handleClose() { + const obj = { path: "/wcs/storeInfo" }; + this.$tab.closeOpenPage(obj); + }, // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.objId) diff --git a/src/views/base/storeInfo/index.vue b/src/views/base/storeInfo/index.vue index 6fb8fe0..9cd1a02 100644 --- a/src/views/base/storeInfo/index.vue +++ b/src/views/base/storeInfo/index.vue @@ -133,6 +133,12 @@