代码优化

This commit is contained in:
BianLzhaoMin 2025-01-09 17:28:20 +08:00
parent 1346c150fe
commit e07c237201
1 changed files with 4 additions and 1 deletions

View File

@ -459,6 +459,7 @@ export default {
district, district,
address, address,
menuTemplateId, menuTemplateId,
roleId,
} = this.addOrEditForm } = this.addOrEditForm
const params = { const params = {
deptName, deptName,
@ -484,6 +485,7 @@ export default {
params.status = status params.status = status
params.parentId = parentId params.parentId = parentId
params.sysUser.userId = userId params.sysUser.userId = userId
params.sysUser.roleId = roleId
} }
const SEND_FUN = const SEND_FUN =
this.formType == 2 ? editCompanyAPI : addCompanyAPI this.formType == 2 ? editCompanyAPI : addCompanyAPI
@ -611,7 +613,7 @@ export default {
this.cityList = await this.getAddressListData(province) this.cityList = await this.getAddressListData(province)
this.areaList = await this.getAddressListData(city) this.areaList = await this.getAddressListData(city)
const { userName, nickName, userId } = sysUser const { userName, nickName, userId, roleId } = sysUser
Object.assign(this.addOrEditForm, { Object.assign(this.addOrEditForm, {
deptName, deptName,
deptAbbreviation, deptAbbreviation,
@ -630,6 +632,7 @@ export default {
district, district,
address, address,
menuTemplateId, menuTemplateId,
roleId,
fileList: [{ url: logo }], fileList: [{ url: logo }],
}) })
} }