f6216528 by 任超

style;首页样式修改

1 parent e4a5d48e
1 <template> 1 <template>
2 <!-- 地图 --> 2 <!-- 地图 -->
3 <Echart 3 <Echart id="centreLeft2Chart" class="centreLeft2Chart" :key="key" ref="centreLeft2ChartRef" width="100%" height="100%"
4 id="centreLeft2Chart"
5 class="centreLeft2Chart"
6 :key="key"
7 ref="centreLeft2ChartRef"
8 width="100%"
9 height="100%"
10 :options="options"></Echart> 4 :options="options"></Echart>
11 </template> 5 </template>
12 6
13 <script> 7 <script>
14 import Echart from "@/common/echart"; 8 import Echart from "@/common/echart";
15 import { mapGetters } from "vuex"; 9 import { mapGetters } from "vuex";
16 export default { 10 export default {
17 data () { 11 data () {
18 return { 12 return {
19 options: {}, 13 options: {},
...@@ -34,7 +28,6 @@ ...@@ -34,7 +28,6 @@
34 }, 28 },
35 }, 29 },
36 mounted () { 30 mounted () {
37
38 window.addEventListener("resize", () => { 31 window.addEventListener("resize", () => {
39 this.key++; 32 this.key++;
40 }); 33 });
...@@ -79,7 +72,7 @@ ...@@ -79,7 +72,7 @@
79 visualMap: { 72 visualMap: {
80 min: 0, 73 min: 0,
81 max: _this.max, 74 max: _this.max,
82 bottom: "13%", 75 bottom: "12%",
83 left: 50, 76 left: 50,
84 splitNumber: 6, 77 splitNumber: 6,
85 seriesIndex: [0], 78 seriesIndex: [0],
...@@ -255,6 +248,6 @@ ...@@ -255,6 +248,6 @@
255 }); 248 });
256 }, 249 },
257 }, 250 },
258 }; 251 };
259 </script> 252 </script>
260 <style></style> 253 <style></style>
......
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
78 } 78 }
79 79
80 .rightcard { 80 .rightcard {
81 width: 30%; 81 width: 32%;
82 display: flex; 82 display: flex;
83 height: calc(100vh - 114px); 83 height: calc(100vh - 114px);
84 flex-direction: column; 84 flex-direction: column;
......