diff --git a/src/views/modules/project/modules/projectPartForm.vue b/src/views/modules/project/modules/projectPartForm.vue index 1fb2c79..6800413 100644 --- a/src/views/modules/project/modules/projectPartForm.vue +++ b/src/views/modules/project/modules/projectPartForm.vue @@ -322,8 +322,8 @@ export default { }) }, selectProjectPartFinish(row){ - this.model.partCode = row.partno - this.model.partName = row.partdescription + this.$set(this.model,'partCode',row.partno) + this.$set(this.model,'partName',row.partdescription) this.partVisible = false }, deviceFinished(row) { diff --git a/src/views/modules/property/propertyTemplate.vue b/src/views/modules/property/propertyTemplate.vue index 73eaafa..7aaa2d8 100644 --- a/src/views/modules/property/propertyTemplate.vue +++ b/src/views/modules/property/propertyTemplate.vue @@ -625,9 +625,9 @@ export default { ...row, } } else { - if (this.templateQuery.functionType) { - this.saveForm.functionType = this.templateQuery.functionType - } + this.saveForm = JSON.parse(JSON.stringify({})) + + this.$set(this.saveForm,'active','Y') } this.saveVisible = true },