1、口门门禁管理系统--->长期车辆进港管理模块--->分公司车辆信息---> 用户角色由后端获取,修改为从前端直接传
parent
2f1ec6ac3b
commit
f9b7ec4f7e
|
@ -258,6 +258,7 @@ export default {
|
|||
add: false,
|
||||
del: false,
|
||||
edit: false,
|
||||
loginUserInfo: {},
|
||||
roleName: '', // 角色名称
|
||||
loginUserId: '',
|
||||
loginUserName: '',
|
||||
|
@ -364,6 +365,7 @@ export default {
|
|||
}
|
||||
},
|
||||
created() {
|
||||
this.loginUserInfo = JSON.parse(sessionStorage.getItem('user')) // 获取当前登陆用户的信息
|
||||
this.getDepartmentTreeData() // 获取部门树的数据
|
||||
this.getLoginUserInfo() // 获取当前登陆用户的信息
|
||||
// this.getDict() // 获取字典
|
||||
|
@ -424,8 +426,9 @@ export default {
|
|||
'vehiclemessage/getPageList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||
{
|
||||
...this.searchFrom,
|
||||
'CORPINFO_ID': JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
|
||||
'loginUserId': JSON.parse(sessionStorage.getItem('user')).USER_ID
|
||||
'CORPINFO_ID': this.loginUserInfo.CORPINFO_ID,
|
||||
'loginUserId': this.loginUserInfo.USER_ID,
|
||||
'roleName': this.loginUserInfo.ROLENAME
|
||||
}
|
||||
).then((data) => {
|
||||
this.listLoading = false
|
||||
|
@ -647,8 +650,9 @@ export default {
|
|||
'vehiclemessage/updateVehicleMessage',
|
||||
{
|
||||
...this.editForm,
|
||||
'CORPINFO_ID': JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
|
||||
'loginUserId': JSON.parse(sessionStorage.getItem('user')).USER_ID
|
||||
'CORPINFO_ID': this.loginUserInfo.CORPINFO_ID,
|
||||
'loginUserId': this.loginUserInfo.USER_ID,
|
||||
'roleName': this.loginUserInfo.ROLENAME
|
||||
}
|
||||
).then((data) => {
|
||||
if (data.result === 'success') {
|
||||
|
@ -689,8 +693,9 @@ export default {
|
|||
VEHICLE_ID: id,
|
||||
USER_ID: USER_ID,
|
||||
EMPLOYEE_VEHICLE_USER_ID: EMPLOYEE_VEHICLE_USER_ID,
|
||||
'CORPINFO_ID': JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
|
||||
'loginUserId': JSON.parse(sessionStorage.getItem('user')).USER_ID
|
||||
'CORPINFO_ID': this.loginUserInfo.CORPINFO_ID,
|
||||
'loginUserId': this.loginUserInfo.USER_ID,
|
||||
'roleName': this.loginUserInfo.ROLENAME
|
||||
}
|
||||
).then((data) => {
|
||||
if (data.result === 'success') {
|
||||
|
|
Loading…
Reference in New Issue