“dzb”
2022-09-22 ab36c0c3dbaa95fa3f94268cfc8b8bb7aae22b80
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
265
266
267
<template>
    <div class="casepool">
        <!-- 查询添加 -->
        <header>
            <div class="search">
                <span>来源查询:</span>
                <el-input placeholder="请输入问题来源"></el-input>
            </div>
            <div class="add">
                <el-button type="primary" icon="el-icon-plus" @click="handleOpenDialog">添加</el-button>
            </div>
        </header>
        <!-- 主体展示 -->
        <main>
            <div class="mainContent">
                <!-- 导航状态标签 -->
                <div class="nav">
                    <el-tabs type="border-card">
                        <el-tab-pane :label="item.name" v-for="item in tagList" :key="item.name">
                            <!-- 数据渲染 -->
                            <el-table ref="multipleTable"
                                :header-cell-style="{background:'#06122c','font-size':'12px',color:'#4b9bb7','font-weight':'650','line-height':'45px'}"
                                :data="tableData" style="width: 100%" :row-class-name="tableRowClassName">
                                <el-table-column type="selection" min-width="5">
                                </el-table-column>
                                <el-table-column label="事件编号" min-width="6">
                                    <template slot-scope="scope">{{ scope.row.id }}</template>
                                </el-table-column>
                                <el-table-column prop="source" label="问题来源" min-width="10">
                                </el-table-column>
                                <el-table-column prop="bigKind" label="大类名称" min-width="6">
                                </el-table-column>
                                <el-table-column prop="samllKind" label="小类名称" min-width="6">
                                </el-table-column>
                                <el-table-column prop="reson" label="案由" min-width="10">
                                </el-table-column>
                                <el-table-column prop="location" label="报警点位" min-width="10">
                                </el-table-column>
                                <el-table-column prop="area" label="所属区域" min-width="10">
                                </el-table-column>
                                <el-table-column prop="appendTime" label="报警时间" min-width="10">
                                </el-table-column>
                                <el-table-column prop="duration" label="持续时间" min-width="6">
                                </el-table-column>
                                <el-table-column prop="operation" label="操作" min-width="15">
                                    <template slot-scope="scope">
                                        <div class="operation">
                                            <span @click="handleFind(scope.row)">上报</span>
                                            <span class="line">|</span>
                                            <span @click="handleUpdate(scope.row)">调度</span>
                                            <span class="line">|</span>
                                            <span>再学习</span>
                                            <span class="line">|</span>
                                            <span>暂不处理</span>
                                        </div>
                                    </template>
                                </el-table-column>
                            </el-table>
                        </el-tab-pane>
                    </el-tabs>
                </div>
            </div>
        </main>
        <!-- 组件区 -->
        <footer>
            <el-dialog v-if="visible" :visible.async="visible" title="问题登记" width="60%" :before-close="handleClose">
                <checkIn></checkIn>
            </el-dialog>
        </footer>
    </div>
</template>
<script>
import checkIn from './compenents/checkIn';
export default {
    components: {
        checkIn,
    },
    data() {
        return {
            tagList: [
                {
                    name: '待处理',
                    value: 0,
                },
                {
                    name: '已上报',
                    value: 0,
                },
                {
                    name: '已调度',
                    value: 0,
                },
                {
                    name: '在学习',
                    value: 0,
                },
                {
                    name: '暂不处理',
                    value: 0,
                },
                {
                    name: '违规',
                    value: 0,
                },
                {
                    name: '违建',
                    value: 0,
                },
            ],
            tableData: [
                {
                    id: 13413114,
                    source: '人工上报/视频巡查',
                    appendTime: '2022-01-09 14:52'
                }
            ],
            visible: false,
        }
    },
    methods: {
        // 设置表格斑马纹
        tableRowClassName({ row, rowIndex }) {
            if ((rowIndex + 1) % 2 == 0) {
                return 'warning-row';
            } else {
                return 'success-row';
            }
            return '';
        },
        // 打开添加页
        handleOpenDialog() {
            this.visible = true;
        },
        // 关闭对话框
        handleClose(done) {
        this.$confirm('确认关闭?')
          .then(_ => {
            this.visible = false;
            done();
          })
          .catch(_ => {});
      }
    }
}
</script>
<style lang="scss" scoped>
.casepool {
    text-align: left;
    color: #4b9bb7;
 
    header {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
        line-height: 60px;
 
        .search {
            display: flex;
 
            span {
                flex: 2;
            }
 
            .el-input {
                flex: 5;
 
                &::v-deep .el-input__inner {
                    background-color: #09152f;
                    border: 1px solid #17324c;
                }
            }
        }
 
        .add {
            .el-button {
                background-color: #eb5d01;
                border: none;
                border-radius: 20px;
            }
        }
    }
 
    main {
        .mainContent {
            .nav {
                &::v-deep .el-tabs--border-card {
                    border: none;
                }
 
                &::v-deep .el-tabs--border-card>.el-tabs__content {
                    background-color: #09152f;
                }
 
                &::v-deep .el-tabs__nav-scroll {
                    background-color: #09152f;
                }
 
                &::v-deep .el-tabs__header {
                    line-height: 60px;
                }
 
                &::v-deep .el-tabs--border-card>.el-tabs__header .el-tabs__item {
                    color: #fff;
                }
 
                &::v-deep .el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active {
                    color: #4b9bb7;
                    background-color: #071f39;
                    border: none;
                }
 
                .el-table {
                    font-size: 12px;
                    color: #4b9bb7;
 
                    .line {
                        padding: 0 5px;
                    }
                }
 
                &::v-deep .el-table__empty-block {
                    background-color: #09152f;
                    color: #4b9bb7;
                }
 
                .el-table::v-deep .warning-row {
                    background: #06122c;
                }
 
                .el-table::v-deep .success-row {
                    background: #071f39;
                }
            }
        }
    }
 
    footer {
 
        &::v-deep .el-dialog__header,
        &::v-deep .el-dialog__body {
            background-color: #06122c;
        }
 
        &::v-deep .el-dialog__header {
            display: flex;
            align-items: center;
            background-color: #fff;
            padding: 20px;
            line-height: 60px;
        }
 
        &::v-deep .el-dialog__title {
            color: #4b9bb7;
        }
 
        &::v-deep .el-dialog__close {
            width: 20px;
            height: 20px;
            // color: #fff;
        }
 
        &::v-deep .el-dialog__body {
            padding: 0;
        }
    }
}
</style>