Browse Source

bug fixed

duwendi 1 year ago
parent
commit
0edc79582a

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

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

+ 1 - 1
src/components/barChart.vue

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

+ 1 - 1
src/components/lineChart.vue

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

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

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