From 4a0103e41854894a0bd5862eac298766422688b5 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 3 Feb 2026 11:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=AE=A1=E7=90=86=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=94=9F=E6=97=A5=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basicManage/personManage/addAndEditForm.vue | 14 ++++++++++++++ src/views/basicManage/personManage/config.js | 4 ++++ src/views/basicManage/personManage/index.vue | 2 ++ 3 files changed, 20 insertions(+) diff --git a/src/views/basicManage/personManage/addAndEditForm.vue b/src/views/basicManage/personManage/addAndEditForm.vue index 294776b..4253e7e 100644 --- a/src/views/basicManage/personManage/addAndEditForm.vue +++ b/src/views/basicManage/personManage/addAndEditForm.vue @@ -46,6 +46,18 @@ v-model.trim="formData.phone" /> + + + + @@ -76,6 +88,8 @@ const rules = { trigger: 'blur', }, ], + + birthday: [{ required: true, message: '请选择生日', trigger: 'change' }], } /** 查询部门下拉树结构 */ diff --git a/src/views/basicManage/personManage/config.js b/src/views/basicManage/personManage/config.js index 1459842..5d8fdd3 100644 --- a/src/views/basicManage/personManage/config.js +++ b/src/views/basicManage/personManage/config.js @@ -50,6 +50,10 @@ export const tableColumns = [ label: '电话', // formatter: (row) => (CryptoUtil.decrypt(row.phone)), }, + { + prop: 'birthday', + label: '生日', + }, ] export const dialogConfig = reactive({ diff --git a/src/views/basicManage/personManage/index.vue b/src/views/basicManage/personManage/index.vue index 2714dad..5ed0e7a 100644 --- a/src/views/basicManage/personManage/index.vue +++ b/src/views/basicManage/personManage/index.vue @@ -136,6 +136,7 @@ const getInitFormData = () => ({ workerName: '', // 姓名 sex: 1, // 性别:1 男,0 女(与表单单选保持一致) phone: '', // 电话 + birthday: '', // 生日 }) const addAndEditForm = ref(getInitFormData()) @@ -159,6 +160,7 @@ const actionColumns = [ workerName: workerName || '', // phone: phone ? CryptoUtil.decrypt(phone) : '', phone, + birthday: birthday || '', sex: sex !== undefined ? sex * 1 : 1, }) })