Browse Source

停车缺口分析左右分布

duwendi 1 year ago
parent
commit
251ddcf73d
1 changed files with 19 additions and 27 deletions
  1. 19 27
      src/pages/index/components/gap_analysis.vue

+ 19 - 27
src/pages/index/components/gap_analysis.vue

@@ -1,36 +1,28 @@
1 1
 <template>
2
-  <div>
3
-    <div style="color: #d5d3d3" class="middle-map">
4
-      <div align="center" style="color: #3498db;font-size: 23px;margin-bottom: 20px">停车缺口分析</div>
5
-<!--      <el-select clearable v-model="value" filterable remote reserve-keyword placeholder="请选择时段">-->
6
-<!--        <el-option-->
7
-<!--          v-for="item in options"-->
8
-<!--          :key="item.value"-->
9
-<!--          :label="item.label"-->
10
-<!--          :value="item.value">-->
11
-<!--        </el-option>-->
12
-<!--      </el-select>-->
13
-      <div style="height: 450px">
2
+  <div style="display: flex;">
3
+    <div style="color: #d5d3d3;width: 50%" class="middle-map">
4
+      <div align="center" style="color: #3498db;font-size: 14px;margin-bottom: 20px">停车缺口分析</div>
5
+      <div style="height: 500px">
14 6
         <div class="bottom" id="map"></div>
15 7
       </div>
16 8
     </div>
17
-      <div class="body-wrapper" style="height: 300px">
18
-        <div align="center" style="color: #3498db;font-size: 23px;margin-bottom: 20px">停车缺口变化趋势</div>
19
-        <linechart
20
-          :autoStop="false"
21
-          :top="30"
22
-          :bottom="30"
23
-          :left="40"
24
-          :legendTop="0"
25
-          :dataset="linedata"
26
-          yAxisName="%"
27
-          :tooltipFormat="lineTooltipFormat"
28
-          :encode="[
9
+    <div style="width: 50%; height: 500px">
10
+      <div align="center" style="color: #3498db;font-size: 14px;margin-bottom: 20px">停车缺口变化趋势</div>
11
+      <linechart
12
+        :autoStop="false"
13
+        :top="30"
14
+        :bottom="30"
15
+        :left="40"
16
+        :legendTop="0"
17
+        :dataset="linedata"
18
+        yAxisName="%"
19
+        :tooltipFormat="lineTooltipFormat"
20
+        :encode="[
29 21
               { x: 'month', y: 'lastAmount', seriesName: '缺口程度',bool:'true' },
30 22
             ]"
31
-          id="sxcyfzqk"
32
-        />
33
-      </div>
23
+        id="sxcyfzqk"
24
+      />
25
+    </div>
34 26
   </div>
35 27
 </template>
36 28