|
@@ -0,0 +1,224 @@
|
|
1
|
+<template>
|
|
2
|
+ <el-container>
|
|
3
|
+ <el-header v-if="isSearch">
|
|
4
|
+ <el-form style="margin: 10px 0" :inline="true">
|
|
5
|
+ <el-form-item label="排查状态:">
|
|
6
|
+ <el-select v-model="search.checkType" clearable>
|
|
7
|
+ <el-option
|
|
8
|
+ :label="item.label"
|
|
9
|
+ :value="item.value"
|
|
10
|
+ v-for="item in checkCycleOptions"
|
|
11
|
+ :key="item.value"
|
|
12
|
+ />
|
|
13
|
+ </el-select>
|
|
14
|
+ </el-form-item>
|
|
15
|
+
|
|
16
|
+ <el-form-item label="时间:">
|
|
17
|
+ <el-date-picker
|
|
18
|
+ clearable
|
|
19
|
+ v-model="search.time"
|
|
20
|
+ type="datetimerange"
|
|
21
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
22
|
+ range-separator="至"
|
|
23
|
+ start-placeholder="开始时间"
|
|
24
|
+ end-placeholder="结束时间"
|
|
25
|
+ >
|
|
26
|
+ </el-date-picker>
|
|
27
|
+ </el-form-item>
|
|
28
|
+ <el-form-item>
|
|
29
|
+ <el-button
|
|
30
|
+ style="margin-left: 10px"
|
|
31
|
+ type="primary"
|
|
32
|
+ icon="el-icon-search"
|
|
33
|
+ @click="initList"
|
|
34
|
+ >
|
|
35
|
+ 搜索
|
|
36
|
+ </el-button>
|
|
37
|
+ <el-button class="commonBtn" icon="el-icon-refresh" @click="reset">
|
|
38
|
+ 重置
|
|
39
|
+ </el-button>
|
|
40
|
+ </el-form-item>
|
|
41
|
+ </el-form>
|
|
42
|
+ </el-header>
|
|
43
|
+ <el-main>
|
|
44
|
+ <div class="headerTop">
|
|
45
|
+ <div>
|
|
46
|
+ <!-- <el-button type="primary" class="el-icon-plus" @click="doAdd(1)">
|
|
47
|
+ 新增</el-button
|
|
48
|
+ > -->
|
|
49
|
+ </div>
|
|
50
|
+ <div>
|
|
51
|
+ <right-toolbar
|
|
52
|
+ @queryTable="initList"
|
|
53
|
+ :search="true"
|
|
54
|
+ @update:showSearch="isSearch = !isSearch"
|
|
55
|
+ ></right-toolbar>
|
|
56
|
+ </div>
|
|
57
|
+ </div>
|
|
58
|
+
|
|
59
|
+ <el-table
|
|
60
|
+ height="calc(100% - 200px)"
|
|
61
|
+ :data="list"
|
|
62
|
+ :row-style="{ height: '0px' }"
|
|
63
|
+ :header-cell-style="{ 'text-align': 'center', padding: '0px' }"
|
|
64
|
+ :cell-style="{ 'text-align': 'center', padding: '2px' }"
|
|
65
|
+ style="width: 100%"
|
|
66
|
+ >
|
|
67
|
+ <el-table-column label="序号" align="center" width="50">
|
|
68
|
+ <template slot-scope="scope">
|
|
69
|
+ <span> {{ (pageNum - 1) * pageSize + (scope.$index + 1) }}</span>
|
|
70
|
+ </template>
|
|
71
|
+ </el-table-column>
|
|
72
|
+ <el-table-column
|
|
73
|
+ label="隐患排查要求名称"
|
|
74
|
+ align="center"
|
|
75
|
+ show-overflow-tooltip
|
|
76
|
+ >
|
|
77
|
+ <template slot-scope="scope">
|
|
78
|
+ <span>{{ scope.row.troubleshootContentTask || '-' }}</span>
|
|
79
|
+ </template>
|
|
80
|
+ </el-table-column>
|
|
81
|
+ <el-table-column
|
|
82
|
+ label="区域名称"
|
|
83
|
+ align="center"
|
|
84
|
+ show-overflow-tooltip
|
|
85
|
+ >
|
|
86
|
+ <template slot-scope="scope">
|
|
87
|
+ <span>{{ scope.row.areaName || '-' }}</span>
|
|
88
|
+ </template>
|
|
89
|
+ </el-table-column>
|
|
90
|
+ <el-table-column
|
|
91
|
+ label="分析单元名称"
|
|
92
|
+ align="center"
|
|
93
|
+ show-overflow-tooltip
|
|
94
|
+ >
|
|
95
|
+ <template slot-scope="scope">
|
|
96
|
+ <span>{{ scope.row.riskUnitName || '-' }}</span>
|
|
97
|
+ </template>
|
|
98
|
+ </el-table-column>
|
|
99
|
+
|
|
100
|
+ <el-table-column
|
|
101
|
+ label="管控措施名称"
|
|
102
|
+ align="center"
|
|
103
|
+ show-overflow-tooltip
|
|
104
|
+ >
|
|
105
|
+ <template slot-scope="scope">
|
|
106
|
+ <span>{{ scope.row.riskMeasureDesc }}</span>
|
|
107
|
+ </template>
|
|
108
|
+ </el-table-column>
|
|
109
|
+ <el-table-column
|
|
110
|
+ label="开始时间"
|
|
111
|
+ align="center"
|
|
112
|
+ show-overflow-tooltip
|
|
113
|
+ >
|
|
114
|
+ <template slot-scope="scope">
|
|
115
|
+ <span>{{ scope.row.startDate || '-' }}</span>
|
|
116
|
+ </template>
|
|
117
|
+ </el-table-column>
|
|
118
|
+ <el-table-column
|
|
119
|
+ label="结束时间"
|
|
120
|
+ align="center"
|
|
121
|
+ show-overflow-tooltip
|
|
122
|
+ >
|
|
123
|
+ <template slot-scope="scope">
|
|
124
|
+ <span>{{ scope.row.endDate || '-' }}</span>
|
|
125
|
+ </template>
|
|
126
|
+ </el-table-column>
|
|
127
|
+ <el-table-column label="排查状态" align="center" show-overflow-tooltip>
|
|
128
|
+ <template slot-scope="scope">
|
|
129
|
+ <span>{{ !scope.row.status ? '未排查' : scope.row.status === 1 ? '已排查' : '漏检'}}</span>
|
|
130
|
+ </template>
|
|
131
|
+ </el-table-column>
|
|
132
|
+ <el-table-column label="巡检用户姓名" align="center" show-overflow-tooltip>
|
|
133
|
+ <template slot-scope="scope">
|
|
134
|
+ <span>{{ scope.row.checkUserNickName || '-' }}</span>
|
|
135
|
+ </template>
|
|
136
|
+ </el-table-column>
|
|
137
|
+ <el-table-column label="巡检时间" align="center" show-overflow-tooltip>
|
|
138
|
+ <template slot-scope="scope">
|
|
139
|
+ <span>{{ scope.row.checkTime || '-' }}</span>
|
|
140
|
+ </template>
|
|
141
|
+ </el-table-column>
|
|
142
|
+ <!-- <el-table-column label="操作" fixed="right" align="center" width="120">
|
|
143
|
+ <template slot-scope="scope">
|
|
144
|
+ <el-button type="text" size="mini" @click="doAdd(2, scope.row)">
|
|
145
|
+ 编辑
|
|
146
|
+ </el-button>
|
|
147
|
+ <el-button type="text" size="mini" @click="doDelete(scope.row)">
|
|
148
|
+ 删除
|
|
149
|
+ </el-button>
|
|
150
|
+ </template>
|
|
151
|
+ </el-table-column> -->
|
|
152
|
+ </el-table>
|
|
153
|
+ <pagination
|
|
154
|
+ v-show="total > 0"
|
|
155
|
+ :page.sync="pageNum"
|
|
156
|
+ :limit.sync="pageSize"
|
|
157
|
+ :page-sizes="[10, 20, 30, 50]"
|
|
158
|
+ :total="total"
|
|
159
|
+ @pagination="initList"
|
|
160
|
+ />
|
|
161
|
+ </el-main>
|
|
162
|
+
|
|
163
|
+ </el-container>
|
|
164
|
+</template>
|
|
165
|
+<script>
|
|
166
|
+import {
|
|
167
|
+ getList
|
|
168
|
+} from "@/api/risk/analyse.js";
|
|
169
|
+export default {
|
|
170
|
+ name: "RuoyiAnalyse",
|
|
171
|
+
|
|
172
|
+ data() {
|
|
173
|
+ return {
|
|
174
|
+ isSearch: false,
|
|
175
|
+ search: {
|
|
176
|
+ checkType: "",
|
|
177
|
+ time: "",
|
|
178
|
+ },
|
|
179
|
+ // 巡查类型的下拉
|
|
180
|
+ checkCycleOptions: [
|
|
181
|
+ { label: "未排查", value: '0' },
|
|
182
|
+ { label: "已排查", value: '1' },
|
|
183
|
+ { label: "漏检", value: '2' },
|
|
184
|
+ ],
|
|
185
|
+
|
|
186
|
+ pageNum: 1,
|
|
187
|
+ pageSize: 10,
|
|
188
|
+ total: 0,
|
|
189
|
+ list: [],
|
|
190
|
+ };
|
|
191
|
+ },
|
|
192
|
+
|
|
193
|
+ mounted() {
|
|
194
|
+ this.initList();
|
|
195
|
+ },
|
|
196
|
+
|
|
197
|
+ methods: {
|
|
198
|
+ async initList() {
|
|
199
|
+ console.log(this.search.checkType)
|
|
200
|
+ const res = await getList({
|
|
201
|
+ status:this.search.checkType || '',
|
|
202
|
+ startDate: this.search.time[0] || null,
|
|
203
|
+ endDate: this.search.time[1] || null,
|
|
204
|
+ pageNum: this.pageNum,
|
|
205
|
+ pageSize: this.pageSize,
|
|
206
|
+ });
|
|
207
|
+ console.log(res)
|
|
208
|
+ this.list = res.rows;
|
|
209
|
+ this.total = res.total;
|
|
210
|
+ },
|
|
211
|
+ // 重置
|
|
212
|
+ reset() {
|
|
213
|
+ this.search = {
|
|
214
|
+ checkType: "",
|
|
215
|
+ time: "",
|
|
216
|
+ };
|
|
217
|
+ this.pageNum = 1;
|
|
218
|
+ this.initList();
|
|
219
|
+ },
|
|
220
|
+ },
|
|
221
|
+};
|
|
222
|
+</script>
|
|
223
|
+
|
|
224
|
+<style lang="scss" scoped></style>
|