1、口门门禁管理系统--->长期车辆进港管理模块--->分公司车辆信息---> 适应相关方接口调用做代码调整

pet
fufeifei 2024-12-04 10:46:54 +08:00
parent c7578be3be
commit 5055badbcc
1 changed files with 31 additions and 19 deletions

View File

@ -263,6 +263,7 @@ export default {
loginUserName: '', loginUserName: '',
loginDepartmentId: '', loginDepartmentId: '',
loginDepartmentName: '', loginDepartmentName: '',
corpInfoId: '', // id
listQuery: { listQuery: {
page: 1, page: 1,
limit: 20 limit: 20
@ -363,10 +364,10 @@ export default {
} }
}, },
created() { created() {
// this.getDict() //
this.getPageList() //
this.getDepartmentTreeData() // this.getDepartmentTreeData() //
this.getLoginUserInfo() // this.getLoginUserInfo() //
// this.getDict() //
this.getPageList() //
}, },
methods: { methods: {
getRowKey(row) { getRowKey(row) {
@ -388,20 +389,21 @@ export default {
} }
}, },
getLoginUserInfo() { // getLoginUserInfo() { //
return new Promise((resolve) => { // return new Promise((resolve) => {
requestFN( requestFN(
'/user/goEditMyInfo', '/user/goEditMyInfo',
{} {}
).then((data) => { ).then((data) => {
this.loginUserId = data.pd.USER_ID console.info(data.pd)
this.loginUserName = data.pd.NAME this.loginUserId = data.pd.USER_ID
this.loginDepartmentId = data.pd.DEPARTMENT_ID this.loginUserName = data.pd.NAME
this.loginDepartmentName = data.pd.deptName this.loginDepartmentId = data.pd.DEPARTMENT_ID
resolve('ok') this.loginDepartmentName = data.pd.deptName
}).catch((e) => { this.corpInfoId = data.pd.CORPINFO_ID
// resolve('ok')
}) }).catch((e) => {
}) })
// })
}, },
// //
getQuery() { getQuery() {
@ -414,12 +416,16 @@ export default {
}, },
// //
getPageList() { getPageList() {
console.info('输出登陆用户的信息')
console.info(JSON.parse(sessionStorage.getItem('user')))
this.roleName = '' this.roleName = ''
this.listLoading = true this.listLoading = true
requestFN( requestFN(
'vehiclemessage/getPageList?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page, 'vehiclemessage/getPageList?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page,
{ {
...this.searchFrom ...this.searchFrom,
'CORPINFO_ID': JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
'loginUserId': JSON.parse(sessionStorage.getItem('user')).USER_ID
} }
).then((data) => { ).then((data) => {
this.listLoading = false this.listLoading = false
@ -524,7 +530,9 @@ export default {
requestFN( requestFN(
'vehiclemessage/addVehicleMessage', 'vehiclemessage/addVehicleMessage',
{ {
...this.addForm ...this.addForm,
'CORPINFO_ID': this.corpInfoId,
'loginUserId': this.loginUserId
} }
).then((data) => { ).then((data) => {
if (data.result === 'fail') { if (data.result === 'fail') {
@ -638,7 +646,9 @@ export default {
requestFN( requestFN(
'vehiclemessage/updateVehicleMessage', 'vehiclemessage/updateVehicleMessage',
{ {
...this.editForm ...this.editForm,
'CORPINFO_ID': JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
'loginUserId': JSON.parse(sessionStorage.getItem('user')).USER_ID
} }
).then((data) => { ).then((data) => {
if (data.result === 'success') { if (data.result === 'success') {
@ -678,7 +688,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,
'loginUserId': JSON.parse(sessionStorage.getItem('user')).USER_ID
} }
).then((data) => { ).then((data) => {
if (data.result === 'success') { if (data.result === 'success') {