|
@@ -6,6 +6,7 @@
|
|
|
title="航空货物综合统计"
|
|
|
@change="change"
|
|
|
:withExportButton="false"
|
|
|
+ @search="search"
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="comprehensive">
|
|
@@ -17,7 +18,7 @@
|
|
|
</div>
|
|
|
<div class="chart_cont">
|
|
|
<div class="chart_left">
|
|
|
- <GraphicEchart :id="7" :texter="dataall" ref="chart" />
|
|
|
+ <GraphicEchart :texter="dataall" ref="chart" @echar="echar" />
|
|
|
</div>
|
|
|
<div class="chart_right">
|
|
|
<div
|
|
@@ -34,46 +35,6 @@
|
|
|
<div class="child">占比:{{ item.proportion }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <div class="child">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">低风险货物级</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="child">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">优先级</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="child">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">普通级</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="child">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">严控级</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -85,51 +46,35 @@
|
|
|
</div>
|
|
|
<div class="chart_cont">
|
|
|
<div class="chart_left">
|
|
|
- <GraphicEchart :id="8" :texter="dataLow" />
|
|
|
+ <GraphicEchart :texter="dataLow" @echar="echar" />
|
|
|
</div>
|
|
|
<div class="chart_right">
|
|
|
<div class="analysis">
|
|
|
<div class="analysis_cont">
|
|
|
<p>总件数</p>
|
|
|
- <span>100</span>
|
|
|
+ <span>{{ dataLow.num }}</span>
|
|
|
</div>
|
|
|
<div class="analysis_cont">
|
|
|
<p>开包数</p>
|
|
|
- <span>10</span>
|
|
|
+ <span>{{ dataLow.kxsNum }}</span>
|
|
|
</div>
|
|
|
<div class="analysis_cont">
|
|
|
<p>开包率</p>
|
|
|
- <span>10%</span>
|
|
|
+ <span>{{ dataLow.proportion }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="childcop">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">移交</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="childcop">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">拒运</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="childcop">
|
|
|
+ <div
|
|
|
+ class="childcop"
|
|
|
+ v-for="(item, index) in dataLow.data"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
<div class="top">
|
|
|
<div class="log"></div>
|
|
|
- <div class="name">放行</div>
|
|
|
+ <div class="name">{{ item.name }}</div>
|
|
|
</div>
|
|
|
<div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
+ <div class="child">件数:{{ item.value }}</div>
|
|
|
+ <div class="child">占比:{{ item.prot }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -143,51 +88,35 @@
|
|
|
</div>
|
|
|
<div class="chart_cont">
|
|
|
<div class="chart_left">
|
|
|
- <GraphicEchart :id="9" :texter="dataLow" />
|
|
|
+ <GraphicEchart :texter="dataLowcp" @echar="echar" />
|
|
|
</div>
|
|
|
<div class="chart_right">
|
|
|
<div class="analysis">
|
|
|
<div class="analysis_cont">
|
|
|
<p>总件数</p>
|
|
|
- <span>100</span>
|
|
|
+ <span>{{ dataLowcp.num }}</span>
|
|
|
</div>
|
|
|
<div class="analysis_cont">
|
|
|
<p>开包数</p>
|
|
|
- <span>10</span>
|
|
|
+ <span>{{ dataLowcp.kxsNum }}</span>
|
|
|
</div>
|
|
|
<div class="analysis_cont">
|
|
|
<p>开包率</p>
|
|
|
- <span>10%</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="childcop">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">移交</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="childcop">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">拒运</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
+ <span>{{ dataLowcp.proportion }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="childcop">
|
|
|
+ <div
|
|
|
+ class="childcop"
|
|
|
+ v-for="(item, index) in dataLowcp.data"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
<div class="top">
|
|
|
<div class="log"></div>
|
|
|
- <div class="name">放行</div>
|
|
|
+ <div class="name">{{ item.name }}</div>
|
|
|
</div>
|
|
|
<div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
+ <div class="child">件数:{{ item.value }}</div>
|
|
|
+ <div class="child">占比:{{ item.prot }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -201,51 +130,35 @@
|
|
|
</div>
|
|
|
<div class="chart_cont">
|
|
|
<div class="chart_left">
|
|
|
- <GraphicEchart :id="10" :texter="dataLow" />
|
|
|
+ <GraphicEchart :texter="dataLowpt" @echar="echar" />
|
|
|
</div>
|
|
|
<div class="chart_right">
|
|
|
<div class="analysis">
|
|
|
<div class="analysis_cont">
|
|
|
<p>总件数</p>
|
|
|
- <span>100</span>
|
|
|
+ <span>{{ dataLowpt.num }}</span>
|
|
|
</div>
|
|
|
<div class="analysis_cont">
|
|
|
<p>开包数</p>
|
|
|
- <span>10</span>
|
|
|
+ <span>{{ dataLowpt.kxsNum }}</span>
|
|
|
</div>
|
|
|
<div class="analysis_cont">
|
|
|
<p>开包率</p>
|
|
|
- <span>10%</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="childcop">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">移交</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="childcop">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">拒运</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
+ <span>{{ dataLowpt.proportion }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="childcop">
|
|
|
+ <div
|
|
|
+ class="childcop"
|
|
|
+ v-for="(item, index) in dataLowpt.data"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
<div class="top">
|
|
|
<div class="log"></div>
|
|
|
- <div class="name">放行</div>
|
|
|
+ <div class="name">{{ item.name }}</div>
|
|
|
</div>
|
|
|
<div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
+ <div class="child">件数:{{ item.value }}</div>
|
|
|
+ <div class="child">占比:{{ item.prot }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -259,51 +172,35 @@
|
|
|
</div>
|
|
|
<div class="chart_cont">
|
|
|
<div class="chart_left">
|
|
|
- <GraphicEchart :id="11" :texter="dataLow" />
|
|
|
+ <GraphicEchart :texter="dataLowyk" @echar="echar" />
|
|
|
</div>
|
|
|
<div class="chart_right">
|
|
|
<div class="analysis">
|
|
|
<div class="analysis_cont">
|
|
|
<p>总件数</p>
|
|
|
- <span>100</span>
|
|
|
+ <span>{{ dataLowyk.num }}</span>
|
|
|
</div>
|
|
|
<div class="analysis_cont">
|
|
|
<p>开包数</p>
|
|
|
- <span>10</span>
|
|
|
+ <span>{{ dataLowyk.kxsNum }}</span>
|
|
|
</div>
|
|
|
<div class="analysis_cont">
|
|
|
<p>开包率</p>
|
|
|
- <span>10%</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="childcop">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">移交</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
+ <span>{{ dataLowyk.proportion }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="childcop">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">拒运</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="childcop">
|
|
|
+ <div
|
|
|
+ class="childcop"
|
|
|
+ v-for="(item, index) in dataLowyk.data"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
<div class="top">
|
|
|
<div class="log"></div>
|
|
|
- <div class="name">放行</div>
|
|
|
+ <div class="name">{{ item.name }}</div>
|
|
|
</div>
|
|
|
<div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
+ <div class="child">件数:{{ item.value }}</div>
|
|
|
+ <div class="child">占比:{{ item.prot }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -317,51 +214,35 @@
|
|
|
</div>
|
|
|
<div class="chart_cont">
|
|
|
<div class="chart_left">
|
|
|
- <GraphicEchart :id="12" :texter="dataLow" />
|
|
|
+ <GraphicEchart :texter="dataLowgf" @echar="echar" />
|
|
|
</div>
|
|
|
<div class="chart_right">
|
|
|
<div class="analysis">
|
|
|
<div class="analysis_cont">
|
|
|
<p>总件数</p>
|
|
|
- <span>100</span>
|
|
|
+ <span>{{ dataLowgf.num }}</span>
|
|
|
</div>
|
|
|
<div class="analysis_cont">
|
|
|
<p>开包数</p>
|
|
|
- <span>10</span>
|
|
|
+ <span>{{ dataLowgf.kxsNum }}</span>
|
|
|
</div>
|
|
|
<div class="analysis_cont">
|
|
|
<p>开包率</p>
|
|
|
- <span>10%</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="childcop">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">移交</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="childcop">
|
|
|
- <div class="top">
|
|
|
- <div class="log"></div>
|
|
|
- <div class="name">拒运</div>
|
|
|
- </div>
|
|
|
- <div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
+ <span>{{ dataLowgf.proportion }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="childcop">
|
|
|
+ <div
|
|
|
+ class="childcop"
|
|
|
+ v-for="(item, index) in dataLowgf.data"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
<div class="top">
|
|
|
<div class="log"></div>
|
|
|
- <div class="name">放行</div>
|
|
|
+ <div class="name">{{ item.name }}</div>
|
|
|
</div>
|
|
|
<div class="boot">
|
|
|
- <div class="child">件数:100</div>
|
|
|
- <div class="child">占比:20%</div>
|
|
|
+ <div class="child">件数:{{ item.value }}</div>
|
|
|
+ <div class="child">占比:{{ item.prot }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -376,10 +257,12 @@
|
|
|
import GraphicEchart from "../components/graphicHome.vue";
|
|
|
import SecurityCheckHeader from "../components/securityCheckHeader.vue";
|
|
|
import { comprehensive } from "@/api/statistics/statistics.js";
|
|
|
+import { number } from "echarts";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
dataall: {
|
|
|
+ id: 1,
|
|
|
name: "总件数",
|
|
|
cont: "",
|
|
|
data: [
|
|
@@ -438,13 +321,78 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
dataLow: {
|
|
|
+ id: 2,
|
|
|
name: "总件数",
|
|
|
cont: "500",
|
|
|
- data: [
|
|
|
- { value: 335, name: "1" },
|
|
|
- { value: 310, name: "2" },
|
|
|
- { value: 310, name: "3" },
|
|
|
- ],
|
|
|
+ data: [],
|
|
|
+ top: "41%",
|
|
|
+ textStyle: {
|
|
|
+ fontSize: "20",
|
|
|
+ color: "#ffffff",
|
|
|
+ },
|
|
|
+ subtextStyle: {
|
|
|
+ fontSize: "36",
|
|
|
+ fontWeight: "800",
|
|
|
+ color: "#ffffff",
|
|
|
+ },
|
|
|
+ color: ["#6161BD", "#FAD153", "#DC5594"],
|
|
|
+ },
|
|
|
+ dataLowcp: {
|
|
|
+ id: 3,
|
|
|
+ name: "总件数",
|
|
|
+ cont: "500",
|
|
|
+ data: [],
|
|
|
+ top: "41%",
|
|
|
+ textStyle: {
|
|
|
+ fontSize: "20",
|
|
|
+ color: "#ffffff",
|
|
|
+ },
|
|
|
+ subtextStyle: {
|
|
|
+ fontSize: "36",
|
|
|
+ fontWeight: "800",
|
|
|
+ color: "#ffffff",
|
|
|
+ },
|
|
|
+ color: ["#6161BD", "#FAD153", "#DC5594"],
|
|
|
+ },
|
|
|
+ dataLowpt: {
|
|
|
+ id: 4,
|
|
|
+ name: "总件数",
|
|
|
+ cont: "500",
|
|
|
+ data: [],
|
|
|
+ top: "41%",
|
|
|
+ textStyle: {
|
|
|
+ fontSize: "20",
|
|
|
+ color: "#ffffff",
|
|
|
+ },
|
|
|
+ subtextStyle: {
|
|
|
+ fontSize: "36",
|
|
|
+ fontWeight: "800",
|
|
|
+ color: "#ffffff",
|
|
|
+ },
|
|
|
+ color: ["#6161BD", "#FAD153", "#DC5594"],
|
|
|
+ },
|
|
|
+ dataLowyk: {
|
|
|
+ id: 5,
|
|
|
+ name: "总件数",
|
|
|
+ cont: "500",
|
|
|
+ data: [],
|
|
|
+ top: "41%",
|
|
|
+ textStyle: {
|
|
|
+ fontSize: "20",
|
|
|
+ color: "#ffffff",
|
|
|
+ },
|
|
|
+ subtextStyle: {
|
|
|
+ fontSize: "36",
|
|
|
+ fontWeight: "800",
|
|
|
+ color: "#ffffff",
|
|
|
+ },
|
|
|
+ color: ["#6161BD", "#FAD153", "#DC5594"],
|
|
|
+ },
|
|
|
+ dataLowgf: {
|
|
|
+ id: 6,
|
|
|
+ name: "总件数",
|
|
|
+ cont: "500",
|
|
|
+ data: [],
|
|
|
top: "38%",
|
|
|
textStyle: {
|
|
|
fontSize: "20",
|
|
@@ -457,6 +405,7 @@ export default {
|
|
|
},
|
|
|
color: ["#6161BD", "#FAD153", "#DC5594"],
|
|
|
},
|
|
|
+ queryData: {},
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -467,6 +416,21 @@ export default {
|
|
|
this.getData();
|
|
|
},
|
|
|
methods: {
|
|
|
+ search(data) {
|
|
|
+ this.queryData = {
|
|
|
+ startTime: data[0][0],
|
|
|
+ endTime: data[0][1],
|
|
|
+ riskRating: data[1],
|
|
|
+ agentCode: data[2],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ //点击跳转
|
|
|
+ echar() {
|
|
|
+ this.$router.push({
|
|
|
+ path: "/waybillTable",
|
|
|
+ query: this.queryData,
|
|
|
+ });
|
|
|
+ },
|
|
|
change() {
|
|
|
this.$router.push("./cargoTable");
|
|
|
},
|
|
@@ -504,7 +468,148 @@ export default {
|
|
|
element.proportion = element.value / counts;
|
|
|
element.proportion = element.proportion.toFixed(2) * 100 + "%";
|
|
|
});
|
|
|
+ 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%" : (res.yjNum / arr.toFixed(2)) * 100 + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: res.jyNum,
|
|
|
+ prot:
|
|
|
+ arr == 0 ? "0%" : (res.jyNum / arr.toFixed(2)) * 100 + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: res.fxNum,
|
|
|
+ prot:
|
|
|
+ arr == 0 ? "0%" : (res.fxNum / arr.toFixed(2)) * 100 + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.dataLow.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
|
+ this.dataLow.num = res.num;
|
|
|
+ this.dataLow.kxsNum = res.kxsNum;
|
|
|
+ this.dataLow.proportion =
|
|
|
+ (res.kxsNum / res.num).toFixed(2) * 100 + "%";
|
|
|
+ } else if (res.risk == "优先") {
|
|
|
+ let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
|
+ this.dataLowcp.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: res.yjNum,
|
|
|
+ prot:
|
|
|
+ arr == 0 ? "0%" : (res.yjNum / arr).toFixed(2) * 100 + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: res.jyNum,
|
|
|
+ prot:
|
|
|
+ arr == 0 ? "0%" : (res.jyNum / arr).toFixed(2) * 100 + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: res.fxNum,
|
|
|
+ prot:
|
|
|
+ arr == 0 ? "0%" : (res.fxNum / arr).toFixed(2) * 100 + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.dataLowcp.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
|
+ this.dataLowcp.num = res.num;
|
|
|
+ this.dataLowcp.kxsNum = res.kxsNum;
|
|
|
+ this.dataLowcp.proportion =
|
|
|
+ (res.kxsNum / res.num).toFixed(2) * 100 + "%";
|
|
|
+ } else if (res.risk == "普通") {
|
|
|
+ let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
|
+ this.dataLowpt.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: res.yjNum,
|
|
|
+ prot:
|
|
|
+ arr == 0 ? "0%" : (res.yjNum / arr).toFixed(2) * 100 + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: res.jyNum,
|
|
|
+ prot:
|
|
|
+ arr == 0 ? "0%" : (res.jyNum / arr).toFixed(2) * 100 + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: res.fxNum,
|
|
|
+ prot:
|
|
|
+ arr == 0 ? "0%" : (res.fxNum / arr).toFixed(2) * 100 + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.dataLowpt.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
|
+ this.dataLowpt.num = res.num;
|
|
|
+ this.dataLowpt.kxsNum = res.kxsNum;
|
|
|
+ this.dataLowpt.proportion =
|
|
|
+ (res.kxsNum / res.num).toFixed(2) * 100 + "%";
|
|
|
+ } else if (res.risk == "严控") {
|
|
|
+ let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
|
+ this.dataLowyk.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: res.yjNum,
|
|
|
+ prot:
|
|
|
+ arr == 0 ? "0%" : (res.yjNum / arr).toFixed(2) * 100 + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "拒运",
|
|
|
+ value: res.jyNum,
|
|
|
+ prot:
|
|
|
+ arr == 0 ? "0%" : (res.jyNum / arr).toFixed(2) * 100 + "%",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "放行",
|
|
|
+ value: res.fxNum,
|
|
|
+ prot:
|
|
|
+ arr == 0 ? "0%" : (res.fxNum / arr).toFixed(2) * 100 + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.dataLowyk.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
|
+ this.dataLowyk.num = res.num;
|
|
|
+ this.dataLowyk.kxsNum = res.kxsNum;
|
|
|
+ this.dataLowyk.proportion =
|
|
|
+ (res.kxsNum / res.num).toFixed(2) * 100 + "%";
|
|
|
+ } else if (res.risk == "高风险") {
|
|
|
+ let arr = res.yjNum + res.jyNum + res.fxNum;
|
|
|
+ this.dataLowgf.data = [
|
|
|
+ {
|
|
|
+ name: "移交",
|
|
|
+ value: res.yjNum,
|
|
|
+ prot:
|
|
|
+ arr == 0 ? "0%" : (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%" : (res.fxNum / arr).toFixed(2) * 100 + "%",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.dataLowgf.color = ["#FAD153", "#DC5594", "#6161BD"];
|
|
|
+ this.dataLowgf.num = res.num;
|
|
|
+ this.dataLowgf.kxsNum = res.kxsNum;
|
|
|
+ this.dataLowgf.proportion =
|
|
|
+ (res.kxsNum / res.num).toFixed(2) * 100 + "%";
|
|
|
+ }
|
|
|
+ });
|
|
|
console.log(result.data, "11");
|
|
|
+ console.log(this.dataLowgf.data, "222");
|
|
|
this.$refs.chart.init();
|
|
|
} catch (error) {
|
|
|
console.log(error);
|
|
@@ -547,7 +652,8 @@ export default {
|
|
|
> .chart_right {
|
|
|
width: 45%;
|
|
|
height: 100%;
|
|
|
- padding-right: 10%;
|
|
|
+ // padding-right: 10%;
|
|
|
+ padding-left: 1%;
|
|
|
> .analysis {
|
|
|
width: 100%;
|
|
|
height: 60px;
|
|
@@ -557,7 +663,7 @@ export default {
|
|
|
margin-bottom: 10px;
|
|
|
margin-top: 20px;
|
|
|
> .analysis_cont {
|
|
|
- width: 30%;
|
|
|
+ // width: 30%;
|
|
|
height: 100%;
|
|
|
> p {
|
|
|
font-size: 14px;
|