Skip to content

Commit

Permalink
fix: 统一性别约束/统一上级部门必填
Browse files Browse the repository at this point in the history
  • Loading branch information
jskils authored and Charles7c committed Apr 28, 2024
1 parent 64648d0 commit 5264cf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export interface DictState {
/** 状态(1:启用;2:禁用) */
type Status = 1 | 2

/** 性别(1:男;2:女;3:未知) */
type Gender = 1 | 2 | 3
/** 性别(1:男;2:女;0:未知) */
type Gender = 1 | 2 | 0
3 changes: 2 additions & 1 deletion src/views/system/dept/DeptAddModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ const columns: Columns = [
}
return false
}
}
},
rules: [{ required: true, message: '请选择上级部门' }]
},
{ label: '名称', field: 'name', type: 'input', rules: [{ required: true, message: '请输入名称' }] },
{
Expand Down

0 comments on commit 5264cf2

Please sign in to comment.