Explorar o código

fiex:资料审核BUG

Tang %!s(int64=3) %!d(string=hai) anos
pai
achega
eb9c865156

+ 10 - 8
src/views/education/dataReview/dataConfig/index.vue

@@ -534,7 +534,7 @@ export default {
       listInfos: [],
       recordList: [{ keyValueArrays: [] }], //记录列表
       activeIndex: 0,
-      activeDCIndex:0, //导出按钮索引
+      activeDCIndex: 0, //导出按钮索引
       DCLIST: [
         { label: "全部", value: 0 },
         { label: "待审核", value: 2 },
@@ -561,11 +561,11 @@ export default {
             document.body.appendChild(link);
             link.dowmload = fileName;
             link.href = url;
-            console.log(link)
-              link.click();
-              link.remove();
-              this.$message.success("批量导出成功");
-              this.dialogDR = false;
+            console.log(link);
+            link.click();
+            link.remove();
+            this.$message.success("批量导出成功");
+            this.dialogDR = false;
           }
         });
     },
@@ -595,7 +595,7 @@ export default {
             item.keyValue = JSON.parse(item.keyValue);
             var arst = [];
             for (let k in item.keyValue) {
-              if(item.keyValue[k].value){
+              if (item.keyValue[k].fieldName) {
                 arst.push(item.keyValue[k]);
               }
             }
@@ -702,7 +702,9 @@ export default {
           this.listData = res.data;
           var arst = [];
           for (let k in res.data.keyValue) {
-            arst.push(res.data.keyValue[k]);
+            if (res.data.keyValue[k].fieldName) {
+              arst.push(res.data.keyValue[k]);
+            }
           }
           this.listInfos = arst;
         });

+ 7 - 3
src/views/education/dataReview/stamp/index.vue

@@ -505,11 +505,13 @@ export default {
             item.keyValue = JSON.parse(item.keyValue);
             var arst = [];
             for (let k in item.keyValue) {
-              arst.push(item.keyValue[k]);
+              if (item.keyValue[k].fieldName) {
+                arst.push(item.keyValue[k]);
+              }
             }
             item.keyValueArrays = arst;
           });
-          this.activeIndex = 0
+          this.activeIndex = 0;
           this.recordList = res.rows;
           this.dialogVisibleRecord = true;
         });
@@ -611,7 +613,9 @@ export default {
           this.listData = res.data;
           var arst = [];
           for (let k in res.data.keyValue) {
-            arst.push(res.data.keyValue[k]);
+            if (res.data.keyValue[k].fieldName) {
+              arst.push(res.data.keyValue[k]);
+            }
           }
           this.listInfos = arst;
         });