From 5264cf226fa3acd1398d9309e6a97d4d45b64850 Mon Sep 17 00:00:00 2001 From: kils Date: Sun, 28 Apr 2024 10:20:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=9F=E4=B8=80=E6=80=A7=E5=88=AB?= =?UTF-8?q?=E7=BA=A6=E6=9D=9F/=E7=BB=9F=E4=B8=80=E4=B8=8A=E7=BA=A7?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/global.d.ts | 4 ++-- src/views/system/dept/DeptAddModal.vue | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/types/global.d.ts b/src/types/global.d.ts index cdc2181..c8d13e2 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -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 diff --git a/src/views/system/dept/DeptAddModal.vue b/src/views/system/dept/DeptAddModal.vue index 770e51a..c3b009a 100644 --- a/src/views/system/dept/DeptAddModal.vue +++ b/src/views/system/dept/DeptAddModal.vue @@ -50,7 +50,8 @@ const columns: Columns = [ } return false } - } + }, + rules: [{ required: true, message: '请选择上级部门' }] }, { label: '名称', field: 'name', type: 'input', rules: [{ required: true, message: '请输入名称' }] }, {