|
@@ -386,32 +386,61 @@ export default {
|
|
|
result.data.forEach((res) => {
|
|
|
if (res.risk == "低风险") {
|
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
|
- this.dataLow.data = [
|
|
|
- {
|
|
|
- name: "移交",
|
|
|
- value: res.yjNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.yjNum / arr.toFixed(2)) * 100) + "%",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "拒运",
|
|
|
- value: res.jyNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.jyNum / arr.toFixed(2)) * 100) + "%",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "放行",
|
|
|
- value: res.fxNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.fxNum / arr.toFixed(2)) * 100) + "%",
|
|
|
- },
|
|
|
- ];
|
|
|
+ if (res.yjNum) {
|
|
|
+ this.dataLow.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: res.yjNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.yjNum / arr.toFixed(2)) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: res.jyNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.jyNum / arr.toFixed(2)) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: res.fxNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.fxNum / arr.toFixed(2)) * 100) + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ } else {
|
|
|
+ this.dataLow.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.yjNum / arr.toFixed(2)) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.jyNum / arr.toFixed(2)) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.fxNum / arr.toFixed(2)) * 100) + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ }
|
|
|
this.dataLow.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
|
this.dataLow.num = res.num;
|
|
|
this.dataLow.kxsNum = res.kxsNum;
|
|
@@ -420,32 +449,61 @@ export default {
|
|
|
this.dataLow.cont = arr;
|
|
|
} else if (res.risk == "优先") {
|
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
|
- this.dataLowcp.data = [
|
|
|
- {
|
|
|
- name: "移交",
|
|
|
- value: res.yjNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "拒运",
|
|
|
- value: res.jyNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "放行",
|
|
|
- value: res.fxNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
- },
|
|
|
- ];
|
|
|
+ if (res.risk) {
|
|
|
+ this.dataLowcp.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: res.yjNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: res.jyNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: res.fxNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ } else {
|
|
|
+ this.dataLowcp.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ }
|
|
|
this.dataLowcp.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
|
this.dataLowcp.num = res.num;
|
|
|
this.dataLowcp.kxsNum = res.kxsNum;
|
|
@@ -454,32 +512,61 @@ export default {
|
|
|
this.dataLowcp.cont = arr;
|
|
|
} else if (res.risk == "普通") {
|
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
|
- this.dataLowpt.data = [
|
|
|
- {
|
|
|
- name: "移交",
|
|
|
- value: res.yjNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "拒运",
|
|
|
- value: res.jyNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "放行",
|
|
|
- value: res.fxNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
- },
|
|
|
- ];
|
|
|
+ if (res.risk) {
|
|
|
+ this.dataLowpt.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: res.yjNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: res.jyNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: res.fxNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ } else {
|
|
|
+ this.dataLowpt.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ }
|
|
|
this.dataLowpt.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
|
this.dataLowpt.num = res.num;
|
|
|
this.dataLowpt.kxsNum = res.kxsNum;
|
|
@@ -488,32 +575,61 @@ export default {
|
|
|
this.dataLowpt.cont = arr;
|
|
|
} else if (res.risk == "严控") {
|
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
|
- this.dataLowyk.data = [
|
|
|
- {
|
|
|
- name: "移交",
|
|
|
- value: res.yjNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "拒运",
|
|
|
- value: res.jyNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "放行",
|
|
|
- value: res.fxNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
- },
|
|
|
- ];
|
|
|
+ if (res.risk) {
|
|
|
+ this.dataLowyk.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: res.yjNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: res.jyNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: res.fxNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ } else {
|
|
|
+ this.dataLowyk.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ }
|
|
|
this.dataLowyk.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
|
this.dataLowyk.num = res.num;
|
|
|
this.dataLowyk.kxsNum = res.kxsNum;
|
|
@@ -522,32 +638,61 @@ export default {
|
|
|
this.dataLowyk.cont = arr;
|
|
|
} else if (res.risk == "高风险") {
|
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
|
- this.dataLowgf.data = [
|
|
|
- {
|
|
|
- name: "移交",
|
|
|
- value: res.yjNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "拒运",
|
|
|
- value: res.jyNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "放行",
|
|
|
- value: res.fxNum,
|
|
|
- prot:
|
|
|
- arr == 0
|
|
|
- ? "0%"
|
|
|
- : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
- },
|
|
|
- ];
|
|
|
+ if (res.risk) {
|
|
|
+ this.dataLowgf.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: res.yjNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: res.jyNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: res.fxNum,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ } else {
|
|
|
+ this.dataLowgf.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: 0,
|
|
|
+ prot:
|
|
|
+ arr == 0
|
|
|
+ ? "0%"
|
|
|
+ : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ }
|
|
|
this.dataLowgf.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
|
this.dataLowgf.num = res.num;
|
|
|
this.dataLowgf.kxsNum = res.kxsNum;
|