|
@@ -380,8 +380,9 @@ export default {
|
|
});
|
|
});
|
|
this.dataall.data.forEach((element) => {
|
|
this.dataall.data.forEach((element) => {
|
|
element.proportion = element.value / counts;
|
|
element.proportion = element.value / counts;
|
|
- element.proportion =
|
|
|
|
- Math.floor(element.proportion.toFixed(2) * 100) + "%";
|
|
|
|
|
|
+ element.proportion = Math.floor(element.proportion.toFixed(2) * 100)
|
|
|
|
+ ? Math.floor(element.proportion.toFixed(2) * 100) + "%"
|
|
|
|
+ : "0%";
|
|
});
|
|
});
|
|
result.data.forEach((res) => {
|
|
result.data.forEach((res) => {
|
|
if (res.risk == "低风险") {
|
|
if (res.risk == "低风险") {
|
|
@@ -444,8 +445,11 @@ export default {
|
|
this.dataLow.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
this.dataLow.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
this.dataLow.num = res.num;
|
|
this.dataLow.num = res.num;
|
|
this.dataLow.kxsNum = res.kxsNum;
|
|
this.dataLow.kxsNum = res.kxsNum;
|
|
- this.dataLow.proportion =
|
|
|
|
- Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%";
|
|
|
|
|
|
+ this.dataLow.proportion = Math.floor(
|
|
|
|
+ (res.kxsNum / res.num).toFixed(2) * 100
|
|
|
|
+ )
|
|
|
|
+ ? Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%"
|
|
|
|
+ : " 0%";
|
|
this.dataLow.cont = arr;
|
|
this.dataLow.cont = arr;
|
|
} else if (res.risk == "优先") {
|
|
} else if (res.risk == "优先") {
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
@@ -455,7 +459,7 @@ export default {
|
|
name: "移交",
|
|
name: "移交",
|
|
value: res.yjNum,
|
|
value: res.yjNum,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -463,7 +467,7 @@ export default {
|
|
name: "拒运",
|
|
name: "拒运",
|
|
value: res.jyNum,
|
|
value: res.jyNum,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -471,7 +475,7 @@ export default {
|
|
name: "放行",
|
|
name: "放行",
|
|
value: res.fxNum,
|
|
value: res.fxNum,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -482,7 +486,7 @@ export default {
|
|
name: "移交",
|
|
name: "移交",
|
|
value: 0,
|
|
value: 0,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -490,7 +494,7 @@ export default {
|
|
name: "拒运",
|
|
name: "拒运",
|
|
value: 0,
|
|
value: 0,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -498,7 +502,7 @@ export default {
|
|
name: "放行",
|
|
name: "放行",
|
|
value: 0,
|
|
value: 0,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -507,8 +511,11 @@ export default {
|
|
this.dataLowcp.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
this.dataLowcp.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
this.dataLowcp.num = res.num;
|
|
this.dataLowcp.num = res.num;
|
|
this.dataLowcp.kxsNum = res.kxsNum;
|
|
this.dataLowcp.kxsNum = res.kxsNum;
|
|
- this.dataLowcp.proportion =
|
|
|
|
- Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%";
|
|
|
|
|
|
+ this.dataLowcp.proportion = Math.floor(
|
|
|
|
+ (res.kxsNum / res.num).toFixed(2) * 100
|
|
|
|
+ )
|
|
|
|
+ ? Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%"
|
|
|
|
+ : "o%";
|
|
this.dataLowcp.cont = arr;
|
|
this.dataLowcp.cont = arr;
|
|
} else if (res.risk == "普通") {
|
|
} else if (res.risk == "普通") {
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
@@ -518,7 +525,7 @@ export default {
|
|
name: "移交",
|
|
name: "移交",
|
|
value: res.yjNum,
|
|
value: res.yjNum,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -526,7 +533,7 @@ export default {
|
|
name: "拒运",
|
|
name: "拒运",
|
|
value: res.jyNum,
|
|
value: res.jyNum,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -534,7 +541,7 @@ export default {
|
|
name: "放行",
|
|
name: "放行",
|
|
value: res.fxNum,
|
|
value: res.fxNum,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -545,7 +552,7 @@ export default {
|
|
name: "移交",
|
|
name: "移交",
|
|
value: 0,
|
|
value: 0,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -553,7 +560,7 @@ export default {
|
|
name: "拒运",
|
|
name: "拒运",
|
|
value: 0,
|
|
value: 0,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -561,7 +568,7 @@ export default {
|
|
name: "放行",
|
|
name: "放行",
|
|
value: 0,
|
|
value: 0,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -570,8 +577,11 @@ export default {
|
|
this.dataLowpt.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
this.dataLowpt.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
this.dataLowpt.num = res.num;
|
|
this.dataLowpt.num = res.num;
|
|
this.dataLowpt.kxsNum = res.kxsNum;
|
|
this.dataLowpt.kxsNum = res.kxsNum;
|
|
- this.dataLowpt.proportion =
|
|
|
|
- Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%";
|
|
|
|
|
|
+ this.dataLowpt.proportion = Math.floor(
|
|
|
|
+ (res.kxsNum / res.num).toFixed(2) * 100
|
|
|
|
+ )
|
|
|
|
+ ? Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%"
|
|
|
|
+ : "0%";
|
|
this.dataLowpt.cont = arr;
|
|
this.dataLowpt.cont = arr;
|
|
} else if (res.risk == "严控") {
|
|
} else if (res.risk == "严控") {
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
@@ -581,7 +591,7 @@ export default {
|
|
name: "移交",
|
|
name: "移交",
|
|
value: res.yjNum,
|
|
value: res.yjNum,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -589,7 +599,7 @@ export default {
|
|
name: "拒运",
|
|
name: "拒运",
|
|
value: res.jyNum,
|
|
value: res.jyNum,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -597,7 +607,7 @@ export default {
|
|
name: "放行",
|
|
name: "放行",
|
|
value: res.fxNum,
|
|
value: res.fxNum,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -608,7 +618,7 @@ export default {
|
|
name: "移交",
|
|
name: "移交",
|
|
value: 0,
|
|
value: 0,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -616,7 +626,7 @@ export default {
|
|
name: "拒运",
|
|
name: "拒运",
|
|
value: 0,
|
|
value: 0,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -624,7 +634,7 @@ export default {
|
|
name: "放行",
|
|
name: "放行",
|
|
value: 0,
|
|
value: 0,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -633,8 +643,11 @@ export default {
|
|
this.dataLowyk.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
this.dataLowyk.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
this.dataLowyk.num = res.num;
|
|
this.dataLowyk.num = res.num;
|
|
this.dataLowyk.kxsNum = res.kxsNum;
|
|
this.dataLowyk.kxsNum = res.kxsNum;
|
|
- this.dataLowyk.proportion =
|
|
|
|
- Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%";
|
|
|
|
|
|
+ this.dataLowyk.proportion = Math.floor(
|
|
|
|
+ (res.kxsNum / res.num).toFixed(2) * 100
|
|
|
|
+ )
|
|
|
|
+ ? Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%"
|
|
|
|
+ : "0%";
|
|
this.dataLowyk.cont = arr;
|
|
this.dataLowyk.cont = arr;
|
|
} else if (res.risk == "高风险") {
|
|
} else if (res.risk == "高风险") {
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
@@ -644,7 +657,7 @@ export default {
|
|
name: "移交",
|
|
name: "移交",
|
|
value: res.yjNum,
|
|
value: res.yjNum,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -652,7 +665,7 @@ export default {
|
|
name: "拒运",
|
|
name: "拒运",
|
|
value: res.jyNum,
|
|
value: res.jyNum,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -660,7 +673,7 @@ export default {
|
|
name: "放行",
|
|
name: "放行",
|
|
value: res.fxNum,
|
|
value: res.fxNum,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -671,7 +684,7 @@ export default {
|
|
name: "移交",
|
|
name: "移交",
|
|
value: 0,
|
|
value: 0,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -679,7 +692,7 @@ export default {
|
|
name: "拒运",
|
|
name: "拒运",
|
|
value: 0,
|
|
value: 0,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -687,7 +700,7 @@ export default {
|
|
name: "放行",
|
|
name: "放行",
|
|
value: 0,
|
|
value: 0,
|
|
prot:
|
|
prot:
|
|
- arr == 0
|
|
|
|
|
|
+ arr == 0 || arr
|
|
? "0%"
|
|
? "0%"
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
: Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
},
|
|
},
|
|
@@ -696,8 +709,11 @@ export default {
|
|
this.dataLowgf.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
this.dataLowgf.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
this.dataLowgf.num = res.num;
|
|
this.dataLowgf.num = res.num;
|
|
this.dataLowgf.kxsNum = res.kxsNum;
|
|
this.dataLowgf.kxsNum = res.kxsNum;
|
|
- this.dataLowgf.proportion =
|
|
|
|
- Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%";
|
|
|
|
|
|
+ this.dataLowgf.proportion = Math.floor(
|
|
|
|
+ (res.kxsNum / res.num).toFixed(2) * 100
|
|
|
|
+ )
|
|
|
|
+ ? Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%"
|
|
|
|
+ : "0%";
|
|
this.dataLowgf.cont = arr;
|
|
this.dataLowgf.cont = arr;
|
|
}
|
|
}
|
|
});
|
|
});
|