|
@@ -70,6 +70,7 @@ import {handleMes, showMessage} from "@/unit/element-ui/tip";
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
|
+
|
|
|
function loginZHFXFN(type, url) {
|
|
|
|
|
|
loginInSjfxfn(loginPinia.loginInfo.username, encode(loginPinia.loginInfo.psd), type).then(res => {
|
|
@@ -129,7 +130,7 @@ function toPage(item, isDisabled) {
|
|
|
if (path.indexOf("http://") > -1 || path.indexOf("https://") > -1) {
|
|
|
window.open(path, path)
|
|
|
} else {
|
|
|
- router.push(path)
|
|
|
+ router.push({name: 'interface', params: {type: item.type}})
|
|
|
}
|
|
|
return
|
|
|
}
|
|
@@ -184,7 +185,7 @@ function toPage(item, isDisabled) {
|
|
|
loginZHFXFN(3, path, "ed698aa9d09e4ac7b35df02a2d73985f");
|
|
|
break
|
|
|
case '603': //城市体检
|
|
|
- loginKj(9,path,"47e0971bb15b4420bf1f351510378c72");
|
|
|
+ loginKj(9, path, "47e0971bb15b4420bf1f351510378c72");
|
|
|
break
|
|
|
|
|
|
}
|
|
@@ -515,7 +516,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;
|
|
@@ -533,26 +534,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;
|
|
@@ -570,25 +571,25 @@ 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, "浏览系统-登录", "登录系统成功", "系统登录");
|
|
|
+ localStorage.setItem('exchangeUserInfo', JSON.stringify(loginUserInfo))
|
|
|
+ loginKj_log(unitcode, usercode, "浏览系统-登录", "登录系统成功", "系统登录");
|
|
|
//切换首页
|
|
|
- window.open(url,url)
|
|
|
+ window.open(url, url)
|
|
|
// window.location.href = url;
|
|
|
return;
|
|
|
}
|
|
|
- if(type == "9"){
|
|
|
+ if (type == "9") {
|
|
|
//获取用户信息
|
|
|
var usercode = rows[0].USERID;
|
|
|
var username = rows[0].USERNAME;
|
|
@@ -602,8 +603,8 @@ function loginKj(type, url, systemType) {
|
|
|
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(',');
|
|
|
+ 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);
|
|
@@ -620,24 +621,24 @@ function loginKj(type, url, systemType) {
|
|
|
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,
|
|
|
+ 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,
|
|
|
+ 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('cstjUserInfo',JSON.stringify(userInfoObj))
|
|
|
- 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;
|
|
|
}
|
|
@@ -665,13 +666,15 @@ const headerTitle = ref([
|
|
|
name: 'Geoscene工具',
|
|
|
moduleId: '716',
|
|
|
isZi: false,
|
|
|
- linkHref: '/gis/geoscene'
|
|
|
+ linkHref: '/gis/interface',
|
|
|
+ type: 1
|
|
|
},
|
|
|
{
|
|
|
name: 'cesium工具',
|
|
|
- // moduleId: '717',
|
|
|
- isZi: true,
|
|
|
- linkHref: '/power-home'
|
|
|
+ moduleId: '717',
|
|
|
+ isZi: false,
|
|
|
+ linkHref: '/gis/interface',
|
|
|
+ type: 2
|
|
|
},
|
|
|
]
|
|
|
},
|
|
@@ -679,7 +682,13 @@ const headerTitle = ref([
|
|
|
name: 'BIM', children: [
|
|
|
{name: '轻量化'},
|
|
|
{name: '可视化'},
|
|
|
- {name: '应用工具'},
|
|
|
+ {
|
|
|
+ name: '应用工具',
|
|
|
+ moduleId: '753',
|
|
|
+ isZi: false,
|
|
|
+ linkHref: '/gis/interface',
|
|
|
+ type: 3
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
{
|