|
@@ -460,9 +460,10 @@
|
|
|
|
|
|
}
|
|
|
function loginKj(type,url,systemType){
|
|
|
-
|
|
|
+ debugger
|
|
|
loginInSpace(loginPinia.loginInfo.username,encode(loginPinia.loginInfo.psd),type,systemType)
|
|
|
.then(res => {
|
|
|
+ debugger
|
|
|
let result = res.msg;
|
|
|
if (result.length == 0) {
|
|
|
showMessage({
|
|
@@ -487,24 +488,23 @@
|
|
|
var identify = rows[0].IS_IDENTIFY;
|
|
|
var usertype = rows[0].TYPE;
|
|
|
var userkeycode = rows[0]["TEMPUSERKEYCODE"];
|
|
|
-
|
|
|
var change_time = rows[0].CHANGE_TIME;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
//保存用户信息
|
|
|
- localStorage.setItem("ywxt_usercode", usercode);
|
|
|
- localStorage.setItem("ywxt_username", username);
|
|
|
- localStorage.setItem("ywxt_unitcode", unitcode);
|
|
|
- localStorage.setItem("ywxt_unitname", unitname);
|
|
|
- localStorage.setItem("ywxt_contact", contact);
|
|
|
- localStorage.setItem("ywxt_telephone", telephone);
|
|
|
- localStorage.setItem("ywxt_email", email);
|
|
|
- localStorage.setItem("ywxt_identify", identify);
|
|
|
- localStorage.setItem("ywxt_userkeycode", userkeycode);
|
|
|
- localStorage.setItem("ptjk_changetime", 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
|
|
|
+ }
|
|
|
+ // 根据user_id获取角色
|
|
|
+ localStorage.setItem('loginUserInfoSpace',JSON.stringify(loginUserInfo))
|
|
|
loginKj_log(unitcode,usercode, "运维系统-登录", "登录系统成功", "系统登录");
|
|
|
//空间运维系统 登录成功后 需要缓存用户权限
|
|
|
selectUserRole(usercode,url);
|
|
@@ -524,16 +524,22 @@
|
|
|
var email = rows[0].MAIL;
|
|
|
var identify = rows[0].IS_IDENTIFY;
|
|
|
var usertype = rows[0].TYPE;
|
|
|
-
|
|
|
- //保存用户信息
|
|
|
- localStorage.setItem("gxjh_usercode", usercode);
|
|
|
- localStorage.setItem("gxjh_username", username);
|
|
|
- localStorage.setItem("gxjh_unitcode", unitcode);
|
|
|
- localStorage.setItem("gxjh_unitname", unitname);
|
|
|
- localStorage.setItem("gxjh_contact", contact);
|
|
|
- localStorage.setItem("gxjh_telephone", telephone);
|
|
|
- localStorage.setItem("gxjh_email", email);
|
|
|
- localStorage.setItem("gxjh_identify", identify);
|
|
|
+ var userkeycode = rows[0]["TEMPUSERKEYCODE"];
|
|
|
+ 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,
|
|
|
+ }
|
|
|
+ localStorage.setItem('exchangeUserInfo',JSON.stringify(loginUserInfo))
|
|
|
loginKj_log(unitcode,usercode, "浏览系统-登录", "登录系统成功", "系统登录");
|
|
|
//切换首页
|
|
|
window.open(url,url)
|
|
@@ -575,6 +581,7 @@
|
|
|
{name:'视频识别算法'},
|
|
|
]},
|
|
|
{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/#/login',loginPage:'https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/login',moduleId:'663'},
|
|
|
{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'},
|