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