408249787 2 gadi atpakaļ
vecāks
revīzija
c91b409cad

+ 4 - 3
src/views/repair/application-form/modules/RemarkForm.vue

@@ -13,7 +13,7 @@
         :labelCol="BaseTool.Constant.labelCol"
         :wrapperCol="BaseTool.Constant.wrapperCol">
         <a-textarea
-          v-model="model.content"
+          v-model="content"
           placeholder="请输入内容!"
         />
       </a-form-item>
@@ -44,15 +44,16 @@ export default {
     base (record) {
       this.visible = true
       this.model = record
+      this.content = record.content
     },
     save () {
-      if (this.model.content === '' || this.model.content == null) {
+      if (this.content === '' || this.content == null) {
         this.$message.error('请填写故障描述!')
         return
       }
       changeEditForm({
         id: this.model.id,
-        content: this.model.content
+        content: this.content
       }).then(() => {
         this.$message.info('故障描述已修改!')
         this.handleCancel(this.model.content)