mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 21:09:19 +08:00
fix(account): 部门ID默认值改为undefined而非0
This commit is contained in:
+3
-3
@@ -63,7 +63,7 @@ const formData = ref<AccountDTO.CreateAccountDTO & { status?: number }>({
|
|||||||
password: '',
|
password: '',
|
||||||
phone: '',
|
phone: '',
|
||||||
realName: '',
|
realName: '',
|
||||||
departmentId: 0,
|
departmentId: undefined,
|
||||||
positionId: undefined,
|
positionId: undefined,
|
||||||
remark: '',
|
remark: '',
|
||||||
status: 0,
|
status: 0,
|
||||||
@@ -97,7 +97,7 @@ function resetForm() {
|
|||||||
password: '',
|
password: '',
|
||||||
phone: '',
|
phone: '',
|
||||||
realName: '',
|
realName: '',
|
||||||
departmentId: 0,
|
departmentId: undefined,
|
||||||
positionId: undefined,
|
positionId: undefined,
|
||||||
remark: '',
|
remark: '',
|
||||||
status: 0,
|
status: 0,
|
||||||
@@ -227,7 +227,7 @@ async function open(accountData?: AccountVO.AccountInfoVO | null) {
|
|||||||
password: '', // 编辑时密码为空
|
password: '', // 编辑时密码为空
|
||||||
phone: accountData.phone || '',
|
phone: accountData.phone || '',
|
||||||
realName: accountData.realName,
|
realName: accountData.realName,
|
||||||
departmentId: accountData.departmentId || 0,
|
departmentId: accountData.departmentId,
|
||||||
positionId: accountData.positionId || undefined,
|
positionId: accountData.positionId || undefined,
|
||||||
remark: accountData.remark || '',
|
remark: accountData.remark || '',
|
||||||
status: accountData.status,
|
status: accountData.status,
|
||||||
|
|||||||
Reference in New Issue
Block a user