Browse Source

统一登录修改

psj 4 months ago
parent
commit
2ab0739129
3 changed files with 33 additions and 5 deletions
  1. 26 0
      src/service/index.js
  2. 3 3
      src/service/login.js
  3. 4 2
      src/views/power-home/PowerHome.vue

+ 26 - 0
src/service/index.js

@@ -66,6 +66,32 @@ requestInstance_KJLL.interceptors.response.use(function (res) {
 	throw new Error(error)
 })
 
+export const requestInstance_CSTJ = axios.create({
+	baseURL: 'https://cimweb.zjw.sh.cegn.cn:2007/data-cstj-prod/',
+	timeout: 60000,
+	method: 'post',
+	withCredentials:true,
+	headers:{
+		Systemtype:"47e0971bb15b4420bf1f351510378c72"
+	},
+
+})
+requestInstance_CSTJ.interceptors.request.use((config) => {
+	// console.log(config)
+	return config
+}, (error) => {
+	return new Error(error)
+})
+requestInstance_CSTJ.interceptors.response.use(function (res) {
+	return res.data
+}, function (error) {
+
+	throw new Error(error)
+})
+
+
+
+
 export const requestInstance_FXFN = axios.create({
 	baseURL: import.meta.env.VITE_BASE_API,
 	timeout: 60000,

+ 3 - 3
src/service/login.js

@@ -3,7 +3,7 @@ import {
  requestInstance_login,
  requestInstance_KJGL,
  requestInstance_KJLL,
- requestInstance_FXFN, requestInstance_PTJK
+ requestInstance_FXFN, requestInstance_PTJK,requestInstance_CSTJ
 } from "@/service/index";
 export function loginCim(params) {
  return requestInstance_login({
@@ -36,8 +36,8 @@ export function loginInSpace(username,password,type,systemType){
    },
   })
  }
- if(type == "9"){  //空间浏览
-  return requestInstance_KJLL({
+ if(type == "9"){  //城市体检
+  return requestInstance_CSTJ({
    url:'/user/KJuserLogin',
    data:{
     "username":username,

+ 4 - 2
src/views/power-home/PowerHome.vue

@@ -154,7 +154,9 @@
      case '663':   //城市体检
        loginKj(9,path,"47e0971bb15b4420bf1f351510378c72");
        break
-
+   case '603':   //城市体检
+       loginKj(9,path,"47e0971bb15b4420bf1f351510378c72");
+       break
    }
  }
  function selectUserClass(url){
@@ -636,7 +638,7 @@
      ]},
    {name:'应用系统',children: [
        {name:'上海市住建行业基础数据应用系统',isZi:true,linkHref: 'https://cimweb.zjw.sh.cegn.cn:2007/industry-database/#/visualizationHome/mainPage',loginPage:'https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/visualizationHome/mainPage',moduleId:'569'},
-       {name:'上海城市体检信息系统',isZi:true,linkHref: 'https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/infoHome',loginPage:'https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/login',moduleId:'663'},
+       {name:'上海城市体检信息系统',isZi:true,linkHref: 'https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/infoHome',loginPage:'https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/login',moduleId:'603'},
        {name:'上海城市更新信息系统',moduleId: '653',linkHref: 'https://cimweb.zjw.sh.cegn.cn:2007/urban-renew/#/home',loginPage:'https://cimweb.zjw.sh.cegn.cn:2007/urban-renew/#/home'},
        {name:'上海重大工程信息管理系统',moduleId: '655',linkHref: 'http://10.86.133.76:8080/FGW_WEB_SZDB',loginPage: 'http://10.86.133.76:8080/FGW_WEB_SZDB'},
        {name:'上海地下空间信息基础平台',moduleId: '656',linkHref:'http://10.81.73.104:8086',loginPage: 'http://10.81.73.104:8086'},