Просмотр исходного кода

feat: 文字提示替换 / 库存金额转圈速度调整

@dayan_hjm лет назад: 2
Родитель
Сommit
9e4cc31e73

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


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

@@ -280,7 +280,7 @@
280
               box-sizing: border-box;
280
               box-sizing: border-box;
281
               margin-top: 0.1em;
281
               margin-top: 0.1em;
282
               font-size: 0.8em;
282
               font-size: 0.8em;
283
-              padding: 0.2em 1em 0;
283
+              padding: 0.2em 0em 0 1em;
284
               color: #d7d7d7;
284
               color: #d7d7d7;
285
               align-items: flex-start;
285
               align-items: flex-start;
286
               height: auto;
286
               height: auto;

+ 2 - 2
src/pages/gvc/view.jsx

@@ -2,7 +2,7 @@
2
  * @Author: dayan_hjm  产供销价值链
2
  * @Author: dayan_hjm  产供销价值链
3
  * @Date: 2023-11-10 10:19:34 
3
  * @Date: 2023-11-10 10:19:34 
4
  * @Last Modified by: dayan_hjm
4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2023-11-29 10:50:47
5
+ * @Last Modified time: 2023-11-29 11:20:08
6
  */
6
  */
7
 
7
 
8
 import React, { useState, useEffect, Component } from "react";
8
 import React, { useState, useEffect, Component } from "react";
@@ -432,7 +432,7 @@ class Gvc extends Component {
432
                                 <span>月:{item.mood}</span>
432
                                 <span>月:{item.mood}</span>
433
                                 <span>年:{item.year}</span>
433
                                 <span>年:{item.year}</span>
434
                               </div>
434
                               </div>
435
-                              <div style={{ width: index == 5 ? "58%" : "52%" }}>
435
+                              <div style={{ width: index == 5 ? "58%" : "55%" }}>
436
                                 <p className="title">
436
                                 <p className="title">
437
                                   库存/吨
437
                                   库存/吨
438
                                 </p>
438
                                 </p>

+ 3 - 3
src/pages/tqcDataVHome/component/leftMenoyView.jsx

@@ -2,7 +2,7 @@
2
  * @Author: dayan_hjm 库存金额
2
  * @Author: dayan_hjm 库存金额
3
  * @Date: 2023-10-23 09:32:12 
3
  * @Date: 2023-10-23 09:32:12 
4
  * @Last Modified by: dayan_hjm
4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2023-11-28 10:43:30
5
+ * @Last Modified time: 2023-11-30 11:04:38
6
  */
6
  */
7
 
7
 
8
 
8
 
@@ -303,12 +303,12 @@ class LeftMenoyView extends Component {
303
           if (index >= 4) {
303
           if (index >= 4) {
304
             index = 0;
304
             index = 0;
305
           }
305
           }
306
-        }, 3000);
306
+        }, 2000);
307
       }
307
       }
308
       fun();
308
       fun();
