bodyCenterLeft.vue
1.86 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-center-list-left">
<dv-border-box-12 :dur="35" :color="[, '#ffffff']">
<div style="width: 100; ">
<span class="div-span-title">{{ $gl('warehouse location usage status') }} </span>
</div>
<div style="width: 100%; height: 85%">
<dv-scroll-board :config="WarehouselocationTable" style="width: 97%; margin-left: 0.4vw" />
</div>
</dv-border-box-12>
</div>
</template>
<script>
export default {
data() {
return {
sysData: {},
WarehouselocationTable: {
header: ['设备', '可存盘', '实际入盘', '使用率'],
data: [
// ['1号县道', '1680', '940', '56%'],
// ['2号县道', '1560', '1385', '89%'],
],
columnWidth: [150, 150, 190, 150],
align: ['left'],
headerBGC: '#201e1e', //表头
oddRowBGC: '#021c66',
evenRowBGC: '#65,105,225',
rowNum: 4,
headerHeight: 25,
carousel: 'page',
waitTime: 8000,
},
optTableWarehouse: '',
}
},
methods: {
// 库位使用情况
getData(data, dataTable) {
if (dataTable != null) {
this.optTableWarehouse = dataTable
} else {
this.optTableWarehouse = window.optTableWarehouse
}
let listData = []
data.forEach((item) => {
listData.push([item.area, item.sumNum, item.haveContainerNum, item.usagerate + '%'])
})
this.initWarehouselocationTable(listData)
},
initWarehouselocationTable(s) {
this.WarehouselocationTable = {
header: this.optTableWarehouse.header,
data: s,
columnWidth: [150, 145, 185, 145],
align: this.optTableWarehouse.align,
headerBGC: '#201e1e', //表头
oddRowBGC: '#021c66',
evenRowBGC: '#65,105,225',
rowNum: 4,
headerHeight: 25,
carousel: 'page',
waitTime: 8000,
}
},
},
}
</script>
<style lang="less" scoped>
.dv-content-body-center-list-left {
width: 33vw;
height: 95%;
//background-color: #441f75;
}
</style>