From 4733d3c3b279dd4c62461b78af44aa417333d23f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Sun, 20 Oct 2024 17:00:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=89=8C=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/full-routers.js | 27 ++++ src/views/modules/brand/config/index.vue | 108 +++++++++++++ .../brand/config/popup/add-or-update.vue | 148 ++++++++++++++++++ src/views/modules/product/index.vue | 144 +++++++++-------- 4 files changed, 358 insertions(+), 69 deletions(-) create mode 100644 src/views/modules/brand/config/index.vue create mode 100644 src/views/modules/brand/config/popup/add-or-update.vue diff --git a/src/router/full-routers.js b/src/router/full-routers.js index fe7a742..d307d85 100644 --- a/src/router/full-routers.js +++ b/src/router/full-routers.js @@ -93,6 +93,33 @@ export default { open: null, list: [], }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "品牌管理", + url: "", + perms: "", + type: 0, + elIcon: "el-icon-money", + orderNum: 0, + open: null, + list: [ + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "品牌管理", + url: "brand/config/index", + perms: "", + type: 1, + elIcon: "el-icon-postcard", + orderNum: 0, + open: null, + list: [], + }, + ], + }, // { // "menuId": getUUID(), // "parentId": 0, diff --git a/src/views/modules/brand/config/index.vue b/src/views/modules/brand/config/index.vue new file mode 100644 index 0000000..779b365 --- /dev/null +++ b/src/views/modules/brand/config/index.vue @@ -0,0 +1,108 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/brand/config/popup/add-or-update.vue b/src/views/modules/brand/config/popup/add-or-update.vue new file mode 100644 index 0000000..ed99012 --- /dev/null +++ b/src/views/modules/brand/config/popup/add-or-update.vue @@ -0,0 +1,148 @@ + + + \ No newline at end of file diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/index.vue index bf23e1a..959977d 100644 --- a/src/views/modules/product/index.vue +++ b/src/views/modules/product/index.vue @@ -1,73 +1,78 @@ @@ -95,6 +100,7 @@ export default { }, productFilterType: "SALE", selectList: [], + shopId: sessionStorage.getItem("userInfo").shopId, }; }, methods: { @@ -289,7 +295,7 @@ export default { render: ({ row }) => { let edit = () => { console.log(row); - + this.$refs.addOrUpdate.toggle(row).update(); }; let priceAdjustment = () => {