From 0e4d44c2f5a7511d2eee72deecb76b5ba67358cd Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 04 Jan 2022 17:39:41 +0800
Subject: [PATCH] 智能分析查询明细样式调整

---
 src/views/securityAnalysis/index.vue |   43 +++++++++++++++++++++++++------------------
 1 files changed, 25 insertions(+), 18 deletions(-)

diff --git a/src/views/securityAnalysis/index.vue b/src/views/securityAnalysis/index.vue
index e5f70bf..51d9507 100644
--- a/src/views/securityAnalysis/index.vue
+++ b/src/views/securityAnalysis/index.vue
@@ -50,12 +50,13 @@
     </div>
     <div>
       <el-dialog
-        width="90%"
+        width="80%"
         :title="titles"
         append-to-body
         :visible.sync="dialogVisible"
-        top="8vh"
-        height="70%"
+        lock-scroll="false"
+        top="1vh"
+        center
       >
         <situation
           :card="{ deptId: deptid, jurisdiction: jurisdiction }"
@@ -617,6 +618,12 @@
     // },
     //后改,考试数据统计
     setEC3(data) {
+      //获取年份
+      // let year = new Date().getFullYear();
+      // var timeData = [];
+      // for (let index = 1; index < 13; index++) {
+      //   timeData.push(year+"-"+ index );
+      // }
       const seriesdata = [];
       data.forEach((item) => {
         if (item.type == 1) {
@@ -642,6 +649,20 @@
           });
         }
       });
+      var datetime = [
+              "1月",
+              "2月",
+              "3月",
+              "4月",
+              "5月",
+              "6月",
+              "7月",
+              "8月",
+              "9月",
+              "10月",
+              "11月",
+              "12月",
+            ]
       //echarts 图表数据
       var option = {
         title: {
@@ -673,20 +694,7 @@
         xAxis: [
           {
             type: "category",
-            data: [
-              "1月",
-              "2月",
-              "3月",
-              "4月",
-              "5月",
-              "6月",
-              "7月",
-              "8月",
-              "9月",
-              "10月",
-              "11月",
-              "12月",
-            ],
+            data: datetime
           },
         ],
         yAxis: [
@@ -783,7 +791,6 @@
         },
         series: [
           {
-            // data: dd,
             data: data,
             type: "bar",
           },

--
Gitblit v1.9.3