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
| <template>
| <div id="centerRight1">
| <div class="bg-color-black">
| <div class="d-flex pt-2 pl-2">
| <span>
| <icon name="chart-line" style="background-color: #c3cbde" class="text-icon"></icon>
| </span>
| <div class="d-flex">
| <span class="fs-xl text mx-2">最新工件过站节拍统计</span>
| </div>
| </div>
| <div class="d-flex jc-center body-box">
| <dv-scroll-board class="dv-scr-board" :config="config" />
| </div>
| </div>
| </div>
| </template>
|
| <script>
| export default {
| data() {
| return {
| config: {
| header: ['工位', '节拍/秒'],
| data: [
| ['OP1010', "45"],
| ['OP1020', "25"],
| ['OP1030', "32"],
| ['OP1040', "7"],
| ['OP1060', "72"],
| ['OP1070', "10"],
| ['OP1080', "23"],
| ['OP1090', "5"],
| ['OP1100', "9"],
| ['OP1110', "22"],
| ['OP1150', "35"],
| ['OP1160', "21"],
| ['OP1170', "15"],
| ['OP1180', "18"],
| ['OP1190', "10"],
| ],
| rowNum: 7, //表格行数
| headerHeight: 35,
| headerBGC: '#0f1325', //表头
| oddRowBGC: '#0f1325', //奇数行
| evenRowBGC: '#171c33', //偶数行
| index: true,
| columnWidth: [50],
| align: ['center']
| }
| }
| },
| mounted() {
| this.tops();
| this.changeTiming();
| },
| methods: {
| tops(){
| var that = this;
| this.$http.get('http://192.168.0.249:8083/productionOrdeInfo/largeScreenList1')
| .then((response)=>{
| that.config.data = response.data;
| that.config={...this.config}
| })
| },
| changeTiming() {
| setInterval(() => {
| this.tops();
| }, 60000)
| },
| }
| }
| </script>
|
| <style lang="scss" scoped>
| $box-height: 410px;
| $box-width: 300px;
| #centerRight1 {
| padding: 16px;
| padding-top: 20px;
| height: $box-height;
| width: $box-width;
| border-radius: 5px;
| .bg-color-black {
| height: $box-height - 30px;
| border-radius: 10px;
| }
| .text {
| color: #c3cbde;
| font-size: 16px;
| margin-top: -1px;
| }
| .body-box {
| border-radius: 10px;
| overflow: hidden;
| .dv-scr-board {
| width: 270px;
| height: 340px;
| }
| }
| }
| </style>
|
|