diff --git a/src/views/longtermvehicleinputportmessage/vehiclemessage/components/list.vue b/src/views/longtermvehicleinputportmessage/vehiclemessage/components/list.vue index f64e943..144708d 100644 --- a/src/views/longtermvehicleinputportmessage/vehiclemessage/components/list.vue +++ b/src/views/longtermvehicleinputportmessage/vehiclemessage/components/list.vue @@ -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') {