瀏覽代碼

切换token名 切换域名代理

Shannon_mu 3 年之前
父節點
當前提交
e9fa80ecd4
共有 30 個文件被更改,包括 73 次插入77 次删除
  1. 6 6
      login/src/components/ToggleTenant.vue
  2. 0 1
      login/src/main.js
  3. 2 2
      login/src/utils/http.js
  4. 7 6
      login/src/views/Login/index.vue
  5. 1 1
      login/src/views/Nav/index.vue
  6. 8 12
      login/src/views/NewNav/index.vue
  7. 2 2
      login/vue.config.js
  8. 1 1
      userCenter/src/api/common_api.js
  9. 1 1
      userCenter/src/components/common/Header.vue
  10. 1 1
      userCenter/src/config/env.development.js
  11. 1 1
      userCenter/src/config/env.production.js
  12. 2 2
      userCenter/src/config/env.sit.js
  13. 6 6
      userCenter/src/utils/http.js
  14. 1 1
      userCenter/src/utils/initMap.js
  15. 3 3
      userCenter/src/views/sysManage/appVersionManage/index.vue
  16. 3 3
      userCenter/src/views/sysManage/appVersionManage/popups/addAppVersionManage.vue
  17. 3 3
      userCenter/src/views/sysManage/cameraManage/cameraManage.vue
  18. 1 1
      userCenter/src/views/sysManage/cameraManage/popups/addOrEditCamera.vue
  19. 3 3
      userCenter/src/views/sysManage/deviceManage/deviceManage.vue
  20. 1 1
      userCenter/src/views/sysManage/deviceManage/popups/addOrEditDevice.vue
  21. 1 1
      userCenter/src/views/sysManage/deviceManage/popups/addOrEditScene.vue
  22. 3 3
      userCenter/src/views/sysManage/deviceManage/sceneManage.vue
  23. 1 1
      userCenter/src/views/sysManage/revenueManagement/index.vue
  24. 4 4
      userCenter/src/views/sysManage/sysSet/index.vue
  25. 2 2
      userCenter/src/views/system/menus/popups/AddOrEdit.vue
  26. 2 2
      userCenter/src/views/system/menus/popups/EditForm.vue
  27. 1 1
      userCenter/src/views/system/tenants/popups/AddOrEdit.vue
  28. 1 1
      userCenter/src/views/system/users/popups/AddOrEditUserInfo.vue
  29. 2 2
      userCenter/src/views/system/users/popups/edituser.vue
  30. 3 3
      userCenter/vue.config.js

+ 6 - 6
login/src/components/ToggleTenant.vue

@@ -33,17 +33,17 @@ export default {
                 this.$parent.toggleTenant();
                 return;
             }
-            debugger;
             if (this.$route.path == '/nav') {
                 this.$parent.selectTenant(item);
             } else {
-                window.sessionStorage.setItem('datas', JSON.stringify(this.selectDta));
+                window.sessionStorage.setItem('loginJson', JSON.stringify(this.selectDta));
+                window.sessionStorage.setItem('loginJsonActive', JSON.stringify(item ));
                 this.$router.push({
                     path: '/nav',
-                    query: {
-                        phone: item.phone,
-                        tenantId: item.tenantId
-                    }
+                    // query: {
+                    //     phone: item.phone,
+                    //     tenantId: item.tenantId
+                    // }
                 });
             }
         }

+ 0 - 1
login/src/main.js

