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 },