651530df
liuqimichale
高位视频
|
1
2
|
<template>
|
1b9bfe12
liuqimichale
按钮颜色
|
3
|
<el-container style="height: 100%;width: 1190px;margin: 0 auto;" >
|
651530df
liuqimichale
高位视频
|
4
5
6
|
<el-header class="header-wrap">
<el-row>
<el-col :span="4">
|
1250868c
liuqimichale
高位视频 定时器
|
7
|
<p>车场:{{ plNo }}</p>
|
651530df
liuqimichale
高位视频
|
8
9
10
|
</el-col>
<el-col :span="4">
|
1250868c
liuqimichale
高位视频 定时器
|
11
|
<p>设备:</p>
|
651530df
liuqimichale
高位视频
|
12
13
14
|
</el-col>
<el-col :span="3">
|
1250868c
liuqimichale
高位视频 定时器
|
15
|
<p>车位:{{ berthNo }}</p>
|
651530df
liuqimichale
高位视频
|
16
17
18
|
</el-col>
<el-col :span="3">
|
1250868c
liuqimichale
高位视频 定时器
|
19
|
<p>待审: {{ count }}</p>
|
651530df
liuqimichale
高位视频
|
20
21
22
|
</el-col>
<el-col :span="4">
|
1250868c
liuqimichale
高位视频 定时器
|
23
|
<p>获取数据: {{ listNum }}</p>
|
651530df
liuqimichale
高位视频
|
24
25
26
27
28
29
30
|
</el-col>
<el-col :span="2">
<p>刷新</p>
</el-col>
<el-col :span="4">
|
1250868c
liuqimichale
高位视频 定时器
|
31
|
<p>未审总数:{{ total }}</p>
|
651530df
liuqimichale
高位视频
|
32
33
34
|
</el-col>
</el-row>
</el-header>
|
1b9bfe12
liuqimichale
按钮颜色
|
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
|
<el-main style="padding: 0;">
<div v-if="list.length>0" style="display: flex">
<ul class="status-wrap" >
<li v-for="(i, index) in list" :key="i.id" >
<div :class="i.examineState | classBorderFilter" >
<el-row>
<el-col style="padding-left: 10px;" :span="9" :class="{active:currentIndex == index}" @click.native="chooseHandle(i,index)">
<p class="status-ifo">
<span>{{ i.parkState | parkStateFilter}}</span>
<span v-if="i.examineState == 0" class="redText">需审核</span>
<span v-else-if="i.examineState == 1" class="blueText">通过</span>
<span v-else class="yellowText">废弃</span>
</p>
<p class="status-ifo">
<span>车牌号码: {{ i.carNumber }}</span>
<span>车牌颜色: {{ i.vplColor | vplColorFilter}}</span>
</p>
<p class="status-ifo">
<span>车辆类型: 轿车</span>
<span>车身颜色: 其他</span>
</p>
<p class="status-ifo">
<span>{{ i.parkTime }}</span>
<span>停车事件: {{ i.parkState}}</span>
</p>
</el-col>
<el-col :span="15" style="overflow-x: auto;width: 550px;">
<div class="imgBox" :style="{width: i.imgList.length*190+'px'}">
<img
v-for="(item,imgindex) in i.imgList"
:key="imgindex"
:src="item"
:preview="index"
/>
</div>
</el-col>
<!--<el-col :span="4" style="text-align: center;line-height: 120px">-->
<!--<el-button type="primary">操作</el-button>-->
<!--</el-col>-->
</el-row>
</div>
</li>
</ul>
<div class="handle-wrap">
<div v-show="handleShow">
<el-input v-model="carnum" maxlength="9">
<template slot="prepend">改车牌</template>
<el-button slot="append" @click.native="updateStatusCar">确定</el-button>
</el-input>
<div>
<el-date-picker style="width:73%;margin-top:15px;"
v-model="time"
default-value="2021-08-01 00:02:02"
type="datetime"
placeholder="选择日期时间">
</el-date-picker><el-button slot="append" @click.native="updateStatusTime">确定</el-button>
</div>
<div>
<el-button type="primary" size="medium" style="width:100%;margin-top:15px;" @click.native="updateStatus(1,'')">通过</el-button>
</div>
<div>
<el-button type="danger" size="medium" style="width:100%;margin-top:15px;" @click.native="updateStatus(2,'')">废弃</el-button>
</div>
<div>
<el-button type="info" size="medium" style="width:100%;margin-top:15px;" @click.native="updateStatus(0,'')">撤销</el-button>
</div>
<div>
<el-button type="primary" size="medium" style="width:100%;margin-top:15px;">补录</el-button>
</div>
<div style="margin-top:15px;">
车辆类型:
<el-radio-group v-model="radio">
<el-radio :label="3">大型车</el-radio>
<el-radio :label="6">中型车</el-radio>
<el-radio :label="9">小型车</el-radio>
</el-radio-group>
</div>
|
1250868c
liuqimichale
高位视频 定时器
|
122
|
</div>
|
1250868c
liuqimichale
高位视频 定时器
|
123
|
|
6d921c99
liuqimichale
高位视频
|
124
|
</div>
|
1b9bfe12
liuqimichale
按钮颜色
|
125
|
</div>
|
6d921c99
liuqimichale
高位视频
|
126
|
|
1b9bfe12
liuqimichale
按钮颜色
|
127
128
129
130
|
<div v-else>
<div style="font-size: 20px;padding-top: 20px;text-align: center">
<span class="el-icon-warning-outline">暂无数据</span>
</div>
|
6d921c99
liuqimichale
高位视频
|
131
132
|
</div>
|
1b9bfe12
liuqimichale
按钮颜色
|
133
|
|
651530df
liuqimichale
高位视频
|
134
135
136
137
138
|
</el-main>
<el-footer class="footer-wrap" style="height: 40px;">
<el-row>
<el-col :span="6">
|
1b9bfe12
liuqimichale
按钮颜色
|
139
|
<p>今日已处理 {{ operCurrentCount }} 条,通过 {{ operPassCount }} 条,废弃 {{ operDiscardCount }} 条</p>
|
651530df
liuqimichale
高位视频
|
140
141
142
|
</el-col>
<el-col :span="15" :offset="3">
|
1b9bfe12
liuqimichale
按钮颜色
|
143
|
<!--<p>操作按钮</p>-->
|
651530df
liuqimichale
高位视频
|
144
145
146
147
148
|
</el-col>
</el-row>
</el-footer>
|
651530df
liuqimichale
高位视频
|
149
150
|
</el-container>
|
1250868c
liuqimichale
高位视频 定时器
|
151
|
|
1250868c
liuqimichale
高位视频 定时器
|
152
|
|
651530df
liuqimichale
高位视频
|
153
154
155
156
|
</template>
<script>
|
1250868c
liuqimichale
高位视频 定时器
|
157
|
import { orderExamine, updateStatus } from '@/api/highVideo'
|
6d921c99
liuqimichale
高位视频
|
158
|
|
651530df
liuqimichale
高位视频
|
159
160
161
162
|
export default {
name: 'highVideo',
data() {
return {
|
1250868c
liuqimichale
高位视频 定时器
|
163
164
165
166
167
168
169
|
plNo:'', // 车场
berthNo: '', // 设备
total: '', // 总数
count:'',
listNum:'',
classBorder:'blueBorder',
currentIndex:0,
|
73c8d18c
liuqimichale
高位视频 orderExamin...
|
170
|
list:[],
|
1250868c
liuqimichale
高位视频 定时器
|
171
|
time: '',
|
1b9bfe12
liuqimichale
按钮颜色
|
172
173
|
radio: 3, // 车辆类型
timer:'', // 定时器
|
1250868c
liuqimichale
高位视频 定时器
|
174
|
handleShow:true,
|
6d921c99
liuqimichale
高位视频
|
175
|
centerDialogVisible: false,
|
1250868c
liuqimichale
高位视频 定时器
|
176
|
carnum: '',
|
1b9bfe12
liuqimichale
按钮颜色
|
177
|
carNumber: '',
|
1250868c
liuqimichale
高位视频 定时器
|
178
|
examineStateVal:'',
|
1b9bfe12
liuqimichale
按钮颜色
|
179
180
181
182
|
attachmentList: [],
operCurrentCount:'', //今日已处理
operPassCount:'', //今日通过
operDiscardCount:'', // 今日作废
|
651530df
liuqimichale
高位视频
|
183
|
}
|
73c8d18c
liuqimichale
高位视频 orderExamin...
|
184
185
186
187
188
189
|
},
created() {
this.orderExamine()
},
methods:{
orderExamine(){
|
1250868c
liuqimichale
高位视频 定时器
|
190
|
let me = this
|
73c8d18c
liuqimichale
高位视频 orderExamin...
|
191
192
193
|
let jsondata = {}
orderExamine(jsondata).then(response => {
console.log(response)
|
1250868c
liuqimichale
高位视频 定时器
|
194
195
196
197
198
199
200
|
if(response.data.dataList.length == 0){
this.timer = setInterval(function () {
console.log('1')
me.orderExamine()
},10000)
return
}
|
1b9bfe12
liuqimichale
按钮颜色
|
201
202
|
window.clearInterval(this.timer)
this.timer = null
|
73c8d18c
liuqimichale
高位视频 orderExamin...
|
203
|
this.list = response.data.dataList
|
1250868c
liuqimichale
高位视频 定时器
|
204
205
206
207
208
209
210
211
|
this.plNo = response.data.plNo
this.berthNo = response.data.berthNo
this.total = response.data.total
this.count = response.data.count
this.listNum = response.data.dataList.length
this.carnum = this.list[this.currentIndex].carNumber
this.time = this.list[this.currentIndex].parkTime
this.examineStateVal = this.list[this.currentIndex].examineState
|
1b9bfe12
liuqimichale
按钮颜色
|
212
213
214
|
this.operCurrentCount = response.data.operCurrentCount //今日已处理
this.operPassCount = response.data.operPassCount //今日通过
this.operDiscardCount = response.data.operDiscardCount // 今日作废
|
1250868c
liuqimichale
高位视频 定时器
|
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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
|
})
},
chooseHandle(i,index){
console.log(i)
this.currentIndex = index
this.carnum = this.list[this.currentIndex].carNumber
this.time = this.list[this.currentIndex].parkTime
this.examineStateVal = this.list[this.currentIndex].examineState
if(this.examineStateVal===1){
this.handleShow = false
}else{
this.handleShow = true
}
},
updateStatus(val,car){
let jsondata = {
plNo:this.plNo,
berthNo:this.berthNo,
id:this.list[this.currentIndex].id,
carNumber:car,
vplColor:this.list[this.currentIndex].vplColor,
examineState:val
}
console.log(jsondata)
updateStatus(jsondata).then(response => {
console.log(response)
this.orderExamine()
})
},
// 修改车牌
updateStatusCar(){
if(this.carnum.length<7){
this.$message({
message: '请输入正确的车牌号',
type: 'warning'
});
return
}
let jsondata = {
plNo:this.plNo,
berthNo:this.berthNo,
id:this.list[this.currentIndex].id,
carNumber:this.carnum,
vplColor:this.list[this.currentIndex].vplColor,
examineState:1
}
console.log(jsondata)
updateStatus(jsondata).then(response => {
console.log(response)
this.orderExamine()
})
},
// 修改时间
updateStatusTime(){
let jsondata = {
plNo:this.plNo,
berthNo:this.berthNo,
id:this.list[this.currentIndex].id,
carNumber:this.carnum,
vplColor:this.list[this.currentIndex].vplColor,
examineState:1,
parkTime:this.time
}
console.log(jsondata)
updateStatus(jsondata).then(response => {
console.log(response)
this.orderExamine()
|
73c8d18c
liuqimichale
高位视频 orderExamin...
|
287
288
289
290
291
292
293
294
295
296
297
298
299
300
|
})
}
},
filters: {
parkStateFilter(val){
if(val===10){
return '在场'
}else if(val===20){
return '离场'
}else{
return '预定'
}
},
examineStateFilter(val){
|
73c8d18c
liuqimichale
高位视频 orderExamin...
|
301
302
303
304
305
306
307
|
if(val===1){
return '通过'
}else if(val===0){
return '需审核'
}else{
return '废弃'
}
|
1250868c
liuqimichale
高位视频 定时器
|
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
|
},
classBorderFilter(val){
if(val===0){
return 'redBorder'
}else if(val===1){
return 'blueBorder'
}else{
return 'yellowBorder'
}
},
vplColorFilter(val){
// 车辆颜色 0:蓝色 1:黄色 2:白色 3:黑色 4:绿色
if(val === '0'){
return '蓝色'
}
if(val === '1'){
return '黄色'
}
if(val === '2'){
return '白色'
}
if(val === '3'){
return '黑色'
}
if(val === '4'){
return '绿色'
}
|
73c8d18c
liuqimichale
高位视频 orderExamin...
|
335
|
}
|
651530df
liuqimichale
高位视频
|
336
337
338
339
340
341
342
343
344
345
346
347
348
|
}
}
</script>
<style scoped lang="scss">
.header-wrap {
line-height: 60px;
background: #409EFF;
font-size: 16px;
color: #fff;
}
|
6d921c99
liuqimichale
高位视频
|
349
350
351
|
.status-wrap {
flex: 1;
}
|
651530df
liuqimichale
高位视频
|
352
|
|
6d921c99
liuqimichale
高位视频
|
353
354
355
|
.handle-wrap {
width: 300px;
padding: 15px;
|
6d921c99
liuqimichale
高位视频
|
356
|
border-right: 1px solid #ddd;
|
651530df
liuqimichale
高位视频
|
357
358
|
}
|
6d921c99
liuqimichale
高位视频
|
359
|
.status-wrap > li {
|
1250868c
liuqimichale
高位视频 定时器
|
360
361
|
height: 140px;
padding: 10px 0;
|
651530df
liuqimichale
高位视频
|
362
363
364
|
border-bottom: 1px solid #ddd;
}
|
6d921c99
liuqimichale
高位视频
|
365
366
|
.status-wrap > li:last-child {
border-bottom: 0;
|
651530df
liuqimichale
高位视频
|
367
368
|
}
|
1250868c
liuqimichale
高位视频 定时器
|
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
|
.active{
background: #67C23A;
}
.blueBorder{
border: 1px solid blue;
}
.redBorder{
border: 1px solid red;
}
.yellowBorder{
border: 1px solid rgba(254,200,77,1);
}
|
6d921c99
liuqimichale
高位视频
|
384
|
.status-ifo {
|
651530df
liuqimichale
高位视频
|
385
386
387
|
display: flex;
margin-top: 10px;
}
|
6d921c99
liuqimichale
高位视频
|
388
389
|
.status-ifo span {
|
651530df
liuqimichale
高位视频
|
390
391
392
|
flex: 1;
}
|
6d921c99
liuqimichale
高位视频
|
393
|
.blueText {
|
651530df
liuqimichale
高位视频
|
394
395
396
|
color: blue;
}
|
6d921c99
liuqimichale
高位视频
|
397
|
.redText {
|
651530df
liuqimichale
高位视频
|
398
399
400
|
color: red;
}
|
1250868c
liuqimichale
高位视频 定时器
|
401
402
403
404
|
.yellowText{
color: rgba(254,200,77,1);
}
|
6d921c99
liuqimichale
高位视频
|
405
|
.imgBox {
|
651530df
liuqimichale
高位视频
|
406
407
|
/*width: 590px;*/
height: 120px;
|
1250868c
liuqimichale
高位视频 定时器
|
408
|
/*padding-top: 10px;*/
|
651530df
liuqimichale
高位视频
|
409
410
|
overflow-y: hidden;
overflow-x: auto;
|
6d921c99
liuqimichale
高位视频
|
411
|
white-space: nowrap
|
651530df
liuqimichale
高位视频
|
412
|
}
|
6d921c99
liuqimichale
高位视频
|
413
414
415
|
.imgBox > img {
display: inline-block;
|
651530df
liuqimichale
高位视频
|
416
|
width: 180px;
|
1250868c
liuqimichale
高位视频 定时器
|
417
|
height: 120px;
|
651530df
liuqimichale
高位视频
|
418
419
420
|
float: left;
margin-right: 10px;
}
|
6d921c99
liuqimichale
高位视频
|
421
422
|
.imgBox > img:last-child {
|
651530df
liuqimichale
高位视频
|
423
424
425
|
margin-right: 0;
}
|
6d921c99
liuqimichale
高位视频
|
426
|
.button button {
|
651530df
liuqimichale
高位视频
|
427
428
429
430
431
|
margin-left: 0;
margin-right: 10px;
margin-bottom: 10px;
}
|
6d921c99
liuqimichale
高位视频
|
432
|
.footer-wrap {
|
651530df
liuqimichale
高位视频
|
433
434
435
436
437
438
|
line-height: 40px;
background: #f5f5f5;
}
</style>
|