|
@@ -223,6 +223,8 @@ let resizeObserverObj = {
|
|
resizeObserver5: null,
|
|
resizeObserver5: null,
|
|
}
|
|
}
|
|
import {
|
|
import {
|
|
|
|
+ getUserMyRoleModuleV01,
|
|
|
|
+ getUserRoleInfo,
|
|
loginInYYFNZW
|
|
loginInYYFNZW
|
|
} from "@/service/login";
|
|
} from "@/service/login";
|
|
import {nextTick, onBeforeUnmount, onMounted, ref} from "vue";
|
|
import {nextTick, onBeforeUnmount, onMounted, ref} from "vue";
|
|
@@ -589,9 +591,9 @@ function loginZW(type, url, systemType) {
|
|
|
|
|
|
function selectUserModule(user_id, url) {
|
|
function selectUserModule(user_id, url) {
|
|
var json_data = {
|
|
var json_data = {
|
|
- "user_id": user_id
|
|
|
|
|
|
+ "getUserMyRoleModuleV01": user_id
|
|
};
|
|
};
|
|
- getUserMyRoleModule(json_data).then(res => {
|
|
|
|
|
|
+ getUserMyRoleModuleV01(json_data).then(res => {
|
|
var result = res.msg;
|
|
var result = res.msg;
|
|
if (result.length == 0) {
|
|
if (result.length == 0) {
|
|
showMessage({
|
|
showMessage({
|
|
@@ -679,7 +681,8 @@ function selectUserRole(user_id, url) {
|
|
basicLoginUserInfo.role = rows;
|
|
basicLoginUserInfo.role = rows;
|
|
localStorage.setItem('loginUserInfoSpace', JSON.stringify(basicLoginUserInfo))
|
|
localStorage.setItem('loginUserInfoSpace', JSON.stringify(basicLoginUserInfo))
|
|
//查询用户模块信息
|
|
//查询用户模块信息
|
|
- selectUserModule(user_id, url);
|
|
|
|
|
|
+ //selectUserModule(user_id, url);
|
|
|
|
+ selectUserClass(url);
|
|
})
|
|
})
|
|
|
|
|
|
}
|
|
}
|
|
@@ -716,24 +719,51 @@ function loginKj(type, url, systemType) {
|
|
var change_time = rows[0].CHANGE_TIME;
|
|
var change_time = rows[0].CHANGE_TIME;
|
|
debugger
|
|
debugger
|
|
//保存用户信息
|
|
//保存用户信息
|
|
- 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);
|
|
|
|
|
|
+ getUserRoleInfo(usercode,userkeycode).then(async res3 => {
|
|
|
|
+
|
|
|
|
+ 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,
|
|
|
|
+ role:res3.msg[0].Rows,
|
|
|
|
+ password:password
|
|
|
|
+ }
|
|
|
|
+ // 根据user_id获取角色
|
|
|
|
+ localStorage.setItem('loginUserInfoSpace',JSON.stringify(loginUserInfo))
|
|
|
|
+ loginKj_log(unitcode,usercode, "运维系统-登录", "登录系统成功", "系统登录");
|
|
|
|
+ //空间运维系统 登录成功后 需要缓存用户权限
|
|
|
|
+ selectUserRole(usercode,url,);
|
|
|
|
+ //window.open(url,url);
|
|
|
|
+ return;
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // 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);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (type == "2") {
|
|
if (type == "2") {
|