EquipmentTimeErrorVerification.vue
2.09 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
<template>
<a-table :dataSource="dataList" v-loading="isLoading" :columns="[
{
title: '集团名称',
dataIndex: 'accountname',
align:'center',
slots: {
customRender: 'accountname',
},
},
{
title: '商场名称',
dataIndex: 'mallname',
align:'center',
},
{
title: '监控点名称',
dataIndex: 'gatename',
align:'center',
},
{
title: '设备号',
dataIndex: 'serialnum',
align:'center',
},
{
title: 'IP',
dataIndex: 'local_ip',
align:'center',
},
{
title: 'mac地址',
dataIndex: 'mac',
align:'center',
},
{
title: '发送的错误的数据日期',
dataIndex: 'errordate',
align:'center',
},
{
title: '发送条数',
dataIndex: 'rowcount',
align:'center',
},
{
title: '统计日期',
dataIndex: 'countdate',
align:'center',
}
]" :pagination="false">
</a-table>
</template>
<script>
import {defineComponent, ref} from 'vue'
import equipmentTimeErrorVerificationApi from '@/views/EquipmentTimeErrorVerification/EquipmentTimeErrorVerificationApi'
export default defineComponent({
setup() {
const dataList = ref([])
const isLoading = ref(false)
const __main = function() {
isLoading.value = true
equipmentTimeErrorVerificationApi.getList().then(
(r) => {
isLoading.value = false
dataList.value = r.data
}
)
}
__main()
return {
isLoading,
dataList,
}
},
})
</script>