@@ -27,7 +27,6 @@ Vue.prototype.$http = http;
 //使用钩子函数对路由进行权限跳转
 router.beforeEach((to, from, next) => {
     if(!/^(\/|\/login)$/.test(to.path)) {
-        debugger;
         // 判断是否登录
         if(localStorage.getItem('SC_token')) {
             next();

+ 2 - 2
login/src/utils/http.js

@@ -15,7 +15,7 @@ http.interceptors.request.use(
     config => {
         // 所有请求都添加/user-auth前缀,方便接口代理
         // config.url = `/user-auth${config.url}`;
-        config.url = `${config.url.indexOf('/user-center') == 0 ? '' : '/user-auth'}${config.url}`;
+        config.url = `${config.url.indexOf('/sc-user-center') == 0 ? '' : '/sc-user-auth'}${config.url}`;
         config.headers[localStorage.getItem('SC_token') && 'Authorization'] = 'Bearer ' + localStorage.getItem('SC_token');
         // 全局添加cancelToken
         config.cancelToken = source.token;
@@ -33,7 +33,7 @@ http.interceptors.response.use(
     err => {
         if (err&&err.response.status == 401) {
             axios({
-                url:'/user-auth/user/getUserStatus?accessToken='+localStorage.getItem('SC_token'),
+                url:'/sc-user-auth/user/getUserStatus?accessToken='+localStorage.getItem('SC_token'),
                 method:'get'
             }).then((response)=>{
               if (window.relogin) return false;

+ 7 - 6
login/src/views/Login/index.vue

@@ -258,7 +258,7 @@ export default {
         },
         refreshCode() {
             this.loginData.random = this.getRandom();
-            this.loginData.codeUrl = `/user-auth/validateCode/image?random=${this.loginData.random}`;
+            this.loginData.codeUrl = `/sc-user-auth/validateCode/image?random=${this.loginData.random}`;
         },
         //获取手机验证码
         getCode() {
@@ -402,14 +402,15 @@ export default {
                         console.log('this.loginInfoArr', this.loginInfoArr);
                         this.$store.commit('setloginInfo', data.loginInfo[0]);
                         this.jumpAnimate = true;
-                        window.sessionStorage.setItem('datas', JSON.stringify(this.loginInfoArr));
+                        window.sessionStorage.setItem('loginJson', JSON.stringify(this.loginInfoArr));
+                         window.sessionStorage.setItem('loginJsonActive', JSON.stringify(this.loginInfoArr[0]));
                         setTimeout(() => {
                             this.$router.push({
                                 path: '/nav',
-                                query: {
-                                    phone: this.loginInfoArr[0].phone,
-                                    tenantId: this.loginInfoArr[0].tenantId
-                                }
+                                // query: {
+                                //     phone: this.loginInfoArr[0].phone,
+                                //     tenantId: this.loginInfoArr[0].tenantId
+                                // }
                             });
                         }, 1500);
                     }

+ 1 - 1
login/src/views/Nav/index.vue

@@ -131,7 +131,7 @@ export default {
             }
         },
         getNavList() {
-            this.$http.get('/user-center/user/findUserFirstMenu').then(({ status, data, msg }) => {
+            this.$http.get('/sc-user-center/user/findUserFirstMenu').then(({ status, data, msg }) => {
                 if (0 === status) {
                     if(data&&data.length>10){
                       let newdata=data.slice(0,10);

+ 8 - 12
login/src/views/NewNav/index.vue

@@ -71,7 +71,8 @@ export default {
                     localStorage.removeItem('menupath');
                     localStorage.removeItem('ms_username');
                     this.$store.commit('setloginInfo', '');
-                    sessionStorage.removeItem('tabs');
+                    // sessionStorage.removeItem('tabs');
+                    sessionStorage.clear();
                     this.$router.push({
                         path: '/login'
                     });
@@ -119,7 +120,7 @@ export default {
             }
         },
         getNavList() {
-            this.$http.get('/user-center/user/findUserFirstMenu').then(({ status, data, msg }) => {
+            this.$http.get('/sc-user-center/user/findUserFirstMenu').then(({ status, data, msg }) => {
                 if (0 === status) {
                     if (data && data.length > 10) {
                         let newdata = data.slice(0, 10);
@@ -154,20 +155,15 @@ export default {
                 this.toggleTenant();
                 return;
             }
-            window.sessionStorage.setItem('datas', JSON.stringify(this.selectDta));
-            this.$router.push({
-                path: '/nav',
-                query: {
-                    phone: item.phone,
-                    tenantId: item.tenantId
-                }
-            });
+            window.sessionStorage.setItem('loginJson', JSON.stringify(this.selectDta));
+            window.sessionStorage.setItem('loginJsonActive', JSON.stringify(item));
             this.getlogin();
         },
         getlogin() {
             this.isSelectTenant = false;
-            let { phone, tenantId } = this.$route.query;
-            this.selectDta = JSON.parse(window.sessionStorage.getItem('datas'));
+            // let { phone, tenantId } = this.$route.query;
+            this.selectDta = JSON.parse(window.sessionStorage.getItem('loginJson'));
+            let { phone, tenantId } = JSON.parse(window.sessionStorage.getItem('loginJsonActive'));
             this.selectDta.map((item, index) => {
                 if (item.tenantId == tenantId) {
                     this.tenantName = item.tenantName;

+ 2 - 2
login/vue.config.js

@@ -81,7 +81,7 @@ module.exports = {
         open: false, // 配置自动启动浏览器  open: 'Google Chrome'-默认启动谷歌
         // 配置多个代理
         proxy: {
-            '/user-auth': {
+            '/sc-user-auth': {
                 target: envConfig.baseApi,
                 ws: true, // 代理的WebSockets
                 changeOrigin: true, // 允许websockets跨域
@@ -90,7 +90,7 @@ module.exports = {
                     /* "^/api": "" */
                 }
             },
-            '/user-center':{
+            '/sc-user-center':{
                 target: envConfig.baseApi,
                 ws: true, // 代理的WebSockets
                 changeOrigin: true, // 允许websockets跨域

+ 1 - 1
userCenter/src/api/common_api.js

@@ -13,7 +13,7 @@ export default (http) => ({
   */
   getTreeData: (sysId = '', type = '') => http.get(`/common/getTreeData?sysId=${sysId}&type=${type}`),
   /*查询字典库数据*/
-  getDictionaryData: (parentDictCode = '') => http.post('/user-center/dict/selectList',{parentDictCode}),
+  getDictionaryData: (parentDictCode = '') => http.post('/sc-user-center/dict/selectList',{parentDictCode}),
   /*获取相关gis服务 */
   getGis:(serviceType='')=>http.post('/systemSetting/selectGis',{serviceType}),
 })

+ 1 - 1
userCenter/src/components/common/Header.vue

@@ -129,7 +129,7 @@ export default {
         // 退出登录
         logOut() {
             var access_token = localStorage.getItem('SC_token');
-            this.$http.postForm('/user-auth/user/logout', { access_token: access_token }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-auth/user/logout', { access_token: access_token }).then(({ status, data, msg }) => {
                 if (0 === status) {
                     this.$message({
                         type: 'success',

+ 1 - 1
userCenter/src/config/env.development.js

@@ -36,5 +36,5 @@ module.exports = {
     imageSize: 5, // MB
     excelSize: 10 // MB
   },
-  staticsPath: "http://114.135.61.187:38081/user-center/statics"
+  staticsPath: "http://114.135.61.187:38081/sc-user-center/statics"
 };

+ 1 - 1
userCenter/src/config/env.production.js

@@ -23,5 +23,5 @@ module.exports = {
     imageSize: 5, // MB
     excelSize: 10 // MB
   },
-  staticsPath: "http://114.135.61.187:38081/user-center/statics"
+  staticsPath: "http://114.135.61.187:38081/sc-user-center/statics"
 };

+ 2 - 2
userCenter/src/config/env.sit.js

@@ -8,12 +8,12 @@
 module.exports = {
     edition: "production",
     Env: "sit", // 商用环境: prod   |   演示环境: demo
-    baseUrl: "http://114.135.61.186:21020/userCenter/", // 项目地址
+    baseUrl: "http://114.135.61.186:21020/sc-system/", // 项目地址
     baseApi: "http://114.135.61.186:21020", // 本地api请求地址
     baseImgApi: "http://114.135.61.186:21020", // 图片api请求地址
     baseExcelApi: "http://114.135.61.186:21020", // excel请求地址
     baseMapApi:"http://114.135.61.187:38082",
-    loginUrl: "http://114.135.61.186:21020/login/login", // 项目地址
+    loginUrl: "http://114.135.61.186:21020/sc-login/", // 项目地址
     websoketUrl:'114.135.61.186:21020',
     warnDetailUrl:"http://114.135.61.186:21020/dispatch/warnDetail",// 综合调度系统-系统管理-报警管理-报警详情界面
     twosupplywarnDetailUrl:"http://114.135.61.186:21020/secondwatersupply/warnDetail",// 二供系统-报警管理-报警详情界面

+ 6 - 6
userCenter/src/utils/http.js

@@ -13,9 +13,9 @@ var http = axios.create({
 // axios request 拦截器
 http.interceptors.request.use(
     (config) => {
-        // 所有请求都添加/user-auth前缀,方便接口代理
-        // config.url = `/user-auth${config.url}`;
-        if (config.url.indexOf('/user-auth') !== -1) {
+        // 所有请求都添加/sc-user-auth前缀,方便接口代理
+        // config.url = `/sc-user-auth${config.url}`;
+        if (config.url.indexOf('/sc-user-auth') !== -1) {
             config.url = config.url;
         } else if (config.url.indexOf('/uims-message') !== -1) {
             config.url = config.url;
@@ -25,11 +25,11 @@ http.interceptors.request.use(
         else if (config.url.indexOf('/zoniot-water') !== -1) {
             config.url = config.url;
         }
-        else if (config.url.indexOf('/user-center') !== -1) {
+        else if (config.url.indexOf('/sc-user-center') !== -1) {
             config.url = config.url;
         }
         else {
-            config.url = `/user-center${config.url}`;
+            config.url = `/sc-user-center${config.url}`;
         }
         // config.headers['Accept'] = '*/*'
         config.headers[localStorage.getItem('SC_token') && 'Authorization'] = 'Bearer ' + localStorage.getItem('SC_token');
@@ -49,7 +49,7 @@ http.interceptors.response.use(
     (err) => {
         if (err.response.status == 401) {
             axios({
-                url: '/user-auth/user/getUserStatus?accessToken=' + localStorage.getItem('SC_token'),
+                url: '/sc-user-auth/user/getUserStatus?accessToken=' + localStorage.getItem('SC_token'),
                 method: 'get'
             }).then((response) => {
                 if (window.relogin) return false;

+ 1 - 1
userCenter/src/utils/initMap.js

@@ -102,7 +102,7 @@ export default {
             esriLoader.loadCss(this.envConfig.baseMapApi + '/arcgis/esri/css/main.css');
             // esriLoader.loadCss(this.testMapurlCss);
             new Promise((resolve, reject) => {
-                this.$http.post('/user-center/dict/selectList', { parentDictCode: 'GIS_SERVER_TYPE' }).then(({ status, data, msg }) => {
+                this.$http.post('/sc-user-center/dict/selectList', { parentDictCode: 'GIS_SERVER_TYPE' }).then(({ status, data, msg }) => {
                     if (0 === status) {
                         _self.allserviceType = data;
                     }

+ 3 - 3
userCenter/src/views/sysManage/appVersionManage/index.vue

@@ -137,7 +137,7 @@ export default {
             });
     },
     getVersionList() {
-      this.mixins_dataUrl = '/user-center/verManage/findVerManage';
+      this.mixins_dataUrl = '/sc-user-center/verManage/findVerManage';
       this.mixins_pageset = {
           pageNum: this.mixins_pageset.pageNum,
           pageSize: this.mixins_pageset.pageSize
@@ -146,7 +146,7 @@ export default {
       this.mixins_search();
     },
     getProductType() {
-        this.$http.post('/user-center/dict/selectList', { parentDictCode: 'SYSTEM_PRODUCT_TYPE' }).then(({ status, data, msg}) => {
+        this.$http.post('/sc-user-center/dict/selectList', { parentDictCode: 'SYSTEM_PRODUCT_TYPE' }).then(({ status, data, msg}) => {
           if(0 === status) {
             console.log(data);
               let datas = [];
@@ -173,7 +173,7 @@ export default {
                 });
             }
             this.$msgBox(`确定要删除?`, '删除后将无法恢复,是否继续?').then(() => {
-            this.$http.delete('/user-center/verManage/deleteVerManage', { ids: ids.join(',') }).then(({ status, data, msg }) => {
+            this.$http.delete('/sc-user-center/verManage/deleteVerManage', { ids: ids.join(',') }).then(({ status, data, msg }) => {
                 if (status === 0) {
                     this.$message.success('删除成功');
                     this.mixins_search();

+ 3 - 3
userCenter/src/views/sysManage/appVersionManage/popups/addAppVersionManage.vue

@@ -193,7 +193,7 @@ export default {
      }
     },
     getProductType() {
-        this.$http.post('/user-center/dict/selectList', { parentDictCode: 'SYSTEM_PRODUCT_TYPE' }).then(({ status, data, msg}) => {
+        this.$http.post('/sc-user-center/dict/selectList', { parentDictCode: 'SYSTEM_PRODUCT_TYPE' }).then(({ status, data, msg}) => {
           if(0 === status) {
             console.log(data);
               let datas = [];
@@ -212,9 +212,9 @@ export default {
          var loading = this.$loading();
           var posturl = '';
           if (this.params.todo === 'edit') {
-              posturl = '/user-center/verManage/updateVerManage';
+              posturl = '/sc-user-center/verManage/updateVerManage';
           } else {
-              posturl = '/user-center/verManage/addVerManage';
+              posturl = '/sc-user-center/verManage/addVerManage';
           }
           this.$http.post(posturl, this.formData).then(({ status, data, msg }) => {
               loading.close();

+ 3 - 3
userCenter/src/views/sysManage/cameraManage/cameraManage.vue

@@ -151,7 +151,7 @@ export default {
     methods: {
         getorgTree() {
             //获取公司树
-            this.$http.postForm('/user-center/org/getOrgUserTree', { orgType: 'company', id: '000' }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'company', id: '000' }).then(({ status, data, msg }) => {
                 if (status === 0 && data) {
                     this.organListCompany = data;
                 }
@@ -160,7 +160,7 @@ export default {
         selectedcompanyOrgId(e) {
             if (!e) return;
             // 获取 部门树e
-            this.$http.postForm('/user-center/org/getOrgUserTree', { orgType: 'department', id: e }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'department', id: e }).then(({ status, data, msg }) => {
                 if (status === 0) {
                     // console.log(data);
                     this.organListdepartment = data ? data : [];
@@ -195,7 +195,7 @@ export default {
                             row = data;
                                        
                                         this.$http
-                                            .postForm('/user-center/org/getOrgUserTree', { orgType: 'department', id: data.companyOrgId })
+                                            .postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'department', id: data.companyOrgId })
                                             .then(({ status, data, msg }) => {
                                                 if (status === 0) {
                                                      this.organListdepartment = data ? data : [];

+ 1 - 1
userCenter/src/views/sysManage/cameraManage/popups/addOrEditCamera.vue

@@ -248,7 +248,7 @@ export default {
             this.allServiceScene = [];
             if (!e) return;
             // 获取 部门树e
-            this.$http.postForm('/user-center/org/getOrgUserTree', { orgType: 'department', id: e }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'department', id: e }).then(({ status, data, msg }) => {
                 if (status === 0) {
                     this.organListdepartment = data ? data : [];
                     this.selectedSceneOrgId();

+ 3 - 3
userCenter/src/views/sysManage/deviceManage/deviceManage.vue

@@ -203,7 +203,7 @@ export default {
                         if (status === 0) {
                             row = data;
                             this.$http
-                                .postForm('/user-center/org/getOrgUserTree', { orgType: 'department', id: data.companyOrgId })
+                                .postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'department', id: data.companyOrgId })
                                 .then(({ status, data, msg }) => {
                                     if (status === 0) {
                                         this.organListdepartment = data ? data : [];
@@ -282,7 +282,7 @@ export default {
         },
         getorgTree() {
             // 获取公司树
-            this.$http.postForm('/user-center/org/getOrgUserTree', { orgType: 'company', id: '000' }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'company', id: '000' }).then(({ status, data, msg }) => {
                 if (status === 0 && data) {
                     this.organListCompany = data;
                 } else {
@@ -293,7 +293,7 @@ export default {
         selectedcompanyOrgId(e) {
             if (!e) return;
             // 获取 部门树e
-            this.$http.postForm('/user-center/org/getOrgUserTree', { orgType: 'department', id: e }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'department', id: e }).then(({ status, data, msg }) => {
                 if (status === 0) {
                     this.organListdepartment = data ? data : [];
                 } else {

+ 1 - 1
userCenter/src/views/sysManage/deviceManage/popups/addOrEditDevice.vue

@@ -334,7 +334,7 @@ export default {
             //     this.formData.sceneId="";
             // }
             // 获取 部门树e
-            this.$http.postForm('/user-center/org/getOrgUserTree', { orgType: 'department', id: e }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'department', id: e }).then(({ status, data, msg }) => {
                 if (status === 0) {
                     this.organListdepartment = data ? data : [];
                     // this.selectedSceneOrgId();

+ 1 - 1
userCenter/src/views/sysManage/deviceManage/popups/addOrEditScene.vue

@@ -476,7 +476,7 @@ export default {
             //     this.formData.parentSceneId="";
             // }
             // 获取 部门树e
-            this.$http.postForm('/user-center/org/getOrgUserTree', { orgType: 'department', id: e }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'department', id: e }).then(({ status, data, msg }) => {
                 if (status === 0) {
                     this.organListdepartment = data ? data : [];
                 } else {

+ 3 - 3
userCenter/src/views/sysManage/deviceManage/sceneManage.vue

@@ -192,7 +192,7 @@ export default {
                             data.parentSceneId = isExist ? data.parentSceneId : '';
                             row = data;
                             this.$http
-                                .postForm('/user-center/org/getOrgUserTree', { orgType: 'department', id: data.companyOrgId })
+                                .postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'department', id: data.companyOrgId })
                                 .then(({ status, data, msg }) => {
                                     if (status === 0) {
                                         this.organListdepartment = data ? data : [];
@@ -297,7 +297,7 @@ export default {
         },
         getorgTree() {
             // 获取 公司树
-            this.$http.postForm('/user-center/org/getOrgUserTree', { orgType: 'company', id: '000' }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'company', id: '000' }).then(({ status, data, msg }) => {
                 if (status === 0 && data) {
                     this.organListCompany = data;
                     // console.log(this.organListCompany );
@@ -309,7 +309,7 @@ export default {
         selectedcompanyOrgId(e) {
             if (!e) return;
             // 获取 部门树e
-            this.$http.postForm('/user-center/org/getOrgUserTree', { orgType: 'department', id: e }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'department', id: e }).then(({ status, data, msg }) => {
                 if (status === 0) {
                     this.organListdepartment = data ? data : [];
                 } else {

+ 1 - 1
userCenter/src/views/sysManage/revenueManagement/index.vue

@@ -183,7 +183,7 @@ export default {
             });
         },
         getOrgTreeList() {
-            this.$http.postForm('/user-center/org/getOrgUserTree', { orgType: 'company', id: '000' }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-center/org/getOrgUserTree', { orgType: 'company', id: '000' }).then(({ status, data, msg }) => {
                 if (status === 0 && data) {
                     this.organList = [{ orgs: data, orgName: '组织机构', id: 0 }];
                     this.$nextTick().then(() => {

+ 4 - 4
userCenter/src/views/sysManage/sysSet/index.vue

@@ -351,7 +351,7 @@ export default {
             return data.orgName.indexOf(value) !== -1;
         },
         getGisServerType() {
-            this.$http.post('/user-center/dict/selectList', { parentDictCode: 'GIS_SERVER_TYPE' }).then(({ status, data, msg }) => {
+            this.$http.post('/sc-user-center/dict/selectList', { parentDictCode: 'GIS_SERVER_TYPE' }).then(({ status, data, msg }) => {
                 if (0 === status) {
                     this.allserviceType = data;
                 }
@@ -384,7 +384,7 @@ export default {
             });
         },
         getParamsType() {            
-            this.$http.post('/user-center/dict/selectList', { parentDictCode: 'SMS_PARM_TYPE' }).then(({ status, data, msg }) => {
+            this.$http.post('/sc-user-center/dict/selectList', { parentDictCode: 'SMS_PARM_TYPE' }).then(({ status, data, msg }) => {
                 if (0 === status) {
                     this.directOptions = data;
                 }
@@ -458,12 +458,12 @@ export default {
             });
         },
         getOrgTreeList() {
-            this.$http.postForm('/user-center/org/getOrgTree', { orgType: '' }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-center/org/getOrgTree', { orgType: '' }).then(({ status, data, msg }) => {
                 if (status === 0 && data) {
                     this.organList = [{ orgs: data, orgName: '组织机构', id: 0 }];
                 }
             });
-            this.$http.postForm('/user-center/org/getOrgTree', { orgType: 'company' }).then(({ status, data, msg }) => {
+            this.$http.postForm('/sc-user-center/org/getOrgTree', { orgType: 'company' }).then(({ status, data, msg }) => {
                 if (status === 0 && data) {
                     this.organListCompany = [{ orgs: data, orgName: '组织机构', id: 0 }];
                 }

+ 2 - 2
userCenter/src/views/system/menus/popups/AddOrEdit.vue

@@ -34,7 +34,7 @@
                 slot="menuImage"
                 limit="1"
                 :headers="token"
-                :action="'/user-center/menu/addMenuImag'"
+                :action="'/sc-user-center/menu/addMenuImag'"
                 list-type="picture-card"
                 multiple="false"
                 :on-success="uploadsuccess"
@@ -60,7 +60,7 @@
                 slot="menuDynamicImage"
                 limit="1"
                 :headers="token"
-                :action="'/user-center/menu/addMenuImag'"
+                :action="'/sc-user-center/menu/addMenuImag'"
                 list-type="picture-card"
                 multiple="false"
                 :on-success="uploadsuccess2"

+ 2 - 2
userCenter/src/views/system/menus/popups/EditForm.vue

@@ -33,7 +33,7 @@
                     slot="menuImage"
                     limit="1"
                     :headers="token"
-                    :action="'/user-center/menu/addMenuImag'"
+                    :action="'/sc-user-center/menu/addMenuImag'"
                     list-type="picture-card"
                     multiple="false"
                     :on-success="uploadsuccess"
@@ -60,7 +60,7 @@
                     slot="menuDynamicImage"
                     limit="1"
                     :headers="token"
-                    :action="'/user-center/menu/addMenuImag'"
+                    :action="'/sc-user-center/menu/addMenuImag'"
                     list-type="picture-card"
                     multiple="false"
                     :on-success="uploadsuccess2"

+ 1 - 1
userCenter/src/views/system/tenants/popups/AddOrEdit.vue

@@ -28,7 +28,7 @@
                     ref="uploadtenantslogo"
                     slot="tenantslogo"
                     limit="1"
-                    :action="'/user-center/tenant/addTenantLogo'"
+                    :action="'/sc-user-center/tenant/addTenantLogo'"
                     list-type="picture-card"
                     multiple="false"
                     :on-success="uploadsuccess"

+ 1 - 1
userCenter/src/views/system/users/popups/AddOrEditUserInfo.vue

@@ -57,7 +57,7 @@
                 class="mini-upload"
                 slot="companylogo"
                 limit="1"
-                action="/user-center/user/addUserPhoto"
+                action="/sc-user-center/user/addUserPhoto"
                 list-type="picture-card"
                 :on-success="uploadsuccess"
                 :auto-upload="true"

+ 2 - 2
userCenter/src/views/system/users/popups/edituser.vue

@@ -57,7 +57,7 @@
                 class="mini-upload"
                 slot="companylogo"
                 limit="1"
-                action="/user-center/user/addUserPhoto"
+                action="/sc-user-center/user/addUserPhoto"
                 list-type="picture-card"
                 :on-success="uploadsuccess"
                 :auto-upload="true"
@@ -209,7 +209,7 @@ export default {
                 this.$refs.form.validate(resolve);
             }).then(() => {
                 var loading = this.$loading();
-                var posturl = '/user-center/user/updateUserById';
+                var posturl = '/sc-user-center/user/updateUserById';
                 this.$http
                     .post(posturl, this.formData)
                     .then(({ status, data, msg }) => {

+ 3 - 3
userCenter/vue.config.js

@@ -13,7 +13,7 @@ function resolve(dir) {
 }
 
 module.exports = {
-    publicPath: process.env.NODE_ENV === 'sit' ? '/userCenter' : '/',
+    publicPath: process.env.NODE_ENV === 'sit' ? '/sc-system' : '/',
     productionSourceMap: false,
     chainWebpack: config => {
         // 配置别名
@@ -75,7 +75,7 @@ module.exports = {
         open: false, // 配置自动启动浏览器  open: 'Google Chrome'-默认启动谷歌
         // 配置多个代理
         proxy: {
-            '/user-auth': {
+            '/sc-user-auth': {
                 target: envConfig.baseApi,
                 ws: true, // 代理的WebSockets
                 changeOrigin: true, // 允许websockets跨域
@@ -83,7 +83,7 @@ module.exports = {
                     /* "^/api": "" */
                 }
             },
-            '/user-center': {
+            '/sc-user-center': {
                 target: envConfig.baseApi,
                 ws: true, // 代理的WebSockets
                 changeOrigin: true, // 允许websockets跨域