2023西安数博会CIM演示-【前端】-Web
AdaKing88
2023-08-21 bc03b832caa49bbcd2674fe4cae3701b5059bf95
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
<template>
  <div class="table2">
    <div class="header">
      <span class="title1">城市应急事件跟踪</span>
    </div>
 
    <el-table :data="tableData" size="mini" style="width: 90%;background: #182a45;margin-top: 16px;" :height="'160px'">
      <el-table-column prop="name" header-align="center" align="center" label="事件名称">
        <template slot-scope="scope">
          <span style="color:red;padding-top: 9px ;padding-bottom: 9px">
            {{ scope.row.name }}
          </span>
        </template>
      </el-table-column>
      <el-table-column prop="type" header-align="center" align="center" label="事件类型">
      </el-table-column>
      <el-table-column prop="level" header-align="center" align="center" label="事件等级">
      </el-table-column>
      <el-table-column header-align="center" align="center" label="处置状态">
        <template slot-scope="scope">
          <span class="progress" :class="getStyle(scope.row.progress)">
            {{ scope.row.progress }}
          </span>
        </template>
      </el-table-column>
    </el-table>
    <div style="width: 100%;height: 36px ;margin: 6px 0px; text-align: center">
      <el-pagination :total="30" layout="total, prev, pager, next, jumper" :page-sizes="[5]">
      </el-pagination>
    </div>
  </div>
</template>
 
<script>
 
export default {
  name: "table2",
  components: {
 
  },
  data() {
    return {
      tableTreeDdataTotal: 0,
      tableData: [
        {
          name: 'xx街内涝',
          type: '自然灾害',
          level: '一般突发',
          progress: '处置中'
        },
        {
          name: 'xx街撞车',
          type: '事故灾难',
          level: '一般突发',
          progress: '未处置'
        },
        {
          name: 'xx街内涝',
          type: '自然灾害',
          level: '一般突发',
          progress: '已完结'
        },
        {
          name: 'xx街撞车',
          type: '交通事故',
          level: '一般突发',
          progress: '处置中'
        },
 
        {
          name: 'xx街撞车',
          type: '交通事故',
          level: '一般突发',
          progress: '处置中'
        },
        {
          name: 'xx街撞车',
          type: '交通事故',
          level: '一般突发',
          progress: '处置中'
        },
      ]
    }
  },
  methods: {
    getStyle(type) {
      switch (type) {
        case '处置中':
          return 'progress1'
          break;
        case '未处置':
          return 'progress2'
          break;
        case '已完结':
          return 'progress3'
          break;
        default:
          return 'progress1'
          break;
      }
    }
  },
 
 
}
</script>
 
<style scoped lang="less">
.table2 {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: all;
 
  .header {
    width: 304px;
    height: 27.5px;
    margin-left: 20px;
    margin-top: 20px;
    background-image: url("~@/assets/img/menuTitle1.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    font-family: PangMenZhengDao;
    text-shadow: 0px 6px 9px #20618e;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    align-self: flex-start;
 
    .title1 {
      margin-left: 30px;
      font-size: 15px;
      color: #ffffff;
    }
 
  }
 
  .progress {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 16px;
    border-radius: 6.5px;
    color: #fff;
  }
 
  .progress1 {
    background: rgba(10, 174, 244, 0.30);
    border: 0.5px solid #9fd0ff;
  }
 
  .progress2 {
    background: rgba(255, 255, 255, 0.3);
    border: 0.5px solid #fff;
  }
 
  .progress3 {
    background: rgba(0, 255, 242, 0.30);
    border: 0.5px solid #00fff2;
  }
}
 
 
.el-table /deep/ tr {
  background-color: transparent;
  color: #dedfe1;
}
 
.el-table /deep/ tr th {
  background-color: rgba(240, 250, 254, 0.1);
  color: rgba(240, 250, 254, 0.85);
}
 
.el-table /deep/ tr:hover>td {
  background-color: rgba(0, 166, 226, 0.4) !important;
}
 
.el-pagination /deep/ .btn-prev,
.el-pagination /deep/ .btn-next,
.el-pagination /deep/ .el-input__inner,
.el-pagination /deep/ .el-pager li {
  background-color: rgba(0, 166, 226, 0.02);
  border-radius: 2px 2px 2px 2px;
  border: 1px solid rgba(240, 250, 254, 0.3);
  color: #dedfe1 !important;
}
 
.el-pagination /deep/ .el-pagination__jump {
  color: #dedfe1;
}
 
/deep/.el-pagination__total {
  color: #dedfe1;
}
 
/deep/ .el-input__inner {
  background-color: transparent;
  background-image: none;
  border-radius: 0px;
  border: 1px solid #5c6d96;
  color: #ffffff;
}
 
/deep/.el-input-group__append {
  background: transparent;
  border: 1px solid #5c6d96;
  color: #ffffff;
}
 
/deep/.el-table--mini .el-table__cell {
  padding: 0px 0;
}
 
/deep/.el-table th.el-table__cell>.cell {
  padding: 6px 10px;
}
 
/deep/.el-table .cell {
  color: #aec2de;
}
 
/deep/.el-table tr {
  height: 33px;
}
</style>