yuzipei vor 3 Wochen
Ursprung
Commit
b968a5e959

BIN
src/assets/imgs/dataVImg/sialBgDataV.png


+ 162 - 180
src/pages/gvc/mod.js

@@ -16,206 +16,188 @@ import { message } from 'antd';
16 16
 const defaultState = {
17 17
   imgMsgData: [
18 18
     {
19
-      total: 4500,
20
-      totalName: "累计运输锂辉石",
21
-      styles: { left: "0%", top: "19%" },
22
-      cumulativeProduction: null,
23
-      inventory: 0,
19
+      "warehouseNameCode": "3",
20
+      "indexValue": 0,
21
+      "total": 0,
22
+      "totalName": "累计运输锂辉石(化学级)",
23
+      "styles": {
24
+        "left": "5%",
25
+        "top": "27%",
26
+        "width": "12em"
27
+      },
28
+      "cumulativeProduction": null,
29
+      "inventory": 0,
30
+      "showDetail": false
24 31
     },
25 32
     {
26
-      total: 3233,
27
-      totalName: "锂辉石库存量",
28
-      styles: { left: "11%", top: "45%" },
29
-      cumulativeProduction: null,
30
-      inventory: 0,
33
+      "warehouseNameCode": "2",
34
+      "indexValue": 0,
35
+      "total": 0,
36
+      "totalName": "锂辉石(化学级)库存量",
37
+      "styles": {
38
+        "left": "13%",
39
+        "top": "53%",
40
+        "width": "12em"
41
+      },
42
+      "cumulativeProduction": null,
43
+      "inventory": 0,
44
+      "showDetail": false
31 45
     },
32 46
     {
33
-      total: 3578,
34
-      totalName: "锂辉石库存量",
35
-      styles: { left: "34%", top: "27%" },
36
-      cumulativeProduction: null,
37
-      inventory: 0,
47
+      "warehouseNameCode": "1",
48
+      "indexValue": 0,
49
+      "total": 0,
50
+      "totalName": "锂辉石(化学级)库存量",
51
+      "styles": {
52
+        "left": "32%",
53
+        "top": "38%",
54
+        "width": "12em"
55
+      },
56
+      "cumulativeProduction": null,
57
+      "inventory": 0,
58
+      "showDetail": false
38 59
     },
39 60
     {
40
-      total: 0,
41
-      totalName: "",
42
-      styles: { left: "11%", top: "88%" },
43
-      cumulativeProduction: 1222,
44
-      inventory: 1000,
45
-      day:222,
46
-      mood:333,
47
-      year:444,
48
-      rawMaterial:[
49
-        {
50
-          prodCatgory:"原料-鲤辉石",
51
-          indexValue:22,
52
-        },
53
-        {
54
-          prodCatgory:"产品-碳酸锂",
55
-          indexValue:33,
56
-        },
57
-        {
58
-          prodCatgory:"原料-氯化锂",
59
-          indexValue:44,
60
-        },
61
-        {
62
-          prodCatgory:"产品-氢氧化锂",
63
-          indexValue:66,
64
-        },
65
-        {
66
-          prodCatgory:"产品-金属锂",
67
-          indexValue:88,
68
-        },
69
-        {
70
-          prodCatgory:"产品-98K",
71
-          indexValue:1000,
72
-        },
61
+      "factoryCode": 5,
62
+      "production": 0,
63
+      "inventory": 0,
64
+      "total": 0,
65
+      "totalName": "",
66
+      "styles": {
67
+        "left": "21%",
68
+        "top": "76%"
69
+      },
70
+      "cumulativeProduction": 0,
71
+      "day": 0,
72
+      "mood": "0",
73
+      "year": "0",
74
+      "rawMaterial": [
75
+
73 76
       ]
74 77
     },
75 78
     {
76
-      total: 0,
77
-      totalName: "",
78
-      styles: { left: "30%", top: "73%" },
79
-      cumulativeProduction: 1222,
80
-      inventory: 1000,
81
-      day:222,
82
-      mood:333,
83
-      year:444,
84
-      rawMaterial:[
85
-        {
86
-          prodCatgory:"原料-鲤辉石",
87
-          indexValue:22,
88
-        },
89
-        {
90
-          prodCatgory:"产品-碳酸锂",
91
-          indexValue:33,
92
-        },
93
-        {
94
-          prodCatgory:"原料-氯化锂",
95
-          indexValue:44,
96
-        },
97
-        {
98
-          prodCatgory:"产品-氢氧化锂",
99
-          indexValue:66,
100
-        },
101
-        {
102
-          prodCatgory:"产品-金属锂",
103
-          indexValue:88,
104
-        },
105
-        {
106
-          prodCatgory:"产品-98K",
107
-          indexValue:1000,
108
-        },
79
+      "factoryCode": 4,
80
+      "production": 0,
81
+      "inventory": 0,
82
+      "total": 0,
83
+      "totalName": "",
84
+      "styles": {
85
+        "left": "65%",
86
+        "top": "41%"
87
+      },
88
+      "cumulativeProduction": 0,
89
+      "day": "0",
90
+      "mood": "0",
91
+      "year": "0",
92
+      "rawMaterial": [
93
+
109 94
       ]
110 95
     },
111 96
     {
112
-      total: 0,
113
-      totalName: "",
114
-      styles: { left: "52%", top: "56%" },
115
-      cumulativeProduction: 1222,
116
-      inventory: 1000,
117
-      day:222,
118
-      mood:333,
119
-      year:444,
120
-      rawMaterial:[
121
-        {
122
-          prodCatgory:"原料-鲤辉石",
123
-          indexValue:22,
124
-        },
125
-        {
126
-          prodCatgory:"产品-碳酸锂",
127
-          indexValue:33,
128
-        },
129
-        {
130
-          prodCatgory:"原料-氯化锂",
131
-          indexValue:44,
132
-        },
133
-        {
134
-          prodCatgory:"产品-氢氧化锂",
135
-          indexValue:66,
136
-        },
137
-        {
138
-          prodCatgory:"产品-金属锂",
139
-          indexValue:88,
140
-        },
141
-        {
142
-          prodCatgory:"产品-98K",
143
-          indexValue:1000,
144
-        },
97
+      "factoryCode": 3,
98
+      "production": 0,
99
+      "inventory": 0,
100
+      "total": 0,
101
+      "totalName": "",
102
+      "styles": {
103
+        "left": "52%",
104
+        "top": "52%"
105
+      },
106
+      "cumulativeProduction": 0,
107
+      "day": "74.52",
108
+      "mood": "787.84",
109
+      "year": "8,510.82",
110
+      "rawMaterial": [
111
+
112
+      ]
113
+    },
114
+    {
115
+      "factoryCode": 2,
116
+      "production": 0,
117
+      "inventory": 0,
118
+      "total": 0,
119
+      "totalName": "",
120
+      "styles": {
121
+        "left": "36%",
122
+        "top": "64%"
123
+      },
124
+      "cumulativeProduction": 0,
125
+      "day": 0,
126
+      "mood": "108.00",
127
+      "year": "6,260.16",
128
+      "rawMaterial": [
129
+
145 130
       ]
146 131
     },
147 132
     {
148
-      total: 0,
149
-      totalName: "",
150
-      styles: { left: "70%", top: "42%" },
151
-      cumulativeProduction: 1222,
152
-      inventory: 1000,
153
-      day:222,
154
-      mood:333,
155
-      year:444,
156
-      rawMaterial:[
157
-        {
158
-          prodCatgory:"原料-鲤辉石",
159
-          indexValue:22,
160
-        },
161
-        {
162
-          prodCatgory:"产品-碳酸锂",
163
-          indexValue:33,
164
-        },
165
-        {
166
-          prodCatgory:"原料-氯化锂",
167
-          indexValue:44,
168
-        },
169
-        {
170
-          prodCatgory:"产品-氢氧化锂",
171
-          indexValue:66,
172
-        },
173
-        {
174
-          prodCatgory:"产品-金属锂",
175
-          indexValue:88,
176
-        },
177
-        {
178
-          prodCatgory:"产品-98K",
179
-          indexValue:1000,
180
-        },
133
+      "factoryCode": 1,
134
+      "production": 0,
135
+      "inventory": 0,
136
+      "total": 0,
137
+      "totalName": "",
138
+      "styles": {
139
+        "left": "47%",
140
+        "top": "23%"
141
+      },
142
+      "cumulativeProduction": 0,
143
+      "day": 0,
144
+      "mood": 0,
145
+      "year": 0,
146
+      "rawMaterial": [
147
+
181 148
       ]
182 149
     },
183 150
     {
184
-      total: 0,
185
-      totalName: "",
186
-      styles: { left: "88%", top: "28%" },
187
-      cumulativeProduction: 1222,
188
-      inventory: 1000,
189
-      day:222,
190
-      mood:333,
191
-      year:444,
192
-      rawMaterial:[
193
-        {
194
-          prodCatgory:"原料-鲤辉石",
195
-          indexValue:22,
196
-        },
197
-        {
198
-          prodCatgory:"产品-碳酸锂",
199
-          indexValue:33,
200
-        },
201
-        {
202
-          prodCatgory:"原料-氯化锂",
203
-          indexValue:44,
204
-        },
205
-        {
206
-          prodCatgory:"产品-氢氧化锂",
207
-          indexValue:66,
208
-        },
209
-        {
210
-          prodCatgory:"产品-金属锂",
211
-          indexValue:88,
212
-        },
213
-        {
214
-          prodCatgory:"产品-98K",
215
-          indexValue:1000,
216
-        },
151
+      "factoryCode": 6,
152
+      "production": 0,
153
+      "inventory": 0,
154
+      "total": 0,
155
+      "totalName": "",
156
+      "styles": {
157
+        "left": "7%",
158
+        "top": "89%"
159
+      },
160
+      "cumulativeProduction": 0,
161
+      "day": "0",
162
+      "mood": "0",
163
+      "year": "0",
164
+      "rawMaterial": [
165
+
217 166
       ]
218 167
     },
168
+    {
169
+      "factoryCode": 7,
170
+      "production": 0,
171
+      "inventory": 0,
172
+      "total": 0,
173
+      "totalName": "",
174
+      "styles": {
175
+        "left": "80%",
176
+        "top": "28%"
177
+      },
178
+      "cumulativeProduction": 0,
179
+      "day": 0,
180
+      "mood": 0,
181
+      "year": 0,
182
+      "rawMaterial": []
183
+    },
184
+    {
185
+      "warehouseNameCode": "5",
186
+      "indexValue": 0,
187
+      "total": 0,
188
+      "totalName": "锂辉石(化学级)在途库存",
189
+      "styles": {
190
+        "left": "20%",
191
+        "top": "25%",
192
+        "width": "12em"
193
+      },
194
+      "cumulativeProduction": null,
195
+      "inventory": 0,
196
+      "showDetail": true,
197
+      "rawMaterial": [
198
+
199
+      ]
200
+    }
219 201
   ],
220 202
 }
221 203
 

+ 6 - 6
src/pages/gvc/style.less

@@ -44,7 +44,7 @@
44 44
         .alls {
45 45
           width: 80%;
46 46
           height: unset;
47
-          padding: 1% 0% 0% 2%;
47
+          padding: 0% 0% 0% 2%;
48 48
           position: relative;
49 49
           box-sizing: border-box;
50 50
           z-index: 1;
@@ -218,7 +218,7 @@
218 218
 
219 219
         @media (min-width: 2560px) {
220 220
           .alls {
221
-            width: 82%;
221
+            width: 77%;
222 222
           }
223 223
 
224 224
           video {
@@ -228,7 +228,7 @@
228 228
 
229 229
         @media (min-width: 2240px) and (max-width: 2559px) {
230 230
           .alls {
231
-            width: 81%;
231
+            width: 77%;
232 232
           }
233 233
 
234 234
           video {
@@ -238,7 +238,7 @@
238 238
 
239 239
         @media (min-width: 1760px) and (max-width: 2239px) {
240 240
           .alls {
241
-            width: 80%;
241
+            width: 77%;
242 242
           }
243 243
 
244 244
           video {
@@ -248,7 +248,7 @@
248 248
 
249 249
         @media (min-width: 1441px) and (max-width: 1759px) {
250 250
           .alls {
251
-            width: 79%;
251
+            width: 77%;
252 252
           }
253 253
 
254 254
           video {
@@ -258,7 +258,7 @@
258 258
 
259 259
         @media (max-width: 1440px) {
260 260
           .alls {
261
-            width: 78%;
261
+            width: 77%;
262 262
           }
263 263
 
264 264
           video {

+ 102 - 4
src/pages/sial/api.js

@@ -86,10 +86,11 @@ export function timeService(params) {
86 86
       "returnFields": [
87 87
         "indexName",
88 88
         "factoryName",
89
-        "indexValue"
89
+        "indexValue",
90
+        "factoryCode"
90 91
       ],
91 92
       "pageNum": 1,
92
-      "pageSize": 10,
93
+      "pageSize": 999,
93 94
       "useResultCache": false
94 95
     },
95 96
     headers: {
@@ -149,7 +150,8 @@ export function mondService(params) {
149 150
         "indexName",
150 151
         "indexDate",
151 152
         "indexValue",
152
-        "factoryProdcution"
153
+        "factoryProdcution",
154
+        "totalValue"
153 155
       ],
154 156
       "pageNum": 1,
155 157
       "pageSize": 30,
@@ -217,7 +219,7 @@ export function dryBaseData(params) {
217 219
         "indexValue",
218 220
       ],
219 221
       "pageNum": 1,
220
-      "pageSize": 10,
222
+      "pageSize": 100,
221 223
       "useResultCache": false
222 224
     },
223 225
     headers: {
@@ -261,4 +263,100 @@ export function updateTimeService(params) {
261 263
   });
262 264
 }
263 265
 
266
+/**基地数据*/
267
+export function getBaseData(params) {
268
+  return request({
269
+    url: "/dataengine-center-oneservice/list/1436949456311773653",
270
+    method: "POST",
271
+    data: {
272
+      "apiId": "1436949456311773653",
273
+      "appKey": "200000138",
274
+      "env": "PROD",
275
+      "reqProtocol": 1,
276
+      "returnFields": [
277
+        "factoryCode",
278
+        "production",
279
+        "inventory",
280
+      ],
281
+      "pageNum": 1,
282
+      "pageSize": 10,
283
+      "useResultCache": false
284
+    },
285
+    headers: {
286
+      sign: '47afe9770e467bba26fdbdcdc5a0a1cf',
287
+      account: 'yunxi_fuxue',
288
+      'Cache-Control': 'no-cache',
289
+      apiId: '1436949456311773653',
290
+      appKey: '200000138',
291
+      execType: '3',
292
+      env: 'PROD',
293
+    }
294
+  });
295
+}
296
+
297
+/**基地年月日数据*/
298
+export function getBaseYMDData(params) {
299
+  return request({
300
+    url: "/dataengine-center-oneservice/list/1436949376672426448",
301
+    method: "POST",
302
+    data: {
303
+      "apiId": "1436949376672426448",
304
+      "appKey": "200000138",
305
+      "env": "PROD",
306
+      "reqProtocol": 1,
307
+      "returnFields": [
308
+        "factoryCode",
309
+        "factoryNameCode",
310
+        "dateType",
311
+        "indexValue"
312
+      ],
313
+      "pageNum": 1,
314
+      "pageSize": 10,
315
+      "useResultCache": false
316
+    },
317
+    headers: {
318
+      sign: '36a12893781aeabbc03e62a3b8e1f493',
319
+      account: 'yunxi_fuxue',
320
+      'Cache-Control': 'no-cache',
321
+      apiId: '1436949376672426448',
322
+      appKey: '200000138',
323
+      execType: '3',
324
+      env: 'PROD',
325
+    }
326
+  });
327
+}
328
+
329
+/**基地年月日数据*/
330
+export function getBaseDetailData(params) {
331
+  return request({
332
+    url: "/dataengine-center-oneservice/list/1436949284175440330",
333
+    method: "POST",
334
+    data: {
335
+      "apiId": "1436949284175440330",
336
+      "appKey": "200000138",
337
+      "env": "PROD",
338
+      "reqProtocol": 1,
339
+      "returnFields": [
340
+        "factoryCode",
341
+        "factoryName",
342
+        "prodCatgoryCode",
343
+        "prodCatgory",
344
+        "indexValue",
345
+      ],
346
+      "pageNum": 1,
347
+      "pageSize": 10,
348
+      "useResultCache": false
349
+    },
350
+    headers: {
351
+      sign: 'c7e043fed27eeb6c524a6e5158035329',
352
+      account: 'yunxi_fuxue',
353
+      'Cache-Control': 'no-cache',
354
+      apiId: '1436949284175440330',
355
+      appKey: '200000138',
356
+      execType: '3',
357
+      env: 'PROD',
358
+    }
359
+  });
360
+}
361
+
264 362
 

+ 26 - 51
src/pages/sial/component/bottomLineForSend.jsx

@@ -22,9 +22,10 @@ class BottomLineForSend extends Component {
22 22
     super(props, context);
23 23
     this.store = mod;
24 24
     this.state = {
25
-      factoryProdcution_arr: [],
26
-      missionsIntensity_arr: [],
25
+      total_arr: [],
27 26
       year: [],
27
+      yanting_arr: [],
28
+      jiangsu_arr: [],
28 29
     };
29 30
   }
30 31
 
@@ -34,14 +35,15 @@ class BottomLineForSend extends Component {
34 35
   async getUrl() {
35 36
     await mondService().then(({ data = [], resultCode }) => {
36 37
       if (+resultCode === 0) {
37
-        let year = [], missionsIntensity_arr = [], factoryProdcution_arr = [];
38
+        let year = [], total_arr = [], yanting_arr = [], jiangsu_arr = [];
38 39
         data.map((x, i) => {
39 40
           const name_ = x.indexDate.split('-')[1] + '-' + x.indexDate.split('-')[2];
40 41
           year.push(name_);
41
-          missionsIntensity_arr.push(x.indexValue);
42
-          factoryProdcution_arr.push(x.factoryProdcution)
42
+          total_arr.push(x.totalValue)
43
+          yanting_arr.push(x.factoryProdcution)
44
+          jiangsu_arr.push(x.indexValue)
43 45
         });
44
-        this.setState({ year, missionsIntensity_arr, factoryProdcution_arr });
46
+        this.setState({ year, total_arr, yanting_arr, jiangsu_arr });
45 47
         this.setData();
46 48
       }
47 49
     });
@@ -76,6 +78,8 @@ class BottomLineForSend extends Component {
76 78
           bottom: '15%',
77 79
           containLabel: true
78 80
         },
81
+
82
+
79 83
         // legend: {
80 84
         //   data: ['字段1', '字段2'],
81 85
         //   right: 'center',
@@ -167,22 +171,21 @@ class BottomLineForSend extends Component {
167 171
               normal: {
168 172
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
169 173
                   offset: 0,
170
-                  color: '#69ffde5c'
174
+                  color: 'rgba(0, 255, 182, 0.5)'
171 175
                 }, {
172 176
                   offset: 1,
173
-                  color: 'rgba(228, 228, 126, 0)'
177
+                  color: 'rgba(0, 255, 182, 0)'
174 178
                 }], false),
175 179
                 shadowColor: 'rgba(0, 0, 0, 0.1)',
176 180
               }
177 181
             },
178 182
             itemStyle: {
179 183
               normal: {
180
-                color: 'rgba(228, 228, 126, 1)',
181
-                borderColor: 'rgba(228, 228, 126, .1)',
184
+                color: 'rgba(0, 255, 182, 0.3)',
182 185
                 borderWidth: 12
183 186
               }
184 187
             },
185
-            data: this.state.missionsIntensity_arr,
188
+            data: this.state.total_arr,
186 189
             "smooth": true
187 190
           },
188 191
           {
@@ -192,32 +195,16 @@ class BottomLineForSend extends Component {
192 195
             symbol: 'circle',
193 196
             symbolSize: 0,
194 197
             showSymbol: false,
195
-            lineStyle: {
196
-              normal: {
197
-                color: '#69FFDE',
198
-                width: 0
199
-              }
200
-            },
201
-            areaStyle: {
202
-              normal: {
203
-                color: new echarts.graphic.LinearGradient(0, 0, 0, 0, [{
204
-                  offset: 0,
205
-                  color: '#69ffde5c'
206
-                }, {
207
-                  offset: 1,
208
-                  color: 'rgba(228, 228, 126, 0)'
209
-                }], false),
210
-                shadowColor: 'rgba(0, 0, 0, 0)',
211
-              }
212
-            },
213 198
             itemStyle: {
199
+              color: '#FFCE00'
200
+            },
201
+            lineStyle: {
214 202
               normal: {
215
-                color: 'rgba(228, 228, 126, 1)',
216
-                borderColor: 'rgba(228, 228, 126, .1)',
217
-                borderWidth: 0
203
+                color: '#FFCE00',
204
+                width: 2
218 205
               }
219 206
             },
220
-            data: this.state.factoryProdcution_arr,
207
+            data: this.state.jiangsu_arr,
221 208
             "smooth": true
222 209
           },
223 210
           {
@@ -229,30 +216,18 @@ class BottomLineForSend extends Component {
229 216
             showSymbol: false,
230 217
             lineStyle: {
231 218
               normal: {
232
-                color: '#69FFDE',
233
-                width: 0
234
-              }
235
-            },
236
-            areaStyle: {
237
-              normal: {
238
-                color: new echarts.graphic.LinearGradient(0, 0, 0, 0, [{
239
-                  offset: 0,
240
-                  color: '#69ffde5c'
241
-                }, {
242
-                  offset: 1,
243
-                  color: 'rgba(228, 228, 126, 0)'
244
-                }], false),
245
-                shadowColor: 'rgba(0, 0, 0, 0)',
219
+                color: '#8D93FF',
220
+                width: 2
246 221
               }
247 222
             },
248 223
             itemStyle: {
249 224
               normal: {
250
-                color: 'rgba(228, 228, 126, 1)',
251
-                borderColor: 'rgba(228, 228, 126, .1)',
252
-                borderWidth: 0
225
+                color: '#8D93FF',
226
+                borderColor: '#8D93FF',
227
+                borderWidth: 2
253 228
               }
254 229
             },
255
-            data: this.state.factoryProdcution_arr,
230
+            data: this.state.yanting_arr,
256 231
             "smooth": true
257 232
           },
258 233
           // {

+ 12 - 10
src/pages/sial/component/dryBaseQualified.jsx

@@ -24,7 +24,7 @@ class BottomLineForSend extends Component {
24 24
     this.state = {
25 25
       yantingRate: [],
26 26
       year: [],
27
-      suzhouRate: [],
27
+      jiangsuRate: [],
28 28
     };
29 29
   }
30 30
 
@@ -35,16 +35,18 @@ class BottomLineForSend extends Component {
35 35
   async getUrl() {
36 36
     await dryBaseData().then(({ data = [], resultCode }) => {
37 37
       if (+resultCode === 0) {
38
-        let year = [], suzhouRate = [], yantingRate = [];
38
+        let year = [], jiangsuRate = [], yantingRate = [];
39 39
         data.map((x, i) => {
40
-          year.push(x.bMonth);
41
-          if (x.factoryName == '盐亭') {
40
+          if (!year.includes(x.bMonth)) {
41
+            year.push(x.bMonth);
42
+          }
43
+          if (x.factoryName == '天齐盐亭') {
42 44
             yantingRate.push(x.indexValue)
43
-          } else if (x.factoryName == '盐亭') {
44
-            suzhouRate.push(x.indexValue)
45
+          } else if (x.factoryName == '天齐江苏') {
46
+            jiangsuRate.push(x.indexValue)
45 47
           }
46 48
         });
47
-        this.setState({ year, yantingRate, suzhouRate });
49
+        this.setState({ year, yantingRate, jiangsuRate });
48 50
         this.setData();
49 51
       }
50 52
     });
@@ -97,7 +99,7 @@ class BottomLineForSend extends Component {
97 99
           "left": "10%",
98 100
         },
99 101
         legend: {
100
-          data: ['盐亭', '苏'],
102
+          data: ['盐亭', '苏'],
101 103
           right: 'center',
102 104
           padding: [10, 0, 0, 5],
103 105
           top: 0,
@@ -178,9 +180,9 @@ class BottomLineForSend extends Component {
178 180
             "smooth": true
179 181
           },
180 182
           {
181
-            "name": "苏",
183
+            "name": "苏",
182 184
             "type": "line",
183
-            data: this.state.suzhouRate,
185
+            data: this.state.jiangsuRate,
184 186
             lineStyle: {
185 187
               normal: {
186 188
                 width: 2

+ 5 - 2
src/pages/sial/component/mapView.jsx

@@ -100,8 +100,11 @@ class MapView extends Component {
100 100
   render() {
101 101
     const { changGif } = this.state;
102 102
     return (
103
-      <div class="video_box3 video_box_hide sial_video animate__animated animate__fadeOut animate__delay-2s animate__slower">
104
-        <video src={require("@assets/imgs/dataVimg/sial_video1.mp4").default} autoplay="autoplay" class="videoBoxViem"></video>
103
+      <div class="video_box_hide sial_video animate__animated animate__fadeOut animate__delay-2s animate__slower">
104
+        <div className="alls">
105
+          <video src={require("@assets/imgs/dataVimg/sial_video1.mp4").default} autoplay="autoplay" class="videoBoxViem"></video>
106
+        </div>
107
+
105 108
       </div>
106 109
     )
107 110
   }

+ 117 - 53
src/pages/sial/style.less

@@ -3,10 +3,108 @@
3 3
 @assetUrl: "../../assets/imgs/home";
4 4
 
5 5
 .sial_home {
6
+  position: relative;
7
+  left: 0;
8
+  top: 0;
9
+  width: 100%;
10
+  height: 100%;
11
+  overflow: hidden;
12
+  overflow-x: hidden;
6 13
   background: url(../../assets/imgs/dataVimg/sialBgDataV.png) no-repeat 0 -10em / 100% 120% #041b40 !important;
7 14
 
15
+  :global(.rightJ_png) {
16
+    position: absolute;
17
+    z-index: 99;
18
+    width: 2em;
19
+    right: 0.8em;
20
+    top: 44%;
21
+    opacity: .5;
22
+  }
23
+
24
+  :global(.rightJ_png_L) {
25
+    right: unset;
26
+    left: 0.8em;
27
+  }
28
+
29
+
30
+
31
+  :global(.sial_video) {
32
+    position: absolute;
33
+    left: 0;
34
+    top: 0;
35
+    width: 98.5%;
36
+    // background: url(../imgs/dataVimg/homeBgDataV.png) no-repeat 0 -10em / 108% 120% #041b40;
37
+    height: 100%;
38
+    display: flex;
39
+    align-items: center;
40
+    justify-content: center;
41
+    flex-wrap: wrap;
42
+    pointer-events: none;
43
+    z-index: 12;
44
+
45
+    video {
46
+      width: 45%;
47
+      // height: 45%;
48
+      margin-top: -14%;
49
+      // padding: 1% 0 0 10%;
50
+    }
51
+
52
+    img {
53
+      width: 100%;
54
+      height: unset;
55
+      padding: 0;
56
+    }
8 57
 
9 58
 
59
+    :global(.alls) {
60
+      width: 80%;
61
+      height: unset;
62
+      padding: 1% 0 0 0;
63
+      margin: 0 auto;
64
+      position: relative;
65
+      box-sizing: border-box;
66
+      z-index: 1;
67
+      overflow: visible;
68
+      display: flex;
69
+      justify-content: center;
70
+    }
71
+
72
+    // 允许热点层接收 hover;片头层(.video_box_hide)继续禁用交互
73
+    &:not(.video_box_hide) :global(.alls) {
74
+      pointer-events: auto;
75
+    }
76
+
77
+    &.video_box_hide,
78
+    &.video_box_hide * {
79
+      pointer-events: none !important;
80
+    }
81
+
82
+    @media (min-height: 700px) {
83
+      :global(.alls) {
84
+        width: 60%;
85
+      }
86
+    }
87
+
88
+    @media (min-height: 800px) {
89
+      :global(.alls) {
90
+        width: 70%;
91
+      }
92
+    }
93
+
94
+    @media (min-height: 900px) {
95
+      :global(.alls) {
96
+        width: 75%;
97
+      }
98
+    }
99
+
100
+    @media (min-height: 1000px) {
101
+      :global(.alls) {
102
+        width: 80%;
103
+      }
104
+    }
105
+
106
+  }
107
+
10 108
 
11 109
   .bg_after {
12 110
     content: "";
@@ -21,6 +119,7 @@
21 119
 
22 120
   .home {
23 121
     position: relative;
122
+    overflow: hidden;
24 123
 
25 124
     .insert {
26 125
       position: absolute;
@@ -69,58 +168,13 @@
69 168
 
70 169
     :global {
71 170
       // background: url(../../../public/bg_home.png) 50% 50% no-repeat;
72
-      background-color: #041747;
171
+      //background-color: #041747;
73 172
       background-size: cover;
74 173
       text-align: center;
75
-      padding: 0 33px 113px 33px;
174
+      //padding: 0 33px 113px 33px;
76 175
       height: 100%;
77 176
 
78 177
 
79
-      .sial_video {
80
-        background: url(../../assets/imgs/dataVimg/gvcBgDataV.png) no-repeat 0 -10em / 100% 120% #041b40 !important;
81
-        align-items: flex-start;
82
-        // background: #000;
83
-
84
-        video {
85
-          width: 100%;
86
-          height: unset;
87
-          padding: 0;
88
-        }
89
-
90
-        img {
91
-          width: 100%;
92
-          height: unset;
93
-          padding: 0;
94
-        }
95
-
96
-
97
-        .alls {
98
-          width: 80%;
99
-          height: unset;
100
-          padding: 2% 0% 0% 2%;
101
-          position: relative;
102
-        }
103
-
104
-        // @media (min-height: 800px) {
105
-        //   .alls {
106
-        //     width: 73%;
107
-        //   }
108
-        // }
109
-
110
-        // @media (min-height: 900px) {
111
-        //   .alls {
112
-        //     width: 64%;
113
-        //   }
114
-        // }
115
-
116
-        // @media (min-height: 1000PX) {
117
-        //   .alls {
118
-        //     width: 70%;
119
-        //   }
120
-        // }
121
-
122
-      }
123
-
124 178
       .titles {
125 179
         padding-top: 52px;
126 180
         display: inline-block;
@@ -459,25 +513,34 @@
459 513
 
460 514
   :global {
461 515
     .imgMsg2 {
516
+      list-style: none;
517
+      margin: 0;
518
+      padding: 0;
462 519
       width: 100%;
463 520
       position: absolute;
464
-      left: 0;
521
+      left: 27.5%;
522
+      margin-top: -14%;
465 523
       top: 0;
466 524
       height: 100%;
467 525
       z-index: 100;
526
+      color: #fff;
527
+      pointer-events: none;
528
+      overflow: visible;
468 529
 
469 530
       li {
470 531
         position: absolute;
471
-        width: 25em;
532
+        width: 20em;
472 533
         z-index: 100;
473 534
         height: 4em;
474 535
         opacity: 1;
536
+        overflow: visible;
475 537
         background: linear-gradient(0deg, #ffffff26 0%, #ffffff00 100%);
476 538
         border-radius: 0.5em;
477 539
         padding: 0.5em;
478 540
         box-sizing: border-box;
479 541
         font-size: 0.9em;
480 542
         color: #CDF1FF;
543
+        pointer-events: auto;
481 544
 
482 545
         .nums {
483 546
           font-size: 1.3em;
@@ -518,6 +581,7 @@
518 581
           left: 0;
519 582
           top: -7em;
520 583
           padding-top: 11em;
584
+          overflow: visible;
521 585
 
522 586
 
523 587
           .hoverDiv {
@@ -525,10 +589,10 @@
525 589
           }
526 590
         }
527 591
 
528
-        .hoverR:hover {
529
-          .hoverDiv {
530
-            display: flex;
531
-          }
592
+        // hover 区域是绝对定位,直接用 li:hover 更稳定
593
+        &:hover .hoverDiv,
594
+        .hoverR:hover .hoverDiv {
595
+          display: flex;
532 596
         }
533 597
 
534 598
         .hoverDiv {

+ 175 - 138
src/pages/sial/view.jsx

@@ -35,7 +35,10 @@ import {
35 35
   timeService,
36 36
   numberService,
37 37
   checkToken,
38
-  updateTimeService
38
+  updateTimeService,
39
+  getBaseData,
40
+  getBaseYMDData,
41
+  getBaseDetailData
39 42
 } from "./api";
40 43
 import { getThousandNum, deleteCacheAndChangeUrl, timestampToTime, setWaterMark } from "@utils/util";
41 44
 import {
@@ -63,73 +66,39 @@ class Home extends Component {
63 66
       rightName: deleteCacheAndChangeUrl("right", false, true),
64 67
       imgMsgData: [
65 68
         {
66
-          "factoryCode": 3,
67
-          "production": 2685.99,
68
-          "inventory": 1340.99,
69
+          "factoryCode": 5,
70
+          "production": 0,
71
+          "inventory": 0,
69 72
           "total": 0,
70 73
           "totalName": "",
71 74
           "styles": {
72
-            "left": "32%",
73
-            "top": "32%"
75
+            "left": "14%",
76
+            "top": "50%"
74 77
           },
75
-          "cumulativeProduction": 2685.99,
76
-          "day": "83.38",
77
-          "mood": "2,685.99",
78
-          "year": "2,685.99",
78
+          "cumulativeProduction": 0,
79
+          "day": "0",
80
+          "mood": "0",
81
+          "year": "0",
79 82
           "rawMaterial": [
80
-            {
81
-              "prodCatgory": "产品-氯化锂",
82
-              "indexValue": "938.64"
83
-            },
84
-            {
85
-              "prodCatgory": "产品-碳酸锂",
86
-              "indexValue": "254.00"
87
-            },
88
-            {
89
-              "prodCatgory": "产品-氢氧化锂",
90
-              "indexValue": "148.35"
91
-            },
92
-            {
93
-              "prodCatgory": "产品-金属锂",
94
-              "indexValue": 0
95
-            },
96
-            {
97
-              "prodCatgory": "基地仓-锂辉石",
98
-              "indexValue": "8,184.37"
99
-            },
100
-            {
101
-              "prodCatgory": "重庆仓-锂辉石",
102
-              "indexValue": "2,093.59"
103
-            }
83
+
104 84
           ]
105 85
         },
106 86
         {
107
-          "factoryCode": 2,
108
-          "production": 2145,
109
-          "inventory": 343.31,
87
+          "factoryCode": 10,
88
+          "production": 0,
89
+          "inventory": 0,
110 90
           "total": 0,
111 91
           "totalName": "",
112 92
           "styles": {
113
-            "left": "5%",
114
-            "top": "45%"
93
+            "left": "0%",
94
+            "top": "83%"
115 95
           },
116
-          "cumulativeProduction": 2145,
117
-          "day": "70.00",
118
-          "mood": "2,145.00",
119
-          "year": "2,145.00",
96
+          "cumulativeProduction": 0,
97
+          "day": "0",
98
+          "mood": "0",
99
+          "year": "0",
120 100
           "rawMaterial": [
121
-            {
122
-              "prodCatgory": "产品-碳酸锂",
123
-              "indexValue": "343.31"
124
-            },
125
-            {
126
-              "prodCatgory": "基地仓-锂辉石",
127
-              "indexValue": "8,564.99"
128
-            },
129
-            {
130
-              "prodCatgory": "重庆仓-锂辉石",
131
-              "indexValue": "2,215.58"
132
-            }
101
+
133 102
           ]
134 103
         },
135 104
       ]
@@ -167,6 +136,7 @@ class Home extends Component {
167 136
     this.getUrl();
168 137
     this.getUrl2()
169 138
     this.getUrl3();
139
+    this.getBaseData();
170 140
     setTimeout(() => {
171 141
       this.videoStart();
172 142
     }, 200)
@@ -179,6 +149,68 @@ class Home extends Component {
179 149
     }, 4500)
180 150
 
181 151
   }
152
+  async getBaseData() {
153
+    await getBaseData().then(async ({ data = [], resultCode }) => {
154
+      if (+resultCode === 0) {
155
+        console.log('getBaseData', data)
156
+        const jiangsu = data?.find(item => item.factoryCode == 5);
157
+        const yanting = data?.find(item => item.factoryCode == 10);
158
+        const imgMsgData = this.state.imgMsgData.map((item) => ({ ...item }));
159
+        if (jiangsu) {
160
+          imgMsgData[0] = { ...imgMsgData[0], inventory: jiangsu.inventory, cumulativeProduction: jiangsu.production };
161
+        }
162
+        if (yanting) {
163
+          imgMsgData[1] = { ...imgMsgData[1], inventory: yanting.inventory, cumulativeProduction: yanting.production };
164
+        }
165
+        this.setState({ imgMsgData });
166
+        await this.getBaseYMDData();
167
+        await this.getBaseDetailData();
168
+      }
169
+    });
170
+  }
171
+  async getBaseYMDData() {
172
+    await getBaseYMDData().then(({ data = [], resultCode }) => {
173
+      if (+resultCode === 0) {
174
+        console.log('getBaseYMDData', data)
175
+        function getItems(num) {
176
+          const datas = data.filter(x => { return x.factoryCode == num });
177
+          const par = {
178
+            day: getThousandNum(datas?.filter(x => { return x.dateType == 1 })?.[0]?.indexValue || 0),
179
+            mood: getThousandNum(datas?.filter(x => { return x.dateType == 2 })?.[0]?.indexValue || 0),
180
+            year: getThousandNum(datas?.filter(x => { return x.dateType == 3 })?.[0]?.indexValue || 0),
181
+          }
182
+          return par
183
+        }
184
+        const jiangsu = getItems(5);
185
+        const yanting = getItems(10);
186
+        const imgMsgData = this.state.imgMsgData.map((item) => ({ ...item }));
187
+        if (jiangsu) {
188
+          imgMsgData[0] = { ...imgMsgData[0], ...jiangsu };
189
+        }
190
+        if (yanting) {
191
+          imgMsgData[1] = { ...imgMsgData[1], ...yanting };
192
+        }
193
+        this.setState({ imgMsgData });
194
+      }
195
+    });
196
+  }
197
+  async getBaseDetailData() {
198
+    await getBaseDetailData().then(({ data = [], resultCode }) => {
199
+      if (+resultCode === 0) {
200
+        console.log('getBaseDetailData', data)
201
+        const jiangsu = (data?.filter(item => item.factoryCode == 5)) || [];
202
+        const yanting = (data?.filter(item => item.factoryCode == 10)) || [];
203
+        const imgMsgData = this.state.imgMsgData.map((item) => ({ ...item }));
204
+        if (jiangsu.length) {
205
+          imgMsgData[0] = { ...imgMsgData[0], rawMaterial: jiangsu };
206
+        }
207
+        if (yanting.length) {
208
+          imgMsgData[1] = { ...imgMsgData[1], rawMaterial: yanting };
209
+        }
210
+        this.setState({ imgMsgData });
211
+      }
212
+    });
213
+  }
182 214
   videoStart() {
183 215
     /*     Chrome 浏览器的视频自动播放策略
184 216
         1.始终允许静音模式下自动播放
@@ -242,11 +274,13 @@ class Home extends Component {
242 274
           if (x.indexName == '产量计划完成率') {
243 275
             plannedCompletionData.push({
244 276
               name: x.factoryName,
277
+              factoryCode: x.factoryCode,
245 278
               value: x.indexValue ? Number((x.indexValue * 100).toFixed(2)) : 0,
246 279
             })
247 280
           } else {
248 281
             manHourData.push({
249 282
               name: x.factoryName,
283
+              factoryCode: x.factoryCode,
250 284
               // value: Number((x.indexValue * 100).toFixed(2)),
251 285
               value: Number(x.indexValue),
252 286
             })
@@ -296,13 +330,13 @@ class Home extends Component {
296 330
     this.timer = setInterval(() => {
297 331
 
298 332
       const { plannedCompletionData, plannedCompletionNum, manHourData, manHourNum } = this.state;
299
-      const yanting = plannedCompletionData.find(item => item.name == '盐亭');
300
-      const suzhou = plannedCompletionData.find(item => item.name == '苏州');
333
+      const yanting = plannedCompletionData.find(item => item.factoryCode == 10);
334
+      const jiangsu = plannedCompletionData.find(item => item.factoryCode == 5);
301 335
       //产量计划完成率
302 336
       var p1 = document.getElementById('plannedCompletionBox_yanting');
303
-      var p3 = document.getElementById('plannedCompletionBox_suzhou');
304
-      p1.innerHTML = '<div class="topMsg_box animate__animated animate__zoomIn"><span class="topMsg_number">' + getThousandNum(yanting?.value.toFixed(2)) + '</span><span class="topMsg_number_2" style={{fontSize: "0.75em",color: "#fff"}}>%</span><p class="topMsg_number_p">' + yanting?.name + '</p></div>';
305
-      p3.innerHTML = '<div class="topMsg_box animate__animated animate__zoomIn"><span class="topMsg_number">' + getThousandNum(suzhou?.value.toFixed(2)) + '</span><span class="topMsg_number_2" style={{fontSize: "0.75em",color: "#fff"}}>%</span><p class="topMsg_number_p">' + suzhou?.name + '</p></div>';
337
+      var p3 = document.getElementById('plannedCompletionBox_jiangsu');
338
+      p1.innerHTML = '<div class="topMsg_box animate__animated animate__zoomIn"><span class="topMsg_number">' + getThousandNum(yanting?.value.toFixed(2)) + '</span><span class="topMsg_number_2" style={{fontSize: "0.75em",color: "#fff"}}>%</span><p class="topMsg_number_p">' + '盐亭' + '</p></div>';
339
+      p3.innerHTML = '<div class="topMsg_box animate__animated animate__zoomIn"><span class="topMsg_number">' + getThousandNum(jiangsu?.value.toFixed(2)) + '</span><span class="topMsg_number_2" style={{fontSize: "0.75em",color: "#fff"}}>%</span><p class="topMsg_number_p">' + '江苏' + '</p></div>';
306 340
 
307 341
       // const num_ = plannedCompletionNum + 1 > plannedCompletionData.length ? 1 : plannedCompletionNum + 1;
308 342
       // this.setState({ plannedCompletionNum: num_, })
@@ -315,7 +349,7 @@ class Home extends Component {
315 349
     let { totalValue, yearDecline, yearSend, productInventory } = this.store.state;
316 350
     let { changGif, updateTime, changNun, leftName, rightName, imgMsgData } = this.state;
317 351
     return (
318
-      <div className={[styles.sial_home + ' home_box ']}>
352
+      <div className={styles.sial_home}>
319 353
         {/* 水印 */}
320 354
         {
321 355
           window.urlConfig && window.urlConfig.SHOW_WATERMARK && <div className={"shuiYin"} style={{ backgroundImage: `url(${$store.app.markSrc})`, backgroundRepeat: 'repeat' }}></div>
@@ -338,10 +372,85 @@ class Home extends Component {
338 372
 
339 373
         {/* 视频播放器 */}
340 374
         <MapView></MapView>
341
-        <div className={"video_box3 sial_video"}>
342
-          <video src={mpVideoGvc} playbackRate={0.5} autoplay="autoplay" loop="loop" class="video_box_2 animate__animated animate__fadeIn animate__delay-2s">
343
-          </video>
344
-          {/* <img src={require("@assets/imgs/dataVimg/gvcbg.png").default} alt="" class="video_box_2 center_box2 animate__animated animate__fadeIn animate__delay-2s" /> */}
375
+        <div className={"sial_video"}>
376
+          <div className="alls">
377
+            <video src={mpVideoGvc} playbackRate={0.5} autoplay="autoplay" loop="loop" class="video_box_2 animate__animated animate__fadeIn animate__delay-2s">
378
+            </video>
379
+            {/* <img src={require("@assets/imgs/dataVimg/gvcbg.png").default} alt="" class="video_box_2 center_box2 animate__animated animate__fadeIn animate__delay-2s" /> */}
380
+            <ul className="imgMsg2">
381
+              {
382
+                toJS(imgMsgData).map((item, index) => {
383
+                  if (!item) { return null }
384
+                  return (
385
+                    <li style={{ ...item?.styles }} class="animate__animated animate__bounceInUp animate__slower">
386
+                      {/* 矿产 */}
387
+                      {
388
+                        item.totalName && <p className="name">{item.totalName}</p>
389
+                      }
390
+                      {
391
+                        item.totalName && !changGif && <span class="shu1 nums">{item.total}</span>
392
+                      }
393
+                      {
394
+                        item.totalName && changGif && <span class="nums">{getThousandNum(item.total)}</span>
395
+                      }
396
+                      {
397
+                        item.totalName && <span className="sma">吨</span>
398
+                      }
399
+                      {/* 基地 */}
400
+                      {
401
+                        (item.cumulativeProduction !== null || item.showDetail) && <div className="hoverR">
402
+                          <div className="hoverDiv chanL">
403
+                            {/* <div style={{ width: "62%","textAlign":'right' }}> */}
404
+                            {
405
+                              item.cumulativeProduction !== null && <div style={{ width: "38%", textAlign: 'start' }}>
406
+                                <p className="title">
407
+                                  产量/吨
408
+                                </p>
409
+                                <span>日:{item.day}</span>
410
+                                <span>月:{item.mood}</span>
411
+                                <span>年:{item.year}</span>
412
+                              </div>
413
+                            }
414
+
415
+                            <div style={{ width: index == 5 ? "58%" : "57%", textAlign: 'start' }}>
416
+                              <p className="title">
417
+                                库存/吨
418
+                              </p>
419
+                              {
420
+                                get(item, "rawMaterial", []).map((ra, rai) => {
421
+                                  return <span key={rai}>{ra.prodCatgory}:{ra.indexValue}</span>
422
+                                })
423
+                              }
424
+                            </div>
425
+                          </div>
426
+                        </div>
427
+                      }
428
+                      {
429
+                        item.cumulativeProduction !== null && <div className="chanL text">
430
+                          <div>
431
+                            <p>累计产量</p>
432
+                            {
433
+                              !changGif ? <span class="nums shu1">{item.cumulativeProduction}</span> : <span class="nums">{getThousandNum(item.cumulativeProduction)}</span>
434
+                            }
435
+
436
+                            <span class="topMsg_number_2" style={{ fontSize: "0.75em", color: "#fff" }}>吨</span>
437
+                          </div>
438
+                          <div style={{ width: "60%" }}>
439
+                            <p>产品库存</p>
440
+                            {
441
+                              !changGif ? <span class="nums shu1">{item.inventory}</span> : <span class="nums">{getThousandNum(item.inventory)}</span>
442
+                            }
443
+                            <span class="topMsg_number_2" style={{ fontSize: "0.75em", color: "#fff" }}>吨</span>
444
+                          </div>
445
+
446
+                        </div>
447
+                      }
448
+                    </li>
449
+                  )
450
+                })
451
+              }
452
+            </ul>
453
+          </div>
345 454
 
346 455
         </div>
347 456
         <div className={[styles.home + " home cbHome"]}>
@@ -472,79 +581,7 @@ class Home extends Component {
472 581
                 </div>
473 582
               </div>
474 583
             </div>
475
-            <ul className="imgMsg2">
476
-              {
477
-                toJS(imgMsgData).map((item, index) => {
478
-                  if (!item) { return }
479
-                  return (
480
-                    <li style={{ ...item?.styles }} class="animate__animated animate__bounceInUp animate__slower">
481
-                      {/* 矿产 */}
482
-                      {
483
-                        item.totalName && <p className="name">{item.totalName}</p>
484
-                      }
485
-                      {
486
-                        item.totalName && !changGif && <span class="shu1 nums">{item.total}</span>
487
-                      }
488
-                      {
489
-                        item.totalName && changGif && <span class="nums">{getThousandNum(item.total)}</span>
490
-                      }
491
-                      {
492
-                        item.totalName && <span className="sma">吨</span>
493
-                      }
494
-                      {/* 基地 */}
495
-                      {
496
-                        (item.cumulativeProduction !== null || item.showDetail) && <div className="hoverR">
497
-                          <div className="hoverDiv chanL">
498
-                            {/* <div style={{ width: "62%","textAlign":'right' }}> */}
499
-                            {
500
-                              item.cumulativeProduction !== null && <div style={{ width: "38%", textAlign: 'start' }}>
501
-                                <p className="title">
502
-                                  产量/吨
503
-                                </p>
504
-                                <span>日:{item.day}</span>
505
-                                <span>月:{item.mood}</span>
506
-                                <span>年:{item.year}</span>
507
-                              </div>
508
-                            }
509 584
 
510
-                            <div style={{ width: index == 5 ? "58%" : "57%", textAlign: 'start' }}>
511
-                              <p className="title">
512
-                                库存/吨
513
-                              </p>
514
-                              {
515
-                                get(item, "rawMaterial", []).map((ra, rai) => {
516
-                                  return <span>{ra.prodCatgory}:{ra.indexValue}</span>
517
-                                })
518
-                              }
519
-                            </div>
520
-                          </div>
521
-                        </div>
522
-                      }
523
-                      {
524
-                        item.cumulativeProduction !== null && <div className="chanL text">
525
-                          <div>
526
-                            <p>累计产量</p>
527
-                            {
528
-                              !changGif ? <span class="nums shu1">{item.cumulativeProduction}</span> : <span class="nums">{getThousandNum(item.cumulativeProduction)}</span>
529
-                            }
530
-
531
-                            <span class="topMsg_number_2" style={{ fontSize: "0.75em", color: "#fff" }}>吨</span>
532
-                          </div>
533
-                          <div style={{ width: "60%" }}>
534
-                            <p>产品库存</p>
535
-                            {
536
-                              !changGif ? <span class="nums shu1">{item.inventory}</span> : <span class="nums">{getThousandNum(item.inventory)}</span>
537
-                            }
538
-                            <span class="topMsg_number_2" style={{ fontSize: "0.75em", color: "#fff" }}>吨</span>
539
-                          </div>
540
-
541
-                        </div>
542
-                      }
543
-                    </li>
544
-                  )
545
-                })
546
-              }
547
-            </ul>
548 585
             <div class="bottomContent3  animate__animated animate__fadeInUp animate__slower animate__delay-1s" style={{ bottom: '3%' }}>
549 586
               <div className="bottomContent">
550 587
                 <Tooltip placement="bottom" title={' ● 以更新日期为节点近30天的产量数据(含外加工)。'}>
@@ -566,7 +603,7 @@ class Home extends Component {
566 603
                 <Tooltip placement="bottom" title={' ● 本年度截止到更新日期累计产量的计划完成率。'}>
567 604
                   <p className="topMsg_title">产量计划完成率</p>
568 605
                 </Tooltip>
569
-                <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"} id="plannedCompletionBox_suzhou">
606
+                <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"} id="plannedCompletionBox_jiangsu">
570 607
                   <div className="topMsg_box">
571 608
                     <span className="topMsg_number" class="shu1"></span><span className="topMsg_number_2"></span>
572 609
                     <p className="topMsg_number_p"></p>

+ 1 - 1
src/pages/tlk/api.js

@@ -89,7 +89,7 @@ export function timeService(params) {
89 89
         "indexValue"
90 90
       ],
91 91
       "pageNum": 1,
92
-      "pageSize": 10,
92
+      "pageSize": 999,
93 93
       "useResultCache": false
94 94
     },
95 95
     headers: {

+ 1 - 1
src/pages/tqcDataVHome/api.js

@@ -89,7 +89,7 @@ export function timeService(params) {
89 89
         "indexValue"
90 90
       ],
91 91
       "pageNum": 1,
92
-      "pageSize": 10,
92
+      "pageSize": 999,
93 93
       "useResultCache": false
94 94
     },
95 95
     headers: {