chenrui  2 жил өмнө
parent
commit
e3fab98d59

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

@@ -144,6 +144,7 @@ export default {
       myChart.clear();
       myChart.setOption(discoloration);
       window.onresize = () => {
+        this.queryData.riskRating = a.seriesName;
         myChart.resize();
       };
       myChart.on("click", (a, b) => {

+ 7 - 6
src/views/securityCheck/views/securityChannelHome.vue

@@ -43,6 +43,7 @@ export default {
         endTime: data[0][1],
         proxyId: data[1],
         proxyLevel: data[2],
+        type: "日",
       };
       this.relationDate(data);
     },
@@ -63,7 +64,7 @@ export default {
           endDate: data[0][1],
           proxyId: data[1],
           proxyLevel: data[2],
-          type: "",
+          querytype: "",
         };
         const result = await correlation(params);
         if (result.status == 200) {
@@ -76,15 +77,15 @@ export default {
           result.data.forEach((element) => {
             arrx.push(element.channel);
             element.datas.forEach((res) => {
-              if (res.level === "高风险") {
+              if (res.level === "高风险") {
                 arr.push(res.count);
-              } else if (res.level == "低风险") {
+              } else if (res.level == "低风险") {
                 Low.push(res.count);
-              } else if (res.level == "优先") {
+              } else if (res.level == "优先") {
                 firs.push(res.count);
-              } else if (res.level == "普通") {
+              } else if (res.level == "普通") {
                 pt.push(res.count);
-              } else if (res.level == "严控") {
+              } else if (res.level == "严控") {
                 strictly.push(res.count);
               }
             });