style:地图
Showing
10 changed files
with
224 additions
and
1 deletions
src/image/zs.png
0 → 100644
887 Bytes
... | @@ -47,6 +47,21 @@ export const asyncRoutes = [ | ... | @@ -47,6 +47,21 @@ export const asyncRoutes = [ |
47 | } | 47 | } |
48 | ] | 48 | ] |
49 | }, | 49 | }, |
50 | // 监管首页 | ||
51 | { | ||
52 | path: '/jgHome', | ||
53 | component: Layout, | ||
54 | redirect: '/jgHome', | ||
55 | meta: { title: '首页' }, | ||
56 | children: [ | ||
57 | { | ||
58 | path: 'jgHome', | ||
59 | component: () => import('@/views/jgHome/index'), | ||
60 | name: 'jgHome', | ||
61 | meta: { title: '首页', icon: 'workbench', affix: true } | ||
62 | } | ||
63 | ] | ||
64 | }, | ||
50 | // 接收报文查询 | 65 | // 接收报文查询 |
51 | { | 66 | { |
52 | path: '/jsbwcx', | 67 | path: '/jsbwcx', | ... | ... |
... | @@ -151,6 +151,10 @@ div:focus { | ... | @@ -151,6 +151,10 @@ div:focus { |
151 | .d-flex { | 151 | .d-flex { |
152 | display: flex; | 152 | display: flex; |
153 | } | 153 | } |
154 | .d-flex-center { | ||
155 | display: flex; | ||
156 | align-items: center; | ||
157 | } | ||
154 | 158 | ||
155 | .bg-color-blue { | 159 | .bg-color-blue { |
156 | background-color: #1a5cd7; | 160 | background-color: #1a5cd7; | ... | ... |
1 | <template> | ||
2 | <div id="barChart"></div> | ||
3 | </template> | ||
4 | |||
5 | <script> | ||
6 | export default { | ||
7 | data () { | ||
8 | return { | ||
9 | }; | ||
10 | }, | ||
11 | mounted () { | ||
12 | this.drawProvinceMap(); | ||
13 | }, | ||
14 | methods: { | ||
15 | drawProvinceMap () { | ||
16 | var chartDom = document.getElementById('barChart'); | ||
17 | var myChart = this.$echarts.init(chartDom); | ||
18 | var option; | ||
19 | |||
20 | option = { | ||
21 | tooltip: { | ||
22 | trigger: 'axis', | ||
23 | axisPointer: { | ||
24 | type: 'shadow' | ||
25 | } | ||
26 | }, | ||
27 | legend: { | ||
28 | data: ['网络断开', '网络正常'] | ||
29 | }, | ||
30 | grid: { | ||
31 | left: '3%', | ||
32 | right: '4%', | ||
33 | bottom: '3%', | ||
34 | containLabel: true | ||
35 | }, | ||
36 | xAxis: [ | ||
37 | { | ||
38 | type: 'value' | ||
39 | } | ||
40 | ], | ||
41 | yAxis: [ | ||
42 | { | ||
43 | type: 'category', | ||
44 | axisTick: { | ||
45 | show: false | ||
46 | }, | ||
47 | data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] | ||
48 | } | ||
49 | ], | ||
50 | series: [ | ||
51 | { | ||
52 | name: '网络正常', | ||
53 | type: 'bar', | ||
54 | itemStyle: { | ||
55 | color: '#67C23A' | ||
56 | }, | ||
57 | label: { | ||
58 | show: true, | ||
59 | position: 'inside' | ||
60 | }, | ||
61 | emphasis: { | ||
62 | focus: 'series' | ||
63 | }, | ||
64 | data: [200, 170, 240, 244, 200, 220, 210] | ||
65 | }, | ||
66 | |||
67 | { | ||
68 | name: '网络断开', | ||
69 | type: 'bar', | ||
70 | itemStyle: { | ||
71 | color: '#F56C6C' | ||
72 | }, | ||
73 | label: { | ||
74 | show: true, | ||
75 | position: 'inside' | ||
76 | }, | ||
77 | emphasis: { | ||
78 | focus: 'series' | ||
79 | }, | ||
80 | data: [-120, -132, -101, -134, -190, -230, -210] | ||
81 | } | ||
82 | ], | ||
83 | |||
84 | } | ||
85 | myChart.setOption(option); | ||
86 | window.addEventListener("resize", () => { | ||
87 | this.myChart.resize(); | ||
88 | }); | ||
89 | } | ||
90 | } | ||
91 | } | ||
92 | </script> | ||
93 | <style scoped lang="scss"> | ||
94 | #barChart { | ||
95 | width: 100%; | ||
96 | height: 500px; | ||
97 | } | ||
98 | </style> |
src/views/jgHome/components/map/hanzhong.js
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
src/views/jgHome/components/map/index.vue
0 → 100644
File mode changed
src/views/jgHome/index.scss
0 → 100644
1 | .jgHome { | ||
2 | display: flex; | ||
3 | justify-content: space-between; | ||
4 | |||
5 | &-left, | ||
6 | &-right { | ||
7 | width: 30%; | ||
8 | |||
9 | .fznum { | ||
10 | font-size: 24px; | ||
11 | color: $light-blue; | ||
12 | |||
13 | span { | ||
14 | font-size: 14px; | ||
15 | color: #606266; | ||
16 | } | ||
17 | } | ||
18 | |||
19 | .fzl { | ||
20 | display: flex; | ||
21 | align-items: center; | ||
22 | |||
23 | img { | ||
24 | width: 70px; | ||
25 | margin-right: 15px; | ||
26 | } | ||
27 | |||
28 | p:nth-child(1) { | ||
29 | font-size: 18px; | ||
30 | } | ||
31 | |||
32 | } | ||
33 | |||
34 | .zszm { | ||
35 | justify-content: space-between; | ||
36 | |||
37 | li:nth-child(1) {} | ||
38 | } | ||
39 | } | ||
40 | |||
41 | .barChart { | ||
42 | flex: 1; | ||
43 | margin-top: 10px; | ||
44 | height: calc(100vh - 355px); | ||
45 | } | ||
46 | |||
47 | &-center { | ||
48 | width: 39%; | ||
49 | } | ||
50 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
src/views/jgHome/index.vue
0 → 100644
1 | <template> | ||
2 | <div class="jgHome"> | ||
3 | <div class="jgHome-left"> | ||
4 | <el-card> | ||
5 | <div slot="header"> | ||
6 | <span>发证情况</span> | ||
7 | <el-button style="float: right;" type="text">更多</el-button> | ||
8 | </div> | ||
9 | <div class="fzl"> | ||
10 | <img src="../../image/zs.png" alt=""> | ||
11 | <div> | ||
12 | <p>发证量</p> | ||
13 | <p class="fznum">10000<span>本</span></p> | ||
14 | </div> | ||
15 | </div> | ||
16 | <ul class="zszm d-flex-center"> | ||
17 | <li> | ||
18 | <p>证书</p> | ||
19 | <p class="fznum">600<span>本</span></p> | ||
20 | </li> | ||
21 | <li> | ||
22 | <p>证明</p> | ||
23 | <p class="fznum">900<span>本</span></p> | ||
24 | </li> | ||
25 | </ul> | ||
26 | </el-card> | ||
27 | <el-card class="barChart"> | ||
28 | <barChart /> | ||
29 | </el-card> | ||
30 | </div> | ||
31 | <div class="jgHome-center"> | ||
32 | <el-card> | ||
33 | </el-card> | ||
34 | </div> | ||
35 | <div class="jgHome-right"> | ||
36 | <el-card> | ||
37 | </el-card> | ||
38 | </div> | ||
39 | </div> | ||
40 | </template> | ||
41 | |||
42 | <script> | ||
43 | import barChart from './components/barChart' | ||
44 | export default { | ||
45 | name: "jgHome", | ||
46 | components: { barChart }, | ||
47 | data () { | ||
48 | return { | ||
49 | } | ||
50 | }, | ||
51 | methods: {} | ||
52 | } | ||
53 | </script> | ||
54 | <style scoped lang="scss"> | ||
55 | @import "./index.scss"; | ||
56 | </style> |
-
Please register or sign in to post a comment