|
@@ -398,8 +398,8 @@ export default {
|
|
|
});
|
|
|
this.dataall.data.forEach((element) => {
|
|
|
element.proportion = element.value / counts;
|
|
|
- element.proportion = Math.floor(element.proportion.toFixed(2) * 100)
|
|
|
- ? Math.floor(element.proportion.toFixed(2) * 100) + "%"
|
|
|
+ element.proportion = Math.floor(element.proportion * 100)
|
|
|
+ ? Math.floor(element.proportion * 100) + "%"
|
|
|
: "0%";
|
|
|
});
|
|
|
result.data.forEach((res) => {
|
|
@@ -413,7 +413,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.yjNum / arr.toFixed(2)) * 100) + "%",
|
|
|
+ : Math.floor((res.yjNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "拒运",
|
|
@@ -421,7 +421,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.jyNum / arr.toFixed(2)) * 100) + "%",
|
|
|
+ : Math.floor((res.jyNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "放行",
|
|
@@ -429,7 +429,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.fxNum / arr.toFixed(2)) * 100) + "%",
|
|
|
+ : Math.floor((res.fxNum / arr) * 100) + "%",
|
|
|
},
|
|
|
];
|
|
|
} else {
|
|
@@ -440,7 +440,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.yjNum / arr.toFixed(2)) * 100) + "%",
|
|
|
+ : Math.floor((res.yjNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "拒运",
|
|
@@ -448,7 +448,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.jyNum / arr.toFixed(2)) * 100) + "%",
|
|
|
+ : Math.floor((res.jyNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "放行",
|
|
@@ -456,7 +456,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.fxNum / arr.toFixed(2)) * 100) + "%",
|
|
|
+ : Math.floor((res.fxNum / arr) * 100) + "%",
|
|
|
},
|
|
|
];
|
|
|
}
|
|
@@ -464,9 +464,9 @@ export default {
|
|
|
this.dataLow.num = res.num;
|
|
|
this.dataLow.kxsNum = arr ? arr : res.kxsNum;
|
|
|
this.dataLow.proportion = Math.floor(
|
|
|
- (res.kxsNum / res.num).toFixed(2) * 100
|
|
|
+ (res.kxsNum / res.num) * 100
|
|
|
)
|
|
|
- ? Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%"
|
|
|
+ ? Math.floor((res.kxsNum / res.num) * 100) + "%"
|
|
|
: " 0%";
|
|
|
this.dataLow.cont = arr;
|
|
|
} else if (res.risk == "优先") {
|
|
@@ -479,7 +479,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.yjNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "拒运",
|
|
@@ -487,7 +487,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.jyNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "放行",
|
|
@@ -495,7 +495,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.fxNum / arr) * 100) + "%",
|
|
|
},
|
|
|
];
|
|
|
} else {
|
|
@@ -506,7 +506,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.yjNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "拒运",
|
|
@@ -514,7 +514,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.jyNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "放行",
|
|
@@ -522,7 +522,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.fxNum / arr) * 100) + "%",
|
|
|
},
|
|
|
];
|
|
|
}
|
|
@@ -530,9 +530,9 @@ export default {
|
|
|
this.dataLowcp.num = res.num;
|
|
|
this.dataLowcp.kxsNum = arr ? arr : res.kxsNum;
|
|
|
this.dataLowcp.proportion = Math.floor(
|
|
|
- (res.kxsNum / res.num).toFixed(2) * 100
|
|
|
+ (res.kxsNum / res.num) * 100
|
|
|
)
|
|
|
- ? Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%"
|
|
|
+ ? Math.floor((res.kxsNum / res.num) * 100) + "%"
|
|
|
: "o%";
|
|
|
this.dataLowcp.cont = arr;
|
|
|
} else if (res.risk == "普通") {
|
|
@@ -545,7 +545,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.yjNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "拒运",
|
|
@@ -553,7 +553,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.jyNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "放行",
|
|
@@ -561,7 +561,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.fxNum / arr) * 100) + "%",
|
|
|
},
|
|
|
];
|
|
|
} else {
|
|
@@ -572,7 +572,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.yjNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "拒运",
|
|
@@ -580,7 +580,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.jyNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "放行",
|
|
@@ -588,7 +588,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.fxNum / arr) * 100) + "%",
|
|
|
},
|
|
|
];
|
|
|
}
|
|
@@ -596,9 +596,9 @@ export default {
|
|
|
this.dataLowpt.num = res.num;
|
|
|
this.dataLowpt.kxsNum = arr ? arr : res.kxsNum;
|
|
|
this.dataLowpt.proportion = Math.floor(
|
|
|
- (res.kxsNum / res.num).toFixed(2) * 100
|
|
|
+ (res.kxsNum / res.num) * 100
|
|
|
)
|
|
|
- ? Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%"
|
|
|
+ ? Math.floor((res.kxsNum / res.num) * 100) + "%"
|
|
|
: "0%";
|
|
|
this.dataLowpt.cont = arr;
|
|
|
} else if (res.risk == "严控") {
|
|
@@ -611,7 +611,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.yjNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "拒运",
|
|
@@ -619,7 +619,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.jyNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "放行",
|
|
@@ -627,7 +627,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.fxNum / arr) * 100) + "%",
|
|
|
},
|
|
|
];
|
|
|
} else {
|
|
@@ -638,7 +638,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.yjNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "拒运",
|
|
@@ -646,7 +646,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.jyNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "放行",
|
|
@@ -654,7 +654,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.fxNum / arr) * 100) + "%",
|
|
|
},
|
|
|
];
|
|
|
}
|
|
@@ -662,9 +662,9 @@ export default {
|
|
|
this.dataLowyk.num = res.num;
|
|
|
this.dataLowyk.kxsNum = arr ? arr : res.kxsNum;
|
|
|
this.dataLowyk.proportion = Math.floor(
|
|
|
- (res.kxsNum / res.num).toFixed(2) * 100
|
|
|
+ (res.kxsNum / res.num) * 100
|
|
|
)
|
|
|
- ? Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%"
|
|
|
+ ? Math.floor((res.kxsNum / res.num) * 100) + "%"
|
|
|
: "0%";
|
|
|
this.dataLowyk.cont = arr;
|
|
|
} else if (res.risk == "高风险") {
|
|
@@ -677,7 +677,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.yjNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "拒运",
|
|
@@ -685,7 +685,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.jyNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "放行",
|
|
@@ -693,7 +693,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.fxNum / arr) * 100) + "%",
|
|
|
},
|
|
|
];
|
|
|
} else {
|
|
@@ -704,7 +704,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.yjNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.yjNum / arr) * 100) + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "拒运",
|
|
@@ -712,7 +712,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.jyNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : (res.jyNum / arr) * 100 + "%",
|
|
|
},
|
|
|
{
|
|
|
name: "放行",
|
|
@@ -720,7 +720,7 @@ export default {
|
|
|
prot:
|
|
|
arr == 0
|
|
|
? "0%"
|
|
|
- : Math.floor((res.fxNum / arr).toFixed(2) * 100) + "%",
|
|
|
+ : Math.floor((res.fxNum / arr) * 100) + "%",
|
|
|
},
|
|
|
];
|
|
|
}
|
|
@@ -728,9 +728,9 @@ export default {
|
|
|
this.dataLowgf.num = res.num;
|
|
|
this.dataLowgf.kxsNum = arr ? arr : res.kxsNum;
|
|
|
this.dataLowgf.proportion = Math.floor(
|
|
|
- (res.kxsNum / res.num).toFixed(2) * 100
|
|
|
+ (res.kxsNum / res.num) * 100
|
|
|
)
|
|
|
- ? Math.floor((res.kxsNum / res.num).toFixed(2) * 100) + "%"
|
|
|
+ ? Math.floor((res.kxsNum / res.num) * 100) + "%"
|
|
|
: "0%";
|
|
|
this.dataLowgf.cont = arr;
|
|
|
}
|