chenrui  2 years ago
parent
commit
7cf05c5afa

+ 6 - 1
src/views/securityCheck/components/graphicHome.vue

@@ -53,7 +53,12 @@ export default {
         myChart.resize();
       };
       myChart.on("click", (a, b) => {
-        this.$emit("echar");
+        console.log(a);
+        let obj = {
+          namefa: a.seriesName,
+          namech: a.name,
+        };
+        this.$emit("echar", obj);
       });
     },
   },

+ 9 - 5
src/views/securityCheck/views/agentHome.vue

@@ -18,7 +18,7 @@
             </div>
             <div class="chart_cont">
               <div class="chart_left">
-                <GraphicEchart :texter="dataall" />
+                <GraphicEchart :texter="dataall" @echar="echar" />
               </div>
               <div class="chart_right pt90">
                 <div
@@ -48,7 +48,7 @@
             </div>
             <div class="chart_cont">
               <div class="chart_left">
-                <GraphicEchart :texter="dataLowpt" />
+                <GraphicEchart :texter="dataLowpt" @echar="echar" />
               </div>
               <div class="chart_right">
                 <div class="analysis">
@@ -92,7 +92,7 @@
             </div>
             <div class="chart_cont">
               <div class="chart_left">
-                <GraphicEchart :texter="dataLow" />
+                <GraphicEchart :texter="dataLow" @echar="echar" />
               </div>
               <div class="chart_right">
                 <div class="analysis">
@@ -136,7 +136,7 @@
             </div>
             <div class="chart_cont">
               <div class="chart_left">
-                <GraphicEchart :texter="dataLowgf" />
+                <GraphicEchart :texter="dataLowgf" @echar="echar" />
               </div>
               <div class="chart_right">
                 <div class="analysis">
@@ -288,7 +288,11 @@ export default {
       this.getData();
     },
     //点击跳转
-    echar() {
+    echar(data) {
+      if (data) {
+        this.queryData.riskRating = data.namefa;
+        this.queryData.openResult = data.namech;
+      }
       this.$router.push({
         path: "/waybillTable",
         query: this.queryData,

+ 9 - 3
src/views/securityCheck/views/cargoCharts.vue

@@ -206,7 +206,11 @@ export default {
       this.relationDate();
     },
     //点击跳转
-    echar() {
+    echar(data) {
+      if (data) {
+        this.queryData.riskRating = data.namefa;
+        this.queryData.openResult = data.namech;
+      }
       this.$router.push({
         path: "/waybillTable",
         query: this.queryData,
@@ -351,7 +355,6 @@ export default {
             };
             this.destination.push(obj);
           });
-          console.log(this.destination);
         }
       } catch (error) {
         console.log(error);
@@ -379,7 +382,10 @@ export default {
         myChart.resize();
       };
       myChart.on("click", (a, b) => {
-        this.echar();
+        console.log(a);
+        this.queryData.riskRating = a.seriesName;
+        // this.queryData.openResult = a.value;
+        // this.echar();
       });
     },
   },

+ 5 - 1
src/views/securityCheck/views/cargoStatisticsHome.vue

@@ -445,7 +445,11 @@ export default {
       this.getData();
     },
     //点击跳转
-    echar() {
+    echar(data) {
+      if (data) {
+        this.queryData.riskRating = data.namefa;
+        this.queryData.openResult = data.namech;
+      }
       this.$router.push({
         path: "/waybillTable",
         query: this.queryData,

+ 2 - 0
src/views/securityCheck/views/comprehensiveHome.vue

@@ -166,6 +166,8 @@ export default {
         myChart.resize();
       };
       myChart.on("click", (a, b) => {
+        this.queryData.riskRating = a.seriesName;
+        // this.queryData.openResult = a.value;
         this.echar();
       });
     },

+ 2 - 0
src/views/securityCheck/views/securityChannelHome.vue

@@ -113,6 +113,8 @@ export default {
         myChart.resize();
       };
       myChart.on("click", (a, b) => {
+        this.queryData.riskRating = a.seriesName;
+        // this.queryData.openResult = a.value;
         this.echar();
       });
     },