|
@@ -123,6 +123,7 @@ function loginZHFXFN(type, url) {
|
|
|
|
|
|
function toPage(item, isDisabled) {
|
|
|
// console.log('点击', item, isDisabled)
|
|
|
+ debugger
|
|
|
let path = isDisabled ? item.loginPage : item.linkHref
|
|
|
if (!item.isZi) {
|
|
|
if (path.indexOf("http://") > -1 || path.indexOf("https://") > -1) {
|
|
@@ -143,6 +144,9 @@ function toPage(item, isDisabled) {
|
|
|
return
|
|
|
}
|
|
|
switch (item.moduleId) {
|
|
|
+ case '692': //行业基础数据库临时登录
|
|
|
+ loginKj(2, path, "a42fe58a1ff142f696c63b56519833a0")
|
|
|
+ break
|
|
|
case '569': //空间浏览系统
|
|
|
loginKj(2, path, "a42fe58a1ff142f696c63b56519833a0")
|
|
|
break
|
|
@@ -179,8 +183,8 @@ function toPage(item, isDisabled) {
|
|
|
case '579': //数据综合分析系统
|
|
|
loginZHFXFN(3, path, "ed698aa9d09e4ac7b35df02a2d73985f");
|
|
|
break
|
|
|
- case '663': //城市体检
|
|
|
- loginZW(9, path, "47e0971bb15b4420bf1f351510378c72");
|
|
|
+ case '603': //城市体检
|
|
|
+ loginKj(9,path,"47e0971bb15b4420bf1f351510378c72");
|
|
|
break
|
|
|
|
|
|
}
|
|
@@ -511,7 +515,7 @@ function loginKj(type, url, systemType) {
|
|
|
return;
|
|
|
}
|
|
|
let rows = result[0].Rows;
|
|
|
- if (type == "1") {
|
|
|
+ if(type == "1"){
|
|
|
//获取用户信息
|
|
|
var usercode = rows[0].USERID;
|
|
|
var unitcode = rows[0].UNIT;
|
|
@@ -529,26 +533,26 @@ function loginKj(type, url, systemType) {
|
|
|
var change_time = rows[0].CHANGE_TIME;
|
|
|
//保存用户信息
|
|
|
const loginUserInfo = {
|
|
|
- ywxt_usercode: usercode,
|
|
|
- ywxt_username: username,
|
|
|
- ywxt_unitcode: unitcode,
|
|
|
- ywxt_unitname: unitname,
|
|
|
- ywxt_contact: contact,
|
|
|
- ywxt_telephone: telephone,
|
|
|
- ywxt_email: email,
|
|
|
- ywxt_identify: identify,
|
|
|
- ywxt_userkeycode: userkeycode,
|
|
|
- ptjk_changetime: change_time,
|
|
|
- password: password
|
|
|
+ ywxt_usercode:usercode,
|
|
|
+ ywxt_username:username,
|
|
|
+ ywxt_unitcode:unitcode,
|
|
|
+ ywxt_unitname:unitname,
|
|
|
+ ywxt_contact:contact,
|
|
|
+ ywxt_telephone:telephone,
|
|
|
+ ywxt_email:email,
|
|
|
+ ywxt_identify:identify,
|
|
|
+ ywxt_userkeycode:userkeycode,
|
|
|
+ ptjk_changetime:change_time,
|
|
|
+ password:password
|
|
|
}
|
|
|
// 根据user_id获取角色
|
|
|
- localStorage.setItem('loginUserInfoSpace', JSON.stringify(loginUserInfo))
|
|
|
- loginKj_log(unitcode, usercode, "运维系统-登录", "登录系统成功", "系统登录");
|
|
|
+ localStorage.setItem('loginUserInfoSpace',JSON.stringify(loginUserInfo))
|
|
|
+ loginKj_log(unitcode,usercode, "运维系统-登录", "登录系统成功", "系统登录");
|
|
|
//空间运维系统 登录成功后 需要缓存用户权限
|
|
|
- selectUserRole(usercode, url);
|
|
|
+ selectUserRole(usercode,url);
|
|
|
return;
|
|
|
}
|
|
|
- if (type == "2") {
|
|
|
+ if(type == "2"){
|
|
|
//获取用户信息
|
|
|
var usercode = rows[0].USERID;
|
|
|
var username = rows[0].USERNAME;
|
|
@@ -566,21 +570,74 @@ function loginKj(type, url, systemType) {
|
|
|
var changetime = rows[0]["CHANGE_TIME"];
|
|
|
|
|
|
const loginUserInfo = {
|
|
|
- gxjh_usercode: usercode,
|
|
|
- gxjh_username: username,
|
|
|
- gxjh_unitcode: unitcode,
|
|
|
- gxjh_unitname: unitname,
|
|
|
- gxjh_contact: contact ? decode(contact) : '',
|
|
|
- gxjh_telephone: telephone ? decode(telephone) : '',
|
|
|
- gxjh_email: email ? decode(email) : '',
|
|
|
- gxjh_identify: identify,
|
|
|
- gxjh_userkeycode: userkeycode,
|
|
|
- gxjh_changetime: changetime,
|
|
|
+ gxjh_usercode:usercode,
|
|
|
+ gxjh_username:username,
|
|
|
+ gxjh_unitcode:unitcode,
|
|
|
+ gxjh_unitname:unitname,
|
|
|
+ gxjh_contact:contact?decode(contact):'',
|
|
|
+ gxjh_telephone:telephone?decode(telephone):'',
|
|
|
+ gxjh_email:email?decode(email):'',
|
|
|
+ gxjh_identify:identify,
|
|
|
+ gxjh_userkeycode:userkeycode,
|
|
|
+ gxjh_changetime:changetime,
|
|
|
+ }
|
|
|
+ localStorage.setItem('exchangeUserInfo',JSON.stringify(loginUserInfo))
|
|
|
+ loginKj_log(unitcode,usercode, "浏览系统-登录", "登录系统成功", "系统登录");
|
|
|
+ //切换首页
|
|
|
+ window.open(url,url)
|
|
|
+ // window.location.href = url;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(type == "9"){
|
|
|
+ //获取用户信息
|
|
|
+ var usercode = rows[0].USERID;
|
|
|
+ var username = rows[0].USERNAME;
|
|
|
+ var unitcode = rows[0].UNIT;
|
|
|
+ var unitname = rows[0].UNIT_NAME;
|
|
|
+ var lasttime = rows[0].LAST_TIME;
|
|
|
+ var name = rows[0].NAME;
|
|
|
+ var phone = rows[0].PHONE;
|
|
|
+ var mail = rows[0].MAIL;
|
|
|
+ var change_time = rows[0].CHANGE_TIME;
|
|
|
+ var unit_level = rows[0].UNIT_LEVEL;
|
|
|
+ var unit_level_name = rows[0].UNIT_LEVEL_NAME;
|
|
|
+ debugger
|
|
|
+ var roleId = rows[0].ROLE_LIST.map(obj => obj.ROLE_ID).join(',');
|
|
|
+ var roleUUID = rows[0].ROLE_LIST.map(obj =>obj.UUID).join(',');
|
|
|
+
|
|
|
+ localStorage.setItem("cstj_usercode", usercode);
|
|
|
+ localStorage.setItem("cstj_username", username);
|
|
|
+ localStorage.setItem("cstj_unitcode", unitcode);
|
|
|
+ localStorage.setItem("cstj_unitname", unitname);
|
|
|
+ //localStorage.setItem("cstj_password", password);
|
|
|
+ localStorage.setItem("cstj_lasttime", lasttime);
|
|
|
+ localStorage.setItem("cstj_role", roleId);
|
|
|
+ localStorage.setItem("cstj_role_uuid", roleUUID);
|
|
|
+ localStorage.setItem("cstj_name", name);
|
|
|
+ localStorage.setItem("cstj_phone", phone);
|
|
|
+ localStorage.setItem("cstj_mail", mail);
|
|
|
+ localStorage.setItem("cstj_changetime", change_time);
|
|
|
+ localStorage.setItem("cstj_unit_level", unit_level);
|
|
|
+ localStorage.setItem("cstj_unit_level_name", unit_level_name);
|
|
|
+
|
|
|
+ let userInfoObj ={
|
|
|
+ 'cstj_usercode':usercode,
|
|
|
+ cstj_username:username,
|
|
|
+ cstj_unitcode:unitcode,
|
|
|
+ cstj_unitname:unitname,
|
|
|
+ //cstj_password:password,
|
|
|
+ cstj_lasttime:lasttime,
|
|
|
+ cstj_role:roleId,
|
|
|
+ cstj_name:name,
|
|
|
+ cstj_phone:phone,
|
|
|
+ cstj_mail:mail,
|
|
|
+ cstj_changetime:change_time,
|
|
|
+ cstj_role_uuid:roleUUID,
|
|
|
}
|
|
|
- localStorage.setItem('exchangeUserInfo', JSON.stringify(loginUserInfo))
|
|
|
- loginKj_log(unitcode, usercode, "浏览系统-登录", "登录系统成功", "系统登录");
|
|
|
+ localStorage.setItem('cstjUserInfo',JSON.stringify(userInfoObj))
|
|
|
+ loginKj_log(unitcode,usercode, "城市体检-登录", "登录系统成功", "系统登录");
|
|
|
//切换首页
|
|
|
- window.open(url, url)
|
|
|
+ window.open(url,url)
|
|
|
// window.location.href = url;
|
|
|
return;
|
|
|
}
|
|
@@ -645,15 +702,15 @@ const headerTitle = ref([
|
|
|
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'
|
|
|
+ loginPage: 'https://cimweb.zjw.sh.cegn.cn:2007/industry-database/#/visualizationHome/mainPage',
|
|
|
+ moduleId: '692'
|
|
|
},
|
|
|
{
|
|
|
name: '上海城市体检信息系统',
|
|
|
isZi: true,
|
|
|
- linkHref: 'https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/login',
|
|
|
+ linkHref: 'https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/infoHome',
|
|
|
loginPage: 'https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/login',
|
|
|
- moduleId: '663'
|
|
|
+ moduleId: '603'
|
|
|
},
|
|
|
{
|
|
|
name: '上海城市更新信息系统',
|
|
@@ -715,10 +772,11 @@ function getDisabled(child) {
|
|
|
}
|
|
|
|
|
|
function linkToOther(item, isDisabled) {
|
|
|
+ debugger
|
|
|
if (!item.disabled) {
|
|
|
if (item.linkHref) {
|
|
|
let isCanLink = loginPinia.canSeeSystemArr.find(i => +i.MODULE_ID === +item.moduleId)
|
|
|
- if (!isCanLink && !item.isZi) {
|
|
|
+ if (!isCanLink) {
|
|
|
return
|
|
|
|
|
|
}
|