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