footerRight.vue
2.55 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
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
<template>
<div class="dv-content-body-bottom-list-right">
<div class="div-span-title">仓库库位使用状况(使用率>90%提醒)</div>
<div class="dv-content-body-bottom-list-right-table">
<dv-scroll-board :config="tableData" style="width: 100%;" />
</div>
</div>
</template>
<script>
export default {
data() {
return {
getList: null,
sysData: {},
baseUrlOff: 'http://127.0.0.1:6001/api/BulletinBoard/Mes/V1/ReadData2',
baseUrlOnLine: window.appConfig.baseUrlint,
tableData: {
header: ['名称', '总库库位', '已用/未用', '使用率%'],
headerBGC: '#16407a', //表头
oddRowBGC: '#021c66',
evenRowBGC: '#0b2038',
data: [],
align: ['center', 'center', 'center', 'center', 'center', 'center', 'center'],
columnWidth: [90, 100, 110, 100, 100, 100],
headerHeight: 20,
rowNum: 4,
},
agvDataList: [],
}
},
methods: {
bingDataSource(data) {
let tempList = []
data.forEach((item) => {
const aa = ` <span style="text-decoration: underline;color:hsl(201, 86%, 50%)">${item.equipmentName}</span>`
const da = `${item.usedAlready}/${item.notUsed}`
tempList.push([aa, item.totalWarehouseLocation, da, item.usageRate])
})
this.tableData = {
header: ['名称', '总库库位', '已用/未用', '使用率%'],
headerBGC: '#16407a', //表头
oddRowBGC: '#021c66',
evenRowBGC: '#0b2038',
data: tempList,
waitTime: 5000,
carousel: 'page',
align: ['center', 'center', 'center', 'center', 'center', 'center', 'center'],
columnWidth: [90, 100, 110, 100, 100, 100],
headerHeight: 20,
rowNum: 4,
}
},
},
mounted() {},
}
</script>
<style lang="less" scoped>
.dv-content-body-bottom-list-right {
width: 49%;
height: 95%;
border: 1.5px solid hsl(208.57deg 51.22% 40.2%);
}
.dv-content-body-bottom-list-right-title {
width: 97%;
height: 23px;
margin: auto;
display: flex;
font-size: 14px;
color: #fff;
flex-direction: column;
justify-content: center;
}
.dv-content-body-bottom-list-right-table {
width: 97%;
height: 90%;
margin: auto;
}
.div-span-title-bottom {
// display: flex;
width: 33%;
height: 20%;
}
.agvFont {
font-size: 1vw;
color: #fff;
display: contents;
}
.BottomStyleTop {
height: 1%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.dianchiCss {
display: flex;
font-size: 13px;
color: aliceblue;
// margin: 20px 0 0 20px;
align-items: center;
}
</style>
<style>
.dv-scroll-board .header .header-item {
font-size: 13px !important;
}
.dv-scroll-board .rows div.ceil {
font-size: 11px !important;
}
</style>