Browse Source

指标采集

gks 1 year ago
parent
commit
d929bede82
1 changed files with 14 additions and 3 deletions
  1. 14 3
      src/views/norm/quotaBonded.vue

+ 14 - 3
src/views/norm/quotaBonded.vue

@@ -491,22 +491,33 @@ export default {
     handleUpdate(row) {
       this.reset();
       const id = row.id || this.ids;
+      let dataList = null;
+      listQUOTAFEERole().then(res=>{
+        dataList = res.data;
+        console.log(res,'res');
+      })
       getQUOTABONDED(id).then((response) => {
+        console.log(response,'response');
         this.form = response.data;
         this.basicInfo = false;
         this.isShowBtn = true;
         this.QUOTAFEEList = response.data.bondedFeeList;
         this.QUOTAFEEList.forEach((item) => (item.fileList = []));
         this.QUOTAFEEList.forEach((item, i) => {
-          item.flag = true;
+          dataList.forEach((it,j)=>{
+            if(item.quotaId == it.id){
+              item.flag = it.flag;
+            }
+
+          })
+          
           if (item.fileNames && item.linkUrls) {
             item.fileList.push({ name: item.fileNames, url: item.linkUrls });
           }
         });
-        console.log(this.QUOTAFEEList);
-        this.open = true;
         this.$forceUpdate();
         this.title = "辅助指标录入修改";
+        this.open = true;
       });
     },