dev-cl
qsh 4 months ago
parent 274fc2f435
commit d80be0d7f1
  1. 17
      src/views/Pers/Employee/Comp/DialogEmployee.vue

@ -144,20 +144,7 @@ const dialogVisible = ref(false) // 弹窗的是否展示
const dialogTitle = ref('') //
const formLoading = ref(false) // 12
const formType = ref('') // create - update -
const formData = ref({
name: '',
mobile: '',
email: '',
id: undefined,
username: '',
password: '',
sex: 1,
remark: '',
status: CommonStatusEnum.ENABLE,
hireDate: '',
attendanceSettingId: undefined,
instanceIds: []
})
const formData = ref({})
const formRules = ref({
name: [{ required: true, message: '员工姓名不能为空', trigger: 'blur' }],
post: { required: true, message: '职位不能为空', trigger: 'blur' },
@ -237,6 +224,8 @@ const resetForm = () => {
id: undefined,
username: '',
password: '',
post: undefined,
dept: undefined,
sex: 1,
remark: '',
status: CommonStatusEnum.ENABLE,

Loading…
Cancel
Save