From f9b7ec4f7ea3590a6624f11f855a157338ee515f Mon Sep 17 00:00:00 2001 From: fufeifei Date: Thu, 5 Dec 2024 10:35:21 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=8F=A3=E9=97=A8=E9=97=A8=E7=A6=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=B3=BB=E7=BB=9F--->=E9=95=BF=E6=9C=9F?= =?UTF-8?q?=E8=BD=A6=E8=BE=86=E8=BF=9B=E6=B8=AF=E7=AE=A1=E7=90=86=E6=A8=A1?= =?UTF-8?q?=E5=9D=97--->=E5=88=86=E5=85=AC=E5=8F=B8=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E4=BF=A1=E6=81=AF--->=20=E7=94=A8=E6=88=B7=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E7=94=B1=E5=90=8E=E7=AB=AF=E8=8E=B7=E5=8F=96,=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=BB=8E=E5=89=8D=E7=AB=AF=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vehiclemessage/components/list.vue | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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') {