1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
| <script setup lang="ts">
| import { ref, reactive } from "vue";
| import { graphic } from "echarts/core";
| import { currentGET } from "@/api";
| const options = reactive ( [
| {
| title: "高速路",
| name: "1",
| num: "195",
| img:new URL('../../assets/img/gaosu.png', import.meta.url).href,},
| {
| title: "国省道",
| name: "1",
| num: "167",
| img:new URL('../../assets/img/gaosu.png', import.meta.url).href,},
| {
| title: "县乡道",
| name: "1",
| num: "188",
| img:new URL('../../assets/img/gaosu.png', import.meta.url).href,},
| {
| title: "农村道路",
| name: "1",
| num: "128",
| img:new URL('../../assets/img/gaosu.png', import.meta.url).href,
| }
| ])
| const optionsT = reactive ( [
| {
| title: "货运车辆",
| name: "1",
| num: "619",
| img:new URL('../../assets/img/hycl.png', import.meta.url).href,},
| {
| title: "公交客运",
| name: "1",
| num: "258",
| img:new URL('../../assets/img/gjky.png', import.meta.url).href,},
| {
| title: "小型骑车",
| name: "1",
| num: "1234",
| img:new URL('../../assets/img/xxqc.png', import.meta.url).href,},
| {
| title: "摩托车",
| name: "1",
| num: "2355",
| img:new URL('../../assets/img/mtc.png', import.meta.url).href,
| }
| ])
| const optionsS = reactive ( [
| {
| title: "货源车辆驾驶人",
| name: "1",
| num: "619",
| img:new URL('../../assets/img/qclc.png', import.meta.url).href,},
| {
| title: "公交客运驾驶人",
| name: "1",
| num: "258",
| img:new URL('../../assets/img/qclc.png', import.meta.url).href,},
| {
| title: "小型汽车驾驶人",
| name: "1",
| num: "1234",
| img:new URL('../../assets/img/qclc.png', import.meta.url).href,},
| {
| title: "摩托车驾驶人",
| name: "1",
| num: "2355",
| img:new URL('../../assets/img/qclc.png', import.meta.url).href,
| }
| ])
| </script>
|
| <template>
| <div class="x-a">
| <div class="roadMileage">
| <p class="roadMileage-title">道路里程数量</p>
| <div style="display:flex;justify-content: space-between">
| <div v-for="(item,index) in options" :key="index" class="roadMileage-item">
| <img :src="item.img" alt="" class="roadMileage-item-img">
| <p class="roadMileage-item-title">{{item.title}}</p>
| <p class="roadMileage-item-num">{{item.num}}</p>
| </div>
| </div>
| </div>
| <div class="roadMileage">
| <p class="roadMileage-title">道路里程数量</p>
| <div style="display:flex;justify-content: space-between">
| <div v-for="(item,index) in optionsT" :key="index" class="roadMileage-item">
| <img :src="item.img" alt="" class="roadMileage-item-img">
| <p class="roadMileage-item-title">{{item.title}}</p>
| <p class="roadMileage-item-num">{{item.num}}</p>
| </div>
| </div>
| </div>
| <div class="roadMileage">
| <p class="roadMileage-title">道路里程数量</p>
| <div style="display:flex;justify-content: space-between">
| <div v-for="(item,index) in optionsS" :key="index" class="roadMileage-item">
| <img :src="item.img" alt="" class="roadMileage-item-img">
| <p class="roadMileage-item-title">{{item.title}}</p>
| <p class="roadMileage-item-num">{{item.num}}</p>
| </div>
| </div>
| </div>
|
| </div>
| </template>
|
| <style scoped lang="scss">
| .x-a{
| background-color: #111E3C;
| border: 1px solid #29466A;
| padding: 10px 10px 20px;
| }
| .roadMileage{
| //display: flex;
| .roadMileage-title{
| margin: 10px 0;
| font-family: PingFang SC;
| font-weight: 600;
| color: #447ED6;
| line-height: 22px;
|
| }
| .roadMileage-item{
| padding: 15px 0;
| background: linear-gradient(0deg, rgba(13,29,50,0.55), rgba(34,82,154,0.55));
| //border: 1px solid #29466A;
| //opacity: 0.6;
| //background: #11223A;
| .roadMileage-item-img{
| width: 130px;
| }
| .roadMileage-item-title{
| text-align: center;
| font-family: PingFang SC;
| color: #44DBDD;
| }
| .roadMileage-item-num{
| text-align: center;
| font-weight: 800;
| font-family: PingFang SC;
| color: #FAE67D;
| }
| }
| }
| </style>
|
|