diff --git a/src/views/modules/epidemic/persontesting-add-or-update.vue b/src/views/modules/epidemic/persontesting-add-or-update.vue index 78724f6..367aa1d 100644 --- a/src/views/modules/epidemic/persontesting-add-or-update.vue +++ b/src/views/modules/epidemic/persontesting-add-or-update.vue @@ -190,6 +190,7 @@ } }, created() { + console.log('add') // this.visible = true this.$nextTick(() => { // this.dataForm.communityId = this.dataForm.streetId = this.dataForm.gridId = null @@ -200,11 +201,11 @@ }, methods: { init() { - this.$set(this.dataForm,'testingTime', new Date()) - console.log(this.dataForm.testingTime) this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() + // this.$set(this.dataForm,'testingTime', new Date()) + this.dataForm.testingTime = new Date() if (this.dataForm.id) { this.getInfo() }