From 672422b4127c95ee029139d2bc65b465ce90fc78 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Sat, 2 Apr 2022 18:50:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E7=AD=89=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Sidebar.vue | 2 +- src/setting.js | 4 ++-- src/utils/api.js | 22 +++++++++++----------- src/views/Login.vue | 3 ++- src/views/course/AddCurriculum.vue | 17 ++++++++++++++--- src/views/customer/customer.vue | 2 ++ src/views/order/AddOrder.vue | 14 +++++++------- 7 files changed, 39 insertions(+), 25 deletions(-) diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 832e786..543fcbb 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -94,7 +94,7 @@ export default { }, ], menus: [], - onRoutes:'customer' + onRoutes: this.$route.path }; }, watch:{ diff --git a/src/setting.js b/src/setting.js index 1f71347..82aca0a 100644 --- a/src/setting.js +++ b/src/setting.js @@ -13,9 +13,9 @@ if (isDev) { // jumpPath = "http://39.108.250.202/judgmentPoint/"; jumpPath = "http://192.168.31.125:8087/"; // 本地调试-需要启动本地判分点系统 // host = "http://www.huorantech.cn:9000";//线上 - // host = "http://39.108.250.202:9000/";//测试 + host = "http://39.108.250.202:9000/";//测试 // host = 'http://192.168.31.151:9000/'// 榕 - host = 'http://192.168.31.137:9000/'// 赓 + // host = 'http://192.168.31.137:9000/'// 赓 } else if (isTest) { // jumpPath = "http://124.71.12.62/judgmentPoint/"; jumpPath = "http://39.108.250.202/judgmentPoint/"; diff --git a/src/utils/api.js b/src/utils/api.js index c56cd8c..678c68d 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -218,17 +218,17 @@ export default { getKeywordByCategoryId: `data/keyword/getKeywordByCategoryId`, // 后台账号 - deleteArch: `${host}nakadai/staffAccountArchitecture/delete`, - saveArch: `${host}nakadai/staffAccountArchitecture/save`, - treeListArch: `${host}nakadai/staffAccountArchitecture/treeList`, - updateArch: `${host}nakadai/staffAccountArchitecture/update`, - delStaff: `${host}nakadai/backstageStaff/delStaff`, - modifyStaff: `${host}nakadai/backstageStaff/modifyStaff`, - saveStaff: `${host}nakadai/backstageStaff/saveStaff`, - staffDetail: `${host}nakadai/backstageStaff/staffDetail`, - staffList: `${host}nakadai/backstageStaff/staffList`, - importStaff: `${host}nakadai/backstageStaff/importStaff`, - exportFailure: `${host}nakadai/backstageStaff/exportFailure`, + deleteArch: `nakadai/staffAccountArchitecture/delete`, + saveArch: `nakadai/staffAccountArchitecture/save`, + treeListArch: `nakadai/staffAccountArchitecture/treeList`, + updateArch: `nakadai/staffAccountArchitecture/update`, + delStaff: `nakadai/backstageStaff/delStaff`, + modifyStaff: `nakadai/backstageStaff/modifyStaff`, + saveStaff: `nakadai/backstageStaff/saveStaff`, + staffDetail: `nakadai/backstageStaff/staffDetail`, + staffList: `nakadai/backstageStaff/staffList`, + importStaff: `nakadai/backstageStaff/importStaff`, + exportFailure: `nakadai/backstageStaff/exportFailure`, // 角色管理 batchRemove: `users/role/batchRemove`, //批量删除角色 diff --git a/src/views/Login.vue b/src/views/Login.vue index d6c44d2..5e19fad 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -198,9 +198,10 @@ export default { const { message } = res sessionStorage.setItem('token',res.data.token) this.$get(`${this.api.getUserRolesPermissionMenu}?platformId=${Setting.platformId}`).then(res => { + const list = res.permissionMenu this.$message.success(message); this.$router.push({ - path:'/customer' + path: list[0].children[0].path }); localStorage.setItem('ms_username', this.param.username); }).catch(err => { diff --git a/src/views/course/AddCurriculum.vue b/src/views/course/AddCurriculum.vue index db44aba..ee807df 100644 --- a/src/views/course/AddCurriculum.vue +++ b/src/views/course/AddCurriculum.vue @@ -136,7 +136,11 @@ - + + +