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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
| <template>
| <div id="center">
| <div class="up">
| <div
| class="bg-color-black item"
| v-for="item in titleItem"
| :key="item.title"
| >
| <p class="ml-3 colorWhite fw-b fs-xl" style="font-size:18px">{{ item.title }}</p>
| <div>
| <dv-digital-flop
| class="dv-dig-flop ml-1 mt-2 pl-3"
| :config="item.number"
| />
| </div>
| </div>
| </div>
| <div class="down">
| <div class="ranking bg-color-black">
| <span>
| <icon name="chart-pie" class="text-icon"></icon>
| </span>
| <span class="fs-xl text mx-2 mb-1 pl-3" style="font-size:20px">当日库区出入库数量统计</span>
| <dv-scroll-ranking-board
| class="dv-scr-rank-board mt-1"
| :config="ranking"
| style="width:300px;height:400px;font-size:30px"
| />
| </div>
| <div class="water" style="margin-left: 0px;">
| <dv-water-level-pond class="dv-wa-le-po" />
| </div>
| </div>
| </div>
|
| </template>
|
| <script>
| import axios from "@/api/ajax.js"
| export default {
| data() {
| return {
| titleItem: [],
| ranking: {
| data: [
| {
| name: "当日成品入库数量",
| value: 0,
| },
| {
| name: "当日成品出库数量",
| value: 0,
| },
| {
| name: "当日空桶入库数量",
| value: 0,
| },
| {
| name: "当日空桶出库数量",
| value: 0,
| },
| ],
| carousel: "single",
| unit: "托",
| },
| isSetinterval:true
| };
| },
| mounted(){
| this.getTaskinfoList();
| },
| methods: {
| getTaskinfoList(){
| axios.post("/api/LED/TaskinfoList", null, "").then((res)=>{
| if(res.data.status){
| var data=res.data.data;
| var arrTasks=[];
| data.list.forEach(x=> {
| arrTasks.push(
| {
| name: x.name,
| value: x.count,
| }
| )
| });
| this.ranking={
| data: arrTasks,
| carousel: "single",
| unit: "托"
| }
| if(this.isSetinterval){
| setInterval(() => {
| this.getTaskinfoList();
| this.isSetinterval=false;
| }, 5000);
| }
| }
| })
| }
| }
| };
| </script>
|
| <style lang="scss" scoped>
| #center {
| display: flex;
| flex-direction: column;
| .up {
| width: 1280PX;
| display: flex;
| flex-wrap: wrap;
| justify-content: space-around;
| .item {
| border-radius: 6px;
| padding-top: 8px;
| margin-top: 8px;
| width: 48%;
| height: 70px;
| .dv-dig-flop {
| width: 150px;
| height: 30px;
| }
| }
| }
| .down {
| padding: 6px 4px;
| padding-bottom: 0;
| width: 600px;
| display: flex;
| height: 255px;
| justify-content: space-between;
| .bg-color-black {
| border-radius: 5px;
| }
| .ranking {
| padding: 10px;
| width: 320px;
| height: 402px;
| .dv-scr-rank-board {
| height: 225px;
| margin-top: 20px;
| }
| }
| .percent {
| width: 40%;
| display: flex;
| flex-wrap: wrap;
| .item {
| width: 50%;
| height: 120px;
| span {
| margin-top: 8px;
| margin-left: 8px;
| font-size: 14px;
| display: flex;
| justify-content: center;
| }
| }
| .dv-wa-le-po {
| margin-left: 1000px;
| .dv-wa-le-po {
| height: 120px;
| }
| }
| }
| }
| }
| </style>
|
|
|