|
@@ -225,6 +225,11 @@ export default {
|
|
|
footerDate: [
|
|
|
{
|
|
|
flightLine: "合计",
|
|
|
+ highRiskcount: "",
|
|
|
+ lowRiskCount: "",
|
|
|
+ priorityCount: "",
|
|
|
+ normalCount: "",
|
|
|
+ strictCount: "",
|
|
|
},
|
|
|
],
|
|
|
FormData: {
|
|
@@ -291,7 +296,6 @@ export default {
|
|
|
try {
|
|
|
this.loading = true;
|
|
|
// console.log(this.$route.query);
|
|
|
-
|
|
|
const result = await agent(this.FormData);
|
|
|
if (result.status === 200) {
|
|
|
this.tableData = result.data;
|
|
@@ -316,7 +320,36 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ console.log(result.data, "111111");
|
|
|
}
|
|
|
+ let count = [];
|
|
|
+ let highRiskcount = [];
|
|
|
+ let lowRiskCount = [];
|
|
|
+ let priorityCount = [];
|
|
|
+ let normalCount = [];
|
|
|
+ let strictCount = [];
|
|
|
+ result.data.forEach((res) => {
|
|
|
+ res.count ? count.push(res.count) : count.push(0);
|
|
|
+ res.datas.forEach((re) => {
|
|
|
+ if (re.level == "普通") {
|
|
|
+ highRiskcount.push(re.count);
|
|
|
+ } else if (re.level == "严控") {
|
|
|
+ lowRiskCount.push(re.count);
|
|
|
+ } else if (re.level == "低风险") {
|
|
|
+ priorityCount.push(re.count);
|
|
|
+ } else if (re.level == "优先") {
|
|
|
+ normalCount.push(re.count);
|
|
|
+ } else if (re.level == "高风险") {
|
|
|
+ strictCount.push(re.count);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ this.footerDate[0].count = eval(count.join("+"));
|
|
|
+ this.footerDate[0].highRiskcount = eval(highRiskcount.join("+"));
|
|
|
+ this.footerDate[0].lowRiskCount = eval(lowRiskCount.join("+"));
|
|
|
+ this.footerDate[0].priorityCount = eval(priorityCount.join("+"));
|
|
|
+ this.footerDate[0].normalCount = eval(normalCount.join("+"));
|
|
|
+ this.footerDate[0].strictCount = eval(strictCount.join("+"));
|
|
|
this.loading = false;
|
|
|
}
|
|
|
} catch (error) {
|