|
@@ -212,6 +212,9 @@ export default {
|
|
|
idCard: '', // 身份证号
|
|
|
entryDate: undefined // 入职时间
|
|
|
}
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // this.$refs.ruleForm.resetFields()
|
|
|
+ // })
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -224,18 +227,16 @@ export default {
|
|
|
isShow (newValue, oldValue) {
|
|
|
if (!newValue) {
|
|
|
this.$emit('close')
|
|
|
- this.$refs.ruleForm.resetFields()
|
|
|
}
|
|
|
},
|
|
|
itemId (newValue, oldValue) {
|
|
|
if (this.isShow && newValue) {
|
|
|
this.getDetail()
|
|
|
- } else {
|
|
|
- this.$refs.ruleForm.resetFields()
|
|
|
}
|
|
|
},
|
|
|
modalTitle (newValue, oldValue) {
|
|
|
- if (this.isShow && newValue) {
|
|
|
+ console.log(newValue)
|
|
|
+ if (newValue) {
|
|
|
if (newValue == '编辑' || newValue == '新增') {
|
|
|
this.isView = false
|
|
|
} else {
|