From 5466e770e1b8af3ba5eaaea7f621af29f7a363ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Fri, 27 Dec 2024 18:03:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=93=81=E7=89=8C=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/marketing.js | 8 ++ src/router/full-routers.js | 54 ++++++------- src/views/common/home.vue | 7 +- src/views/modules/marketing/user/index.vue | 16 +++- src/views/modules/product/order/index.vue | 9 ++- .../product/order/{ => popup}/content.vue | 0 .../product/order/popup/view-details.vue | 81 +++++++++++++++++++ 7 files changed, 138 insertions(+), 37 deletions(-) rename src/views/modules/product/order/{ => popup}/content.vue (100%) create mode 100644 src/views/modules/product/order/popup/view-details.vue diff --git a/src/api/modules/marketing.js b/src/api/modules/marketing.js index f9a8c08..13a50d5 100644 --- a/src/api/modules/marketing.js +++ b/src/api/modules/marketing.js @@ -146,4 +146,12 @@ export const marketing = { data, }); }, + //概况 + overview: (data) => { + return $http.request({ + url: `/merchant-api/memberUnitUser/overview`, + method: "get", + params: data, + }); + }, }; diff --git a/src/router/full-routers.js b/src/router/full-routers.js index d580fd2..8c203a3 100644 --- a/src/router/full-routers.js +++ b/src/router/full-routers.js @@ -92,33 +92,6 @@ export default { }, ], }, - { - 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: "logistics-fare/logistics-template/index", - perms: "", - type: 1, - elIcon: "el-icon-postcard", - orderNum: 0, - open: null, - list: [], - }, - ], - }, { menuId: getUUID(), parentId: 0, @@ -477,6 +450,33 @@ export default { }, ], }, + { + 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: "logistics-fare/logistics-template/index", + perms: "", + type: 1, + elIcon: "el-icon-postcard", + orderNum: 0, + open: null, + list: [], + }, + ], + }, ], code: 0, permissions: [], diff --git a/src/views/common/home.vue b/src/views/common/home.vue index 743996c..c89f998 100644 --- a/src/views/common/home.vue +++ b/src/views/common/home.vue @@ -119,7 +119,7 @@ export default { JSON.parse(sessionStorage.getItem("password")) == "123456" && JSON.parse(sessionStorage.getItem("role")) === "ROLE_BRAND_MANAGER" ) { - this.dialogVisible = false; + this.dialogVisible = true; } }, methods: { @@ -128,8 +128,9 @@ export default { console.log(valid); if (valid) { this.$api.mer_admin - .simplePassword({ - password: this.form.password, + .changePassword({ + oldPassword: JSON.parse(sessionStorage.getItem("password")), + newPassword: this.form.password, }) .then((res) => { this.$api.logout().then(({ data }) => { diff --git a/src/views/modules/marketing/user/index.vue b/src/views/modules/marketing/user/index.vue index 9f7d1b8..13a91f5 100644 --- a/src/views/modules/marketing/user/index.vue +++ b/src/views/modules/marketing/user/index.vue @@ -92,7 +92,9 @@