chenrui  2 жил өмнө
parent
commit
b46541b02d

+ 47 - 0
src/views/statisticsCharts/components/tableformbrs.vue

@@ -186,6 +186,53 @@ export default {
           if (titleColumn) {
             this.rowTitle = titleColumn.columnName;
           }
+          returnData.listValues.forEach((res) => {
+            if (!res.A) {
+              res.A = 0;
+            }
+            if (!res.totalfly) {
+              res.totalfly = 0;
+            }
+            if (!res.totalbag) {
+              res.totalbag = 0;
+            }
+            if (!res.brsfly) {
+              res.brsfly = 0;
+            }
+            if (!res.brsbag) {
+              res.brsbag = 0;
+            }
+            if (!res.ra_brsfly) {
+              res.ra_brsfly = 0;
+            }
+            if (!res.ra_brsbag) {
+              res.ra_brsbag = 0;
+            }
+            if (!res.starfly) {
+              res.starfly = 0;
+            }
+            if (!res.starbag) {
+              res.starbag = 0;
+            }
+            if (!res.ra_starfly) {
+              res.ra_starfly = 0;
+            }
+            if (!res.ra_starfly) {
+              res.ra_starfly = 0;
+            }
+            if (!res.hyxfly) {
+              res.hyxfly = 0;
+            }
+            if (!res.hyxbag) {
+              res.hyxbag = 0;
+            }
+            if (!res.ra_hyxfly) {
+              res.ra_hyxfly = 0;
+            }
+            if (!res.ra_hyxbag) {
+              res.ra_hyxbag = 0;
+            }
+          });
           this.tableData = returnData.listValues;
           this.tableCols = returnData.columnSet;
           this.serviceId = returnData.submitID;