From 3e9260302552bde329a2854027373e367ed1f5bc Mon Sep 17 00:00:00 2001 From: wx <645899409@qq.com> Date: Fri, 19 Sep 2025 18:35:50 +0800 Subject: [PATCH] =?UTF-8?q?update=201.=E6=96=B0=E5=A2=9E=E5=91=98=E5=B7=A5?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HealthUserEmployeeEx.data.ts | 27 +++++++++++++++++++ .../components/HealthUserEmployeeExDrawer.vue | 1 + 2 files changed, 28 insertions(+) diff --git a/src/views/system/user/HealthUserEmployeeEx/HealthUserEmployeeEx.data.ts b/src/views/system/user/HealthUserEmployeeEx/HealthUserEmployeeEx.data.ts index 6c7a449..32e1d85 100644 --- a/src/views/system/user/HealthUserEmployeeEx/HealthUserEmployeeEx.data.ts +++ b/src/views/system/user/HealthUserEmployeeEx/HealthUserEmployeeEx.data.ts @@ -669,6 +669,33 @@ export const formSchema: (isUpdate: boolean) => FormSchema[] = (isUpdate) => { field: 'liveSpace', component: 'Input', }, + { + label: '关爱联络员姓名', + field: 'careLiaisonName', + component: 'Input', + }, + { + label: '关爱联络员职务', + field: 'careLiaisonJob', + component: 'Input', + }, + { + label: '关爱联络员电话', + field: 'careLiaisonPhone', + component: 'Input', + rules: [{ required: false, pattern: /^1[3456789]\d{9}$/, message: '手机号码格式有误', trigger: 'blur' }], + }, + { + label: '急救人员姓名', + field: 'lifeguardName', + component: 'Input', + }, + { + label: '急救人员电话', + field: 'lifeguardPhone', + component: 'Input', + rules: [{ required: false, pattern: /^1[3456789]\d{9}$/, message: '手机号码格式有误', trigger: 'blur' }], + }, { label: '', field: 'id', diff --git a/src/views/system/user/HealthUserEmployeeEx/components/HealthUserEmployeeExDrawer.vue b/src/views/system/user/HealthUserEmployeeEx/components/HealthUserEmployeeExDrawer.vue index 5642c2a..c1c6359 100644 --- a/src/views/system/user/HealthUserEmployeeEx/components/HealthUserEmployeeExDrawer.vue +++ b/src/views/system/user/HealthUserEmployeeEx/components/HealthUserEmployeeExDrawer.vue @@ -29,6 +29,7 @@ const titleType = ref(String); //表单配置 const [registerForm, { setProps, resetFields, setFieldsValue, updateSchema, validate, clearValidate }] = useForm({ + labelWidth: 150, schemas: formSchema(unref(isUpdate)), showActionButtonGroup: false, baseColProps: { span: 12 },