高敬炎 2 лет назад
Родитель
Сommit
df5ab33d4f
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      src/views/statisticalReport/autoSettlementList.vue

+ 14 - 0
src/views/statisticalReport/autoSettlementList.vue

@@ -1769,6 +1769,20 @@ export default {
           }
           this.deptBudgetTotal = response.total
           this.warehouseList = response
+          if(this.modification.length>0){
+            for (let i = 0; i < this.warehouseList.records.length; i++) {
+              var arr=this.modification.filter((item)=>{
+                console.log(item,)
+                return item.id==this.warehouseList.records[i].id
+              })
+              if(arr.length>0){
+                this.$nextTick( ()=> {
+                    this.$refs.warehouseList.toggleRowSelection(this.warehouseList.records[i],true);
+                })
+              }
+              
+            }
+          }
         })
     },