zhuliu 7 月之前
父節點
當前提交
d0787b1bcc

+ 1 - 1
src/views/report/components/dialog/components/handelPersonTable.vue

@@ -229,7 +229,7 @@ export default {
       if(this.model == 'add'){
       if(this.model == 'add'){
         this.tableData.splice(index,1)
         this.tableData.splice(index,1)
       }else{
       }else{
-        row = JSON.parse(JSON.stringify(this.editMessage))
+        this.$set(this.tableData,index,JSON.parse(JSON.stringify(this.editMessage)))
         this.editMessage = {}
         this.editMessage = {}
       }
       }
       this.model = 'list'
       this.model = 'list'

+ 1 - 1
src/views/report/components/index.vue

@@ -275,7 +275,7 @@ export default {
       this.$api.queryReportProject(params).then(res => {
       this.$api.queryReportProject(params).then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
           if (res.data.data.length > 0) {
           if (res.data.data.length > 0) {
-            this.dataList[index] = res.data.data[0]
+            this.$set(this.dataList,index,res.data.data[0])
           } 
           } 
         }
         }
       }).catch(error => {
       }).catch(error => {