309
       setTimeout(function () {
309
       setTimeout(function () {
310
         fun();
310
         fun();
311
-      }, 5000);
311
+      }, 3000);
312
       var option = {
312
       var option = {
313
         // //标题
313
         // //标题
314
         // title: {
314
         // title: {

+ 21 - 13
src/pages/tqcDataVHome/view.jsx

@@ -2,7 +2,7 @@
2
  * @Author: dayan_hjm 
2
  * @Author: dayan_hjm 
3
  * @Date: 2023-10-25 10:32:44 
3
  * @Date: 2023-10-25 10:32:44 
4
  * @Last Modified by: dayan_hjm
4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2023-11-28 10:41:00
5
+ * @Last Modified time: 2023-11-30 10:59:01
6
  */
6
  */
7
 /*
7
 /*
8
  * @Author: dayan_hjm 
8
  * @Author: dayan_hjm 
@@ -250,7 +250,11 @@ class Home extends Component {
250
 
250
 
251
             <div class="topMsg2 animate__animated animate__fadeInDown animate__slower">
251
             <div class="topMsg2 animate__animated animate__fadeInDown animate__slower">
252
               <div className="topMsg">
252
               <div className="topMsg">
253
-                <Tooltip placement="bottom" title={' ● 从1月至m-1月的产值累计,产值计算方式:∑销售单价*产量'}>
253
+                <Tooltip placement="bottom" title={<p className="titpeP">
254
+                  ● 本年度截止到最新结账月的主产品的产值合计,计算:
255
+                  <img src={require("@assets/imgs/dataVimg/gongshi.png").default} alt="" style={{width: "1.5em",margin:" 0 0.5em 0 2em"}}/>
256
+                  产品1月产量∗产品1月平均销售单价+产品2…
257
+                </p>}>
254
                   <p className="topMsg_title">总产值</p>
258
                   <p className="topMsg_title">总产值</p>
255
                 </Tooltip>
259
                 </Tooltip>
256
                 <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"}>
260
                 <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"}>
@@ -267,8 +271,12 @@ class Home extends Component {
267
 
271
 
268
             <div class="center_box2 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
272
             <div class="center_box2 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
269
               <div className="center_box">
273
               <div className="center_box">
270
-                <Tooltip placement="bottom" title={' ● 即为 更新数据ETL日期当天的库存金额,百分比即为产品库存金额占总体金额的百分比'}>
271
-                  <p className="topMsg_title" style={{ position: "relative", zIndex: 999999 }}>库存金额</p>
274
+                <Tooltip placement="bottom" title={<p className="titpeP">
275
+                  <p>● 截止更新日期的主产品库存金额,计算:</p>
276
+                  <img src={require("@assets/imgs/dataVimg/gongshi.png").default} alt="" style={{width: "1.5em",margin:" 0 0.5em 0 0em"}}/>
277
+                  产品1月产量∗产品1月平均销售单价+产品2…
278
+                </p>}>
279
+                  <p className="topMsg_title" style={{ position: "relative", zIndex: 999999 }}>产品库存金额</p>
272
                 </Tooltip>
280
                 </Tooltip>
273
                 <div className="topMsg_content">
281
                 <div className="topMsg_content">
274
                   <LeftMenoyView></LeftMenoyView>
282
                   <LeftMenoyView></LeftMenoyView>
@@ -278,7 +286,7 @@ class Home extends Component {
278
 
286
 
279
             <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
287
             <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
280
               <div className="bottomContent bigDivPd">
288
               <div className="bottomContent bigDivPd">
281
-                <Tooltip placement="bottom" title={' ● m-6至m月的产量和发货量的对比数据(含外加工)当月的数据计算至更新数据ETL日期当天'}>
289
+                <Tooltip placement="bottom" title={' ● 近六个月的产量和发货量的对比数据(含外加工),当月的数据计算至更新日期。'}>
282
                   <p className="topMsg_title">月度产量/发货量</p>
290
                   <p className="topMsg_title">月度产量/发货量</p>
283
                 </Tooltip>
291
                 </Tooltip>
284
                 <div className="topMsg_content">
292
                 <div className="topMsg_content">
@@ -303,7 +311,7 @@ class Home extends Component {
303
                           changNun && <span className="topMsg_number">{getThousandNum(yearDecline)}</span>
311
                           changNun && <span className="topMsg_number">{getThousandNum(yearDecline)}</span>
304
                         }
312
                         }
305
                         <p className="topMsg_line"></p>
313
                         <p className="topMsg_line"></p>
306
-                        <Tooltip placement="bottom" title={' ● 即为从当年1月1日至更新数据ETL日期当天的产量之和(含外加工)'}>
314
+                        <Tooltip placement="bottom" title={' ● 本年度截止更新日期的主产品(含外加工)的产量合计。'}>
307
                           <span className="topMsg_tip">年度产量/吨</span>
315
                           <span className="topMsg_tip">年度产量/吨</span>
308
                         </Tooltip>
316
                         </Tooltip>
309
                       </div>
317
                       </div>
@@ -317,7 +325,7 @@ class Home extends Component {
317
                           changNun && <span className="topMsg_number">{getThousandNum(productInventory)}</span>
325
                           changNun && <span className="topMsg_number">{getThousandNum(productInventory)}</span>
318
                         }
326
                         }
319
                         <p className="topMsg_line"></p>
327
                         <p className="topMsg_line"></p>
320
-                        <Tooltip placement="bottom" title={' ● 即为从当年1月1日至更新数据ETL日期当天的发货量之和(含外加工)'}>
328
+                        <Tooltip placement="bottom" title={' ● 本年度截止更新日期的主产品(含外加工)的发货量合计。'}>
321
                           <span className="topMsg_tip">年度发货量/吨</span>
329
                           <span className="topMsg_tip">年度发货量/吨</span>
322
                         </Tooltip>
330
                         </Tooltip>
323
                       </div>
331
                       </div>
@@ -330,7 +338,7 @@ class Home extends Component {
330
                         changNun && <span className="topMsg_number">{getThousandNum(yearSend)}</span>
338
                         changNun && <span className="topMsg_number">{getThousandNum(yearSend)}</span>
331
                       }
339
                       }
332
                       <p className="topMsg_line"></p>
340
                       <p className="topMsg_line"></p>
333
-                      <Tooltip placement="bottom" title={' ● 更新数据ETL日期当天的产品库存数量(含外加工)'}>
341
+                      <Tooltip placement="bottom" title={' ● 截止更新日期的主产品库存数量。'}>
334
                         <span className="topMsg_tip">产品库存/吨</span>
342
                         <span className="topMsg_tip">产品库存/吨</span>
335
                       </Tooltip>
343
                       </Tooltip>
336
                     </div>
344
                     </div>
@@ -340,7 +348,7 @@ class Home extends Component {
340
             </div>
348
             </div>
341
             <div class="bottomContent3 animate__animated animate__fadeInUp animate__slower">
349
             <div class="bottomContent3 animate__animated animate__fadeInUp animate__slower">
342
               <div className="bottomContent">
350
               <div className="bottomContent">
343
-                <Tooltip placement="bottom" title={' ● t-31 至更新数据ETL日期当天的日产量(含外加工)'}>
351
+                <Tooltip placement="bottom" title={' ● 以更新日期为节点近30天的产量数据(含外加工)。'}>
344
                   <p className="topMsg_title">近30天产量</p>
352
                   <p className="topMsg_title">近30天产量</p>
345
                 </Tooltip>
353
                 </Tooltip>
346
                 <div className="topMsg_content">
354
                 <div className="topMsg_content">
@@ -355,7 +363,7 @@ class Home extends Component {
355
           <div className="rightContent">
363
           <div className="rightContent">
356
             <div class="topMsg2 animate__animated animate__fadeInDown animate__slower">
364
             <div class="topMsg2 animate__animated animate__fadeInDown animate__slower">
357
               <div className="topMsg bigDivPd">
365
               <div className="topMsg bigDivPd">
358
-                <Tooltip placement="bottom" title={' ● 即为1月至m-1月的百万工时损工率'}>
366
+                <Tooltip placement="bottom" title={' ● 近一年的百万工时损工率。'}>
359
                   <p className="topMsg_title">百万工时损工率</p>
367
                   <p className="topMsg_title">百万工时损工率</p>
360
                 </Tooltip>
368
                 </Tooltip>
361
                 <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"} id="manHourBox">
369
                 <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"} id="manHourBox">
@@ -370,7 +378,7 @@ class Home extends Component {
370
 
378
 
371
             <div class="topMsg_22 animate__animated animate__fadeInDown animate__slower">
379
             <div class="topMsg_22 animate__animated animate__fadeInDown animate__slower">
372
               <div className="topMsg_2">
380
               <div className="topMsg_2">
373
-                <Tooltip placement="bottom" title={' ● m-6至m月近六个月的产品一次合格率和目标值合格率;当月的数据计算至更新数据ETL日期当天'}>
381
+                <Tooltip placement="bottom" title={' ● 近六个月的主产品一次合格率,当月的数据计算至更新日期。'}>
374
                   <p className="topMsg_title">一次合格率</p>
382
                   <p className="topMsg_title">一次合格率</p>
375
                 </Tooltip>
383
                 </Tooltip>
376
 
384
 
@@ -382,7 +390,7 @@ class Home extends Component {
382
 
390
 
383
             <div class="topMsg_33 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
391
             <div class="topMsg_33 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
384
               <div className="topMsg_3">
392
               <div className="topMsg_3">
385
-                <Tooltip placement="bottom" title={' ● 即为从当年1月至m-1月的累计产量计划完成率;'}>
393
+                <Tooltip placement="bottom" title={' ● 本年度截止到更新日期累计产量的计划完成率。'}>
386
                   <p className="topMsg_title">产量计划完成率</p>
394
                   <p className="topMsg_title">产量计划完成率</p>
387
                 </Tooltip>
395
                 </Tooltip>
388
                 <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"} id="plannedCompletionBox">
396
                 <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"} id="plannedCompletionBox">
@@ -396,7 +404,7 @@ class Home extends Component {
396
 
404
 
397
             <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower  animate__delay-1s">
405
             <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower  animate__delay-1s">
398
               <div className="bottomContent bigDivPd">
406
               <div className="bottomContent bigDivPd">
399
-                <Tooltip placement="bottom" title={' ● 近三年的碳排放强度、碳排放总量数据'}>
407
+                <Tooltip placement="bottom" title={' ● 近三年的碳排放总量、碳排放强度数据'}>
400
                   <p className="topMsg_title">碳排放</p>
408
                   <p className="topMsg_title">碳排放</p>
401
                 </Tooltip>
409
                 </Tooltip>
402
                 <div className="topMsg_content">
410
                 <div className="topMsg_content">