config.js
1.53 KB
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
import { t } from '@/plugins/index.js'
export function getDetailOptions(isDetail = false) {
const baseList = [
{
label: t('VideoShopTour.monitoringScene'), //'监控场景',
key: 'scene'
},
{
label: t('app.inspection.inspector'),
key: 'inspectedPerson',
},
{
label: t('app.inspection.handlingPerson'),
key: 'handlerName',
},
{
label: t('VideoShopTour.numberIssues'),
key: 'noQualified',
},
{
label: t('maintenance.common.createTime'),
key: 'createTime',
},
]
if (isDetail) {
return baseList
/* return baseList.concat({
label: '备注信息',
key: 'remark',
}) */
} else {
return baseList.concat({
label: t('maintenance.monitor.project.shopName'),
key: 'name',
})
}
}
export function getStatusOptions() {
return [
{
indexName: t('maintenance.monitor.project.indexStatus.all'),
indexKey: '',
},
{
indexName: t('dictionary.pending'),
indexKey: '1',
},
{
indexName: t('dictionary.reexamine'),
indexKey: '2',
},
{
indexName: t('dictionary.completed'),
indexKey: '3',
},
]
}
export function getDetailValueByKey(key, data) {
switch (key){
case 'name':
return data.mallName
case 'scene':
return data.gateName
case 'createTime':
return data.createTime
case 'updateTime':
return data.modifyTime
case 'inspectedPerson':
return data.createByName
case 'noQualified':
return data.noQualified
case 'handlerName':
return data.handlerName || '-'
case 'remark':
return data.remark || '-'
default:
return ''
}
}