Browse Source

优化

origin/feature/monitoring
ZhaoTongYao 4 years ago
parent
commit
955f8bc8b4
  1. 5
      src/views/modules/epidemic/persontesting-add-or-update.vue

5
src/views/modules/epidemic/persontesting-add-or-update.vue

@ -190,6 +190,7 @@
} }
}, },
created() { created() {
console.log('add')
// this.visible = true // this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
// this.dataForm.communityId = this.dataForm.streetId = this.dataForm.gridId = null // this.dataForm.communityId = this.dataForm.streetId = this.dataForm.gridId = null
@ -200,11 +201,11 @@
}, },
methods: { methods: {
init() { init() {
this.$set(this.dataForm,'testingTime', new Date())
console.log(this.dataForm.testingTime)
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()
// this.$set(this.dataForm,'testingTime', new Date())
this.dataForm.testingTime = new Date()
if (this.dataForm.id) { if (this.dataForm.id) {
this.getInfo() this.getInfo()
} }

Loading…
Cancel
Save