|
|
@ -144,20 +144,7 @@ const dialogVisible = ref(false) // 弹窗的是否展示 |
|
|
|
const dialogTitle = ref('') // 弹窗的标题 |
|
|
|
const dialogTitle = ref('') // 弹窗的标题 |
|
|
|
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 |
|
|
|
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 |
|
|
|
const formType = ref('') // 表单的类型:create - 新增;update - 修改 |
|
|
|
const formType = ref('') // 表单的类型:create - 新增;update - 修改 |
|
|
|
const formData = ref({ |
|
|
|
const formData = ref({}) |
|
|
|
name: '', |
|
|
|
|
|
|
|
mobile: '', |
|
|
|
|
|
|
|
email: '', |
|
|
|
|
|
|
|
id: undefined, |
|
|
|
|
|
|
|
username: '', |
|
|
|
|
|
|
|
password: '', |
|
|
|
|
|
|
|
sex: 1, |
|
|
|
|
|
|
|
remark: '', |
|
|
|
|
|
|
|
status: CommonStatusEnum.ENABLE, |
|
|
|
|
|
|
|
hireDate: '', |
|
|
|
|
|
|
|
attendanceSettingId: undefined, |
|
|
|
|
|
|
|
instanceIds: [] |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
const formRules = ref({ |
|
|
|
const formRules = ref({ |
|
|
|
name: [{ required: true, message: '员工姓名不能为空', trigger: 'blur' }], |
|
|
|
name: [{ required: true, message: '员工姓名不能为空', trigger: 'blur' }], |
|
|
|
post: { required: true, message: '职位不能为空', trigger: 'blur' }, |
|
|
|
post: { required: true, message: '职位不能为空', trigger: 'blur' }, |
|
|
@ -237,6 +224,8 @@ const resetForm = () => { |
|
|
|
id: undefined, |
|
|
|
id: undefined, |
|
|
|
username: '', |
|
|
|
username: '', |
|
|
|
password: '', |
|
|
|
password: '', |
|
|
|
|
|
|
|
post: undefined, |
|
|
|
|
|
|
|
dept: undefined, |
|
|
|
sex: 1, |
|
|
|
sex: 1, |
|
|
|
remark: '', |
|
|
|
remark: '', |
|
|
|
status: CommonStatusEnum.ENABLE, |
|
|
|
status: CommonStatusEnum.ENABLE, |
|
|
|