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 @@