Przeglądaj źródła

修复外部质量控制活动计划项目不显示,分页数据修改无效和提交报错的问题

zhonghuizhen 10 godzin temu
rodzic
commit
3aaa42e5d9

+ 4 - 3
src/views/component/externalControl/externalQualityControl.vue

@@ -501,7 +501,8 @@ export default {
           this.externalData = JSON.parse(JSON.stringify(value))
           this.isFirst = false
         }
-      }
+      },
+      immediate: true   //首次加载有值
     }
   },
   methods: {
@@ -555,7 +556,7 @@ export default {
     handleEdit(row, index) {
       this.isEdit = true
       this.dialogVisible = true
-      this.rowIndex = index
+      this.rowIndex = (this.requestPage.pageNo - 1) * this.requestPage.limit + index
       this.form = cloneDeep(row)
       console.log(cloneDeep(this.form))
     },
@@ -600,7 +601,7 @@ export default {
               jianYanXiangMu
             })
           }
-          this.$message.success(`表单提交成功!`)
+          this.$message.success(`编辑成功!`)
           this.dialogVisible = false
           this.$emit('change-data', 'sjzphdjhylxqb', this.externalData)
         } else {