chenrui  2 jaren geleden
bovenliggende
commit
2522e17702

+ 1 - 2
src/views/securityCheck/components/securityCheckHeader.vue

@@ -343,7 +343,6 @@ export default {
     if (Object.keys(this.$route.query).length == 0) {
       this.formData.dateRangeRadio = "当日";
     } else {
-      console.log(this.$route.query);
       this.formData.beginDate = this.$route.query.startTime;
       this.formData.endDate = this.$route.query.endTime;
       // this.formData.selection = this.$route.query.levelId
@@ -363,7 +362,7 @@ export default {
   },
   methods: {
     handleChange(data) {
-      console.log(data);
+      // console.log(data);
       this.formData.selection = data;
     },
     change() {

+ 11 - 6
src/views/securityCheck/views/cargoCharts.vue

@@ -52,7 +52,12 @@ import { agent, routeall } from "@/api/statistics/statistics.js";
 export default {
   data() {
     return {
-      queryData: {},
+      queryData: {
+        startTime: "",
+        endTime: "",
+        agentLevel: "",
+        agentCode: "",
+      },
       queryDatacopy: {},
       destination: [],
       dataall: {
@@ -123,7 +128,7 @@ export default {
         id: 10,
         kaer: 1,
         formatter: "{c}%",
-        name: "优先",
+        name: "优先",
         cont: "10%",
         top: "35%",
         data: [
@@ -145,7 +150,7 @@ export default {
         id: 11,
         kaer: 1,
         formatter: "{c}%",
-        name: "普通",
+        name: "普通",
         cont: "10%",
         top: "35%",
         data: [
@@ -167,7 +172,7 @@ export default {
         id: 12,
         kaer: 1,
         formatter: "{c}%",
-        name: "严控",
+        name: "严控",
         cont: "10%",
         top: "35%",
         data: [
@@ -309,7 +314,7 @@ export default {
             },
             {
               value: firsall,
-              name: "优先",
+              name: "优先",
             },
           ];
           this.dataordinary.cont = Math.floor(
@@ -335,7 +340,7 @@ export default {
             },
             {
               value: strictlyall,
-              name: "严控",
+              name: "严控",
             },
           ];
         }

+ 88 - 11
src/views/securityCheck/views/cargoStatisticsHome.vue

@@ -334,9 +334,13 @@ export default {
       dataLow: {
         id: 2,
         name: "开包数",
-        name2: "低风险货物级",
+        name2: "低风险",
         cont: "500",
-        data: [],
+        data: [
+          { value: 335, name: "1" },
+          { value: 310, name: "2" },
+          { value: 310, name: "3" },
+        ],
         top: "41%",
         textStyle: {
           fontSize: "20",
@@ -352,9 +356,13 @@ export default {
       dataLowcp: {
         id: 3,
         name: "开包数",
-        name2: "优先",
+        name2: "优先",
         cont: "500",
-        data: [],
+        data: [
+          { value: 335, name: "1" },
+          { value: 310, name: "2" },
+          { value: 310, name: "3" },
+        ],
         top: "41%",
         textStyle: {
           fontSize: "20",
@@ -370,9 +378,13 @@ export default {
       dataLowpt: {
         id: 4,
         name: "开包数",
-        name2: "普通",
+        name2: "普通",
         cont: "500",
-        data: [],
+        data: [
+          { value: 335, name: "1" },
+          { value: 310, name: "2" },
+          { value: 310, name: "3" },
+        ],
         top: "41%",
         textStyle: {
           fontSize: "20",
@@ -388,9 +400,13 @@ export default {
       dataLowyk: {
         id: 5,
         name: "开包数",
-        name2: "严控",
+        name2: "严控",
         cont: "500",
-        data: [],
+        data: [
+          { value: 335, name: "1" },
+          { value: 310, name: "2" },
+          { value: 310, name: "3" },
+        ],
         top: "41%",
         textStyle: {
           fontSize: "20",
@@ -406,9 +422,13 @@ export default {
       dataLowgf: {
         id: 6,
         name: "开包数",
-        name2: "高风险货物级",
+        name2: "高风险",
         cont: "500",
-        data: [],
+        data: [
+          { value: 335, name: "1" },
+          { value: 310, name: "2" },
+          { value: 310, name: "3" },
+        ],
         top: "38%",
         textStyle: {
           fontSize: "20",
@@ -421,7 +441,12 @@ export default {
         },
         color: ["#6161BD", "#FAD153", "#DC5594"],
       },
-      queryData: {},
+      queryData: {
+        startTime: "",
+        endTime: "",
+        agentLevel: "",
+        agentCode: "",
+      },
     };
   },
   components: {
@@ -447,6 +472,9 @@ export default {
     //点击跳转
     echar(data) {
       if (data) {
+        if (data.namefa == "申报件数") {
+          data.namefa = "";
+        }
         this.queryData.riskRating = data.namefa;
         this.queryData.openResult = data.namech;
       }
@@ -473,6 +501,55 @@ export default {
         let count = 0;
         let counts = 0;
         let arr = [];
+        if (result.data.length == 0) {
+          result.data = [
+            {
+              no: 1,
+              risk: "普通",
+              num: 0,
+              kxsNum: 0,
+              yjNum: 0,
+              jyNum: 0,
+              fxNum: 0,
+            },
+            {
+              no: 2,
+              risk: "高风险",
+              num: 0,
+              kxsNum: 0,
+              yjNum: 0,
+              jyNum: 0,
+              fxNum: 0,
+            },
+            {
+              no: 3,
+              risk: "严控",
+              num: 0,
+              kxsNum: 0,
+              yjNum: 0,
+              jyNum: 0,
+              fxNum: 0,
+            },
+            {
+              no: 4,
+              risk: "优先",
+              num: 0,
+              kxsNum: 0,
+              yjNum: 0,
+              jyNum: 0,
+              fxNum: 0,
+            },
+            {
+              no: 5,
+              risk: "低风险",
+              num: 0,
+              kxsNum: 0,
+              yjNum: 0,
+              jyNum: 0,
+              fxNum: 0,
+            },
+          ];
+        }
         //获取总件数:
         result.data.forEach((item) => {
           count += item.num;