Browse Source

bug fixed

duwendi 1 year ago
parent
commit
0edc79582a

+ 3 - 0
src/assets/css/element_ui.css

@@ -37,6 +37,9 @@
37 37
 .el-popper[x-placement^="bottom"] .popper__arrow::after {
38 38
   border-bottom-color: #19446E;
39 39
 }
40
+.el-table .el-table__cell {
41
+  padding: 0.26042vw 0;
42
+}
40 43
 
41 44
 /* 重置种植动态搜索区域 */
42 45
 .el-form {

+ 1 - 1
src/components/barChart.vue

@@ -151,7 +151,7 @@ export default {
151 151
           show: true,//开启显示
152 152
           position: 'top',//在上方显示
153 153
           textStyle: {//数值样式
154
-            fontSize: '7px',
154
+            fontSize: '5px',
155 155
             color: '#fff'
156 156
           },
157 157
           // formatter: '{c}',

+ 1 - 1
src/components/lineChart.vue

@@ -23,7 +23,7 @@ export default {
23 23
     legendTop: { type: Number, default: 10 },
24 24
     markLine: { type: Object }, // 标线
25 25
     symbolSize: { type: Number, default: 4 },
26
-    showArea: { type: Boolean, default: true },
26
+    showArea: { type: Boolean, default: false },
27 27
     labelSize: { type: Number, default: 12 },
28 28
     isBig: { type: Boolean, default: false },
29 29
     autoStop: { type: Boolean, default: true }, // tooltip循环会否循环一轮后自动停止

+ 16 - 9
src/pages/index/components/business_overview.vue

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3 3
     <div style="width: 100%;display: flex;justify-content: space-between;">
4
-      <div style="width: 33%;height: 400px;">
4
+      <div style="width: 33%;height: 200px;">
5 5
         <h4 style="color: white">车场数量</h4>
6 6
         <piechart
7 7
           class="model-pie-body"
@@ -14,7 +14,7 @@
14 14
           :encode="{ itemName: 'name', value: 'value' }"
15 15
         />
16 16
       </div>
17
-      <div style="width: 33%;height: 400px;">
17
+      <div style="width: 33%;height: 200px;">
18 18
         <h4 style="color: white">设备情况</h4>
19 19
         <barchart
20 20
           class="side-chart"
@@ -34,7 +34,7 @@
34 34
           id="fxdqhszzt"
35 35
         />
36 36
       </div>
37
-      <div style="width: 33%;height: 400px;">
37
+      <div style="width: 33%;height: 200px;">
38 38
         <h4 style="color: white">事件数据</h4>
39 39
         <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
40 40
           <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
@@ -51,7 +51,7 @@
51 51
     <br>
52 52
     <br>
53 53
     <div style="width: 100%;display: flex;justify-content: space-between;">
54
-      <div style="width: 33%;height: 400px;">
54
+      <div style="width: 33%;height: 200px;">
55 55
         <div align="center" style="color: white">停车趋势</div>
56 56
         <linechart
57 57
           :autoStop="false"
@@ -69,7 +69,7 @@
69 69
           id="sxcyfzqk1"
70 70
         />
71 71
       </div>
72
-      <div style="width: 33%;height: 400px;">
72
+      <div style="width: 33%;height: 200px;">
73 73
         <div align="center" style="color: white">泊位周转趋势</div>
74 74
         <linechart
75 75
           :autoStop="false"
@@ -87,7 +87,7 @@
87 87
           id="bwzzqs"
88 88
         />
89 89
       </div>
90
-      <div style="width: 33%;height: 400px;">
90
+      <div style="width: 33%;height: 200px;">
91 91
         <div align="center" style="color: white">泊位利用率趋势</div>
92 92
         <linechart
93 93
           :autoStop="false"
@@ -109,7 +109,7 @@
109 109
     <br>
110 110
     <br>
111 111
     <div style="width: 100%;display: flex;justify-content: space-between;">
112
-      <div style="width: 33%;height: 400px;">
112
+      <div style="width: 33%;height: 200px;">
113 113
         <div align="center" style="color: white">实缴金额</div>
114 114
         <linechart
115 115
           :autoStop="false"
@@ -127,7 +127,7 @@
127 127
           id="sjqs"
128 128
         />
129 129
       </div>
130
-      <div style="width: 33%;height: 400px;">
130
+      <div style="width: 33%;height: 200px;">
131 131
         <div align="center" style="color: white">泊位实时占用率</div>
132 132
         <linechart
133 133
           :autoStop="false"
@@ -145,7 +145,7 @@
145 145
           id="bwsszyl"
146 146
         />
147 147
       </div>
148
-      <div style="width: 33%;height: 400px;">
148
+      <div style="width: 33%;height: 200px;">
149 149
         <h4 style="color: white">动态信息监控</h4>
150 150
         <el-table :data="tableData2" style="background: #2a2a2a;border-color: #333;">
151 151
           <el-table-column v-for="(item, index) in columns2" :key="index" :label="item.label" :prop="item.key">
@@ -244,6 +244,9 @@ export default {
244 244
     this.dashBusinessOverviewStat6()
245 245
     this.dashBusinessOverviewStat7()
246 246
     this.getTableData2()
247
+    this.interval = setInterval(() => {
248
+      this.getTableData2()
249
+    }, 5000)
247 250
     const {pageNum, pageSize} = this
248 251
     let that = this
249 252
     let params4 = {current: pageNum, size: pageSize}
@@ -255,9 +258,13 @@ export default {
255 258
       this.tableData = res[3].data.records || []
256 259
       this.total = res[3].data.total || 0
257 260
     })
261
+
258 262
   },
259 263
   watch: {
260 264
   },
265
+  beforeDestroy() {
266
+    clearInterval(this.interval)
267
+  },
261 268
   methods: {
262 269
     dashAccessDataAnalysisStat1(){
263 270
       api_l.dashAccessDataAnalysisStat1().then(res =>{