footerRight.vue
1.96 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
<template>
<div class="dv-content-body-bottom-list-right">
<dv-border-box-12 :dur="35">
<div style="width: 100; height: 13%">
<span class="div-span-title"> {{ $gl('alarm information') }}</span>
</div>
<div style="width: 100%; height: 88%">
<dv-scroll-board :config="getList" style="width: 97%; margin-left: 0.4vw" />
</div>
</dv-border-box-12>
</div>
</template>
<script>
export default {
data() {
return {
getList: {
header: ['设备', '故障信息', '时间'],
data: [
// ['1号堆垛机', '行走轴激光故障', '2025-11-10', '激光下料'],
// ['成品仓', '148', '底折弯板', '下料切割'],
// ['成品仓', '305', '支撑架2', '叶片焊接'],
// ['成品仓', '278', '底折弯板', '下料切割'],
// ['成品仓', '409', '底折弯板', '下料切割'],
// ['成品仓', '306', '支撑架2', '叶片焊接'],
],
align: ['left'],
headerBGC: '#201e1e', //表头
oddRowBGC: '#021c66',
evenRowBGC: '#65,105,225',
rowNum: 5,
columnWidth: [100, 230, 130],
headerHeight: 25,
carousel: 'page',
waitTime: 8000,
},
sysData: {},
}
},
methods: {
bingDataSource(data) {
let tempList = []
data.forEach((item) => {
let timeData = item.dateTime.split(' ')[0]
tempList.push([item.equipment, item.alarmMsg, timeData])
})
let tableData = {
header: ['设备', '故障信息', '时间'],
data: tempList,
align: ['left'],
headerBGC: '#201e1e', //表头
oddRowBGC: '#021c66',
evenRowBGC: '#65,105,225',
rowNum: 5,
columnWidth: [100, 270, 90],
headerHeight: 25,
carousel: 'page',
waitTime: 8000,
}
this.getList = tableData
},
},
}
</script>
<style lang="less" scoped>
.dv-content-body-bottom-list-right {
width: 49.7vw;
height: 95%;
//background-color: #63a9ad;
}
.dv-scroll-board .header .header-item {
font-size: 1vw !important;
}
.dv-scroll-board .rows div.ceil {
font-size: 0.8vw !important;
}
</style>