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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
| <template>
| <div class="debuff-table">
| <div class="table-header">
| <div class="title">统计分析明细</div>
| <div class="close-btn" @click="closeTable">×</div>
| </div>
| <div class="desc">
| <div class="desc-item">
| <div class="desc-name">群测群防员</div>
| <div class="desc-value">孙桂祥,秦桂义,许宗坡,秦建林,刘显宝,彭海燕</div>
| </div>
| <div class="desc-item">
| <div class="desc-name">主管土地科长</div>
| <div class="desc-value">张建纯,张文杰</div>
| </div>
| <div class="desc-item">
| <div class="desc-name">主管镇长</div>
| <div class="desc-value">孙福清,刘佳斌</div>
| </div>
| <div class="desc-item">
| <div class="desc-name">联系电话</div>
| <div class="desc-value">13381323419,13716239449</div>
| </div>
| <div class="desc-item">
| <div class="desc-name">联系电话</div>
| <div class="desc-value">13910003617,13716556801</div>
| </div>
| <div class="desc-item">
| <div class="desc-name">联系电话</div>
| <div class="desc-value">13910003617,13716556801</div>
| </div>
| </div>
| <el-table :data="tableData" stripe style="width: 800px;">
| <el-table-column prop="region" label="影响区域">
| <template #default="scope">
| <div>{{ scope.row.name }}</div>
| </template>
| </el-table-column>
|
| <el-table-column prop="affectedPeople" label="受灾人员"></el-table-column>
| <el-table-column prop="injuredPeople" label="人员"></el-table-column>
| <el-table-column prop="damagedHouses" label="房屋"></el-table-column>
| <el-table-column prop="economicLoss" label="财产(万元)"></el-table-column>
| <!-- <el-table-column prop="damagedInfrastructure" label="受损基础设施数量"></el-table-column> -->
| <el-table-column prop="maxDepth" label="最大水深(米)"></el-table-column>
| <el-table-column prop="averageDepth" label="平均水深(米)"></el-table-column>
| <el-table-column prop="maxFlow" label="最大流速(m/s)"></el-table-column>
| </el-table>
| </div>
| </template>
|
| <script>
| export default {
| name: "Table",
| components: {},
| data() {
| return {
| tableData: [
| {
| region: "尹家西沟",
| name: '影响区1',
| affectedPeople: 200,
| damagedHouses: 50,
| economicLoss: 100,
| injuredPeople: 20,
| damagedInfrastructure: 10,
| maxDepth: 0.11,
| averageDepth: 0.11,
| maxFlow: 0.01,
| },
| {
| region: "河西",
| name: '影响区2',
| affectedPeople: 150,
| damagedHouses: 30,
| economicLoss: 80,
| injuredPeople: 15,
| damagedInfrastructure: 8,
| maxDepth: 0.17,
| averageDepth: 0.16,
| maxFlow: 1.28,
| },
| {
| region: "南梁小东沟",
| name: '影响区3',
| affectedPeople: 300,
| damagedHouses: 80,
| economicLoss: 200,
| injuredPeople: 35,
| damagedInfrastructure: 15,
| maxDepth: 0.17,
| averageDepth: 0.14,
| maxFlow: 1.26,
| },
| {
| region: "大窑沟",
| name: '影响区4',
| affectedPeople: 250,
| damagedHouses: 60,
| economicLoss: 120,
| injuredPeople: 25,
| damagedInfrastructure: 12,
| maxDepth: 0.17,
| averageDepth: 0.12,
| maxFlow: 1.21,
| },
| {
| region: "大东沟",
| name: '影响区5',
| affectedPeople: 180,
| damagedHouses: 40,
| economicLoss: 90,
| injuredPeople: 18,
| damagedInfrastructure: 9,
| maxDepth: 0.15,
| averageDepth: 0.12,
| maxFlow: 0.8,
| },
| {
| region: "尹家西沟",
| name: '影响区6',
| affectedPeople: 320,
| damagedHouses: 90,
| economicLoss: 220,
| injuredPeople: 40,
| damagedInfrastructure: 18,
| maxDepth: 0.15,
| averageDepth: 0.15,
| maxFlow: 0.8,
| },
| ],
| }
| },
| created() {
| this.tableData.forEach((item, index) => {
| item.region = cityData.listData[index]
| })
| },
| methods: {
| closeTable() {
| this.$emit("close")
| // this.$parent.tableShow = false
| },
| handleRowClick(row, event, column) {
| // this.$parent.messageShow = true
| },
| },
| }
| </script>
| <style lang="less">
| .debuff-table {
| position: absolute;
| top: 50%;
| left: 50%;
| transform: translate(-50%, -50%);
| z-index: 99;
| background-color: rgb(8, 75, 66, 0.8);
| width: 800px;
| }
|
| .table-header {
| display: flex;
| justify-content: space-between;
| padding: 10px;
| // position: absolute;
| // top: -15px;
| // right: -15px;
| // z-index: 1000;
| // opacity: 0.8;
| .title {
| font-size: 22px;
| font-weight: 700;
| color: #fff;
| cursor: pointer;
| }
| }
|
| .close-btn {
| cursor: pointer;
| font-size: 20px;
| color: white;
| text-align: center;
| font-size: 26px;
| width: 30px;
| height: 30px;
| border-radius: 50%;
| background-color: #41ae94 !important;
| }
| .desc {
| display: flex;
| flex-wrap: wrap;
| padding: 10px;
| color: #fff;
| font-size: 14px;
| .desc-item {
| width: calc(100% / 3);
| margin-bottom: 5px;
| .desc-name {
| font-weight: bold;
| }
| }
| }
|
| /* 设置表格容器背景色和透明度 */
| .el-table {
| background-color: transparent !important;
| color: #fff !important;
| }
| // color: rgba(10, 70, 63, 0.8);
|
| /* 修改表格行背景色 */
| .el-table__body-wrapper tr {
| background-color: transparent !important;
| border-bottom-color: #85ffe3 !important;
| }
|
| .el-table tr {
| background-color: transparent !important;
| }
|
| .el-table th.el-table__cell {
| background-color: transparent !important;
| color: #fff;
| }
|
| .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
| background-color: transparent !important;
| }
|
| /* 修改表格表头行背景色 */
| .el-table__header-wrapper tr {
| background-color: transparent !important;
| border-bottom-color: #85ffe3 !important;
| }
|
| /* 修改表格边框颜色 */
| .el-table__header-wrapper th,
| .el-table__body-wrapper td {
| border-color: #85ffe3 !important;
| }
|
| /* 修改表格单元格分割线颜色 */
| .el-table__body-wrapper tr td:not(:last-child),
| .el-table__header-wrapper tr th:not(:last-child) {
| border-right-color: #85ffe3 !important;
| }
|
| .el-table tr:hover {
| background-color: transparent !important;
| }
|
| /* 修改鼠标悬停时表格行的背景色 */
| .el-table__body-wrapper tr:hover {
| background-color: rgba(15, 100, 90, 0.8) !important;
| }
|
| .el-table__cell:hover .el-table tr {
| background-color: rgba(15, 100, 90, 0.8) !important;
| }
|
| .el-table {
| --el-table-row-hover-bg-color: rgba(15, 100, 90, 0.8) !important;
| }
| </style>
|
|