소스 검색

路径优化

豪豪 6 일 전
부모
커밋
6500b2752a
1개의 변경된 파일10개의 추가작업 그리고 11개의 파일을 삭제
  1. 10 11
      src/views/home-page/HomePage.vue

+ 10 - 11
src/views/home-page/HomePage.vue

@@ -319,17 +319,16 @@ function toPage(item, isDisabled) {
   useSystemList.forEach(item1 =>{
    if (item1.MODULE_ID === item.moduleId){
      const ticket = encodeURIComponent(item1.TICKET);
-     path1 = item.aPath
+     path1 = item1.o_path
      ticker = '?ticket=' + ticket;
    }
   })
-  let path = isDisabled ? item.loginPage : path1+ticker
+  let path = isDisabled ? systemBaseUrl+systemLoginBaseUrl : systemBaseUrl+path1+ticker
   if (item.isOutZj) {
     window.open(path, path)
     return;
   }
   if (isDisabled) {
-
     window.open(path, path)
     return
   }
@@ -1027,6 +1026,9 @@ const systemList = ref([
 ])
 
 
+const systemBaseUrl = "https://cimweb.zjw.sh.cegn.cn:2007"
+const systemLoginBaseUrl = "/cim-home/#/login"
+
 
 const ballSystemList = ref([
   {
@@ -1036,13 +1038,13 @@ const ballSystemList = ref([
         name: '空间地理信息应用系统',
         aPath: 'https://cimweb.zjw.sh.cegn.cn:2007/space-application/#/main/home',
         moduleId: '569',
-        loginPage: 'https://cimweb.zjw.sh.cegn.cn:2007/space-application/#/login'
+        loginPage: systemBaseUrl + '/space-application/#/login'
       },
       {
         name: '空间地理信息管理系统',
         aPath: 'https://cimweb.zjw.sh.cegn.cn:2007/space-manage/#/main/GXYWWebsite/view/main/MainFrame',
         moduleId: '538',
-        loginPage: 'https://cimweb.zjw.sh.cegn.cn:2007/space-manage/#/login'
+        loginPage: systemBaseUrl + '/space-manage/#/login'
       },
     ]
   },
@@ -1052,15 +1054,14 @@ const ballSystemList = ref([
       // {name:'空间地理信息共享交换系统',aPath:'https://cimweb.zjw.sh.cegn.cn:2007/space-browsing/#/main/home',moduleId:'569',loginPage:'https://cimweb.zjw.sh.cegn.cn:2007/space-browsing/#/login'},
       {
         name: 'BIM数据应用系统',
-        aPath: 'https://cimweb.zjw.sh.cegn.cn:2007/bim-application-web/#/index',
+        aPath: systemBaseUrl + '/bim-application-web/#/index',
         // aPath: 'http://localhost:3000/#/index',
         moduleId: '1029',
         loginPage: 'https://cimweb.zjw.sh.cegn.cn:2007/cim-home/#/login'
       },
       {
         name: 'BIM数据管理系统',
-        // aPath: 'http://10.90.12.4:8008/#/login',
-        aPath: 'http://10.90.12.4:8008/#/dashboard',
+        aPath: systemBaseUrl + '/BimManagement/#/dashboard',
         moduleId: '964',
         loginPage: 'https://cimweb.zjw.sh.cegn.cn:2007/cim-home/#/login'
       },
@@ -1071,7 +1072,7 @@ const ballSystemList = ref([
       {
         name: '视频数据管理系统',
         // disabled: true,
-        aPath: 'http://10.90.13.56:8000',
+        aPath: systemBaseUrl + 'http://10.90.13.56:8000',
         moduleId: '749',
         loginPage: 'https://cimweb.zjw.sh.cegn.cn:2007/cim-home/#/login'
       },
@@ -1098,7 +1099,6 @@ const ballSystemList = ref([
         moduleId: '1030',
         loginPage: 'https://cimweb.zjw.sh.cegn.cn:2007/cim-home/#/login'
       },
-
       {
         // disabled: true,
         name: '数据分析融合系统',
@@ -1114,7 +1114,6 @@ const ballSystemList = ref([
         moduleId: '662',
         loginPage: 'https://cimweb.zjw.sh.cegn.cn:2007/cim-home/#/login'
       },
-
     ]
   },
   {name: '应用赋能中台', path: '/power-home', moduleId: '651',},