1、口门门禁管理系统--->长期车辆进港管理模块--->分公司车辆信息---> 用户角色由后端获取,修改为从前端直接传

pet
fufeifei 2024-12-05 10:35:21 +08:00
parent 2f1ec6ac3b
commit f9b7ec4f7e
1 changed files with 11 additions and 6 deletions

View File

@ -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 + '&currentPage=' + 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') {