代码优化

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