Bladeren bron

feat: 悬停解析

@dayan_hjm 1 jaar geleden
bovenliggende
commit
db1857f78b
3 gewijzigde bestanden met toevoegingen van 28 en 18 verwijderingen
  1. 1 0
      src/App/index.less
  2. 5 3
      src/pages/tlk/style.less
  3. 22 15
      src/pages/tlk/view.jsx

+ 1 - 0
src/App/index.less

@@ -22,6 +22,7 @@
22 22
   background-color:#000000d9;
23 23
     border-radius: 2px;
24 24
     border: 1px solid #69FFDE;
25
+    white-space: pre-wrap
25 26
 }
26 27
 .app {
27 28
   color: #000;

+ 5 - 3
src/pages/tlk/style.less

@@ -21,6 +21,8 @@
21 21
       width: 100%;
22 22
       height: 16%!important;
23 23
       margin-top: 1em!important;
24
+      z-index: 999;
25
+      position: relative;
24 26
     }
25 27
     .imgMsg {
26 28
       width: 100%;
@@ -152,13 +154,13 @@
152 154
     .video_box video{
153 155
       width: 100%!important;
154 156
       height: 75%!important;
155
-      padding: 0 4% 11% 0!important;
157
+      padding: 0 4% 12% 0!important;
156 158
     }
157 159
     @media (min-height: 1000px) {//横屏大屏
158 160
       .video_box video{
159 161
         width: 100%!important;
160
-        height: 71%!important;
161
-        padding: 0 2% 14% 0!important;
162
+        height: 72%!important;
163
+        padding: 0 2% 13% 0!important;
162 164
       }
163 165
     }
164 166
 

+ 22 - 15
src/pages/tlk/view.jsx

@@ -2,7 +2,7 @@
2 2
  * @Author: dayan_hjm 
3 3
  * @Date: 2023-10-25 10:32:44 
4 4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2024-10-18 15:00:12
5
+ * @Last Modified time: 2024-10-28 10:38:17
6 6
  */
7 7
 /*
8 8
  * @Author: dayan_hjm 
@@ -296,7 +296,7 @@ class Home extends Component {
296 296
           <div className="leftContent">
297 297
             <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower animate__delay-2s">
298 298
               <div className="bottomContent bigDivPd">
299
-                <Tooltip placement="bottom" title={' ● 近六个月的产量和发货量的对比数据(含外加工),当月的数据计算至更新日期。'}>
299
+                <Tooltip placement="bottom" title={` ● 近六个月的产量和预算产量的对比,当月的数据计算累计至更新日期。 \n● Comparison of actual and planned production for the last 6 months, with month-to-date data for current month`}>
300 300
                   <p className="topMsg_title">产品月度产量 <span className="topMsg_tips">/ Monthly Net Production</span></p>
301 301
                 </Tooltip>
302 302
                 <div className="topMsg_content">
@@ -307,7 +307,7 @@ class Home extends Component {
307 307
 
308 308
             <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower animate__delay-2s">
309 309
               <div className="bottomContent bigDivPd">
310
-                <Tooltip placement="bottom" title={' ● 近六个月的产量和发货量的对比数据(含外加工),当月的数据计算至更新日期。'}>
310
+                <Tooltip placement="bottom" title={` ● 近六个月的发货量,当月的数据计算累计至更新日期。\n● Rolling 6 months export volume and month-to-date data for current month`}>
311 311
                   <p className="topMsg_title">产品发货量 <span className="topMsg_tips">/ Lithium Shipment</span></p>
312 312
                 </Tooltip>
313 313
                 <div className="topMsg_content">
@@ -320,9 +320,8 @@ class Home extends Component {
320 320
             <div class="center_box2 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
321 321
               <div className="center_box">
322 322
                 <Tooltip placement="bottom" title={<p className="titpeP">
323
-                  <p>● 截止更新日期的主产品库存金额,计算:</p>
324
-                  <img src={require("@assets/imgs/dataVimg/gongshi2.png").default} alt="" style={{ width: "1.3em", margin: " -0.3em 0.5em 0 0em" }} />
325
-                  物料1库存数*物料1移动平均价+物料2*物料2移动平均价+…
323
+                  <p>● 截止到更新日期氢氧化锂产品库存量。</p>
324
+                  Month-to-date Lithium Hydroxide Monohydrate (LHM) inventory
326 325
                 </p>}>
327 326
                   <p className="topMsg_title" style={{ position: "relative", zIndex: 999999 }}>产品库存 <span className="topMsg_tips">/ Lithium Inventory</span></p>
328 327
                 </Tooltip>
@@ -349,7 +348,7 @@ class Home extends Component {
349 348
                           changNun && <span className="topMsg_number">{getThousandNum(yearDecline)}</span>
350 349
                         }
351 350
                         <p className="topMsg_line"></p>
352
-                        <Tooltip placement="bottom" title={' ● 本年度截止更新日期的主产品(含外加工)的产量合计'}>
351
+                        <Tooltip placement="bottom" title={' ● 本年度截止更新日期氢氧化锂产品的发货量合计。\n● Year-to-date total LHM shipments'}>
353 352
                           <span className="topMsg_tip">年度发货量/吨</span>
354 353
                           <span className="topMsg_tip topMsg_tip2">Annual Shipments / t</span>
355 354
                         </Tooltip>
@@ -364,7 +363,7 @@ class Home extends Component {
364 363
                           changNun && <span className="topMsg_number">{getThousandNum(productInventory)}</span>
365 364
                         }
366 365
                         <p className="topMsg_line"></p>
367
-                        <Tooltip placement="bottom" title={' ● 本年度截止更新日期的主产品(含外加工)的发货量合计。'}>
366
+                        <Tooltip placement="bottom" title={' ● 本年度截止更新日期的氢氧化锂产品的产量合计。\n● Year-to-date total LHM production'}>
368 367
                           <span className="topMsg_tip">年度产量/吨</span>
369 368
                           <span className="topMsg_tip topMsg_tip2">Annual Production / t</span>
370 369
                         </Tooltip>
@@ -378,7 +377,7 @@ class Home extends Component {
378 377
                         changNun && <span className="topMsg_number">{getThousandNum(yearSend, true)}%</span>
379 378
                       }
380 379
                       <p className="topMsg_line"></p>
381
-                      <Tooltip placement="bottom" title={' ● 截止更新日期的主产品库存数量。'}>
380
+                      <Tooltip placement="bottom" title={' ● 本年度截止更新日期的氢氧化锂产品累计一次合格率。\n● Year-to-date battery grade LHM production rate excluding retreatment'}>
382 381
                         <span className="topMsg_tip">年度产品一次合格率</span>
383 382
                         <span className="topMsg_tip topMsg_tip2">Annual First Pass Yield</span>
384 383
                       </Tooltip>
@@ -389,7 +388,7 @@ class Home extends Component {
389 388
             </div>
390 389
             <div class="bottomContent3 animate__animated animate__fadeInUp animate__slower animate__delay-1s">
391 390
               <div className="bottomContent">
392
-                <Tooltip placement="bottom" title={' ● 以更新日期为节点近30天的产量数据(含外加工)。'}>
391
+                <Tooltip placement="bottom" title={` ● 日产量:以更新日期为节点近90天的产量曲线;日产量趋势:以对应日期为节点前5天的平均产量所生成的趋势线;平均产量:近90天日产量的平均值。\n● Daily production: Rolling 90 days daily production | Daily production trend: Rolling 5 days average production    |Average production: Rolling 90 days average production`}>
393 392
                   <p className="topMsg_title">近90天产量 <span className="topMsg_tips">/ Net Production in the last 90 days</span></p>
394 393
                 </Tooltip>
395 394
                 <div className="topMsg_content">
@@ -407,7 +406,12 @@ class Home extends Component {
407 406
                       {
408 407
                         index != 4 && <div>
409 408
                           {
410
-                            item.totalName && <p className="name">{item.totalName}</p>
409
+                            item.totalName && index == 0 && <Tooltip placement="bottom" title={' ● 本年度截止更新日期TLK基地接收的锂辉石数量合计。\n●  Year-to-date spodumeme received at TLK site'}>
410
+                            <p className="name">{item.totalName}</p>                            </Tooltip>
411
+
412
+                          }
413
+                          {
414
+                            item.totalName && index != 0 && <p className="name">{item.totalName}</p>
411 415
                           }
412 416
                           {
413 417
                             item.totalName && !changGif && <span class="shu1 nums">{item.total}</span>
@@ -437,7 +441,10 @@ class Home extends Component {
437 441
                             item.total && <span className="sma">t</span>
438 442
                           }
439 443
                           {
440
-                            <p className="name">锂辉石库存总量</p>
444
+                            <Tooltip placement="bottom" title={' ● 截止更新日期TLK基地(含暂存仓)的锂辉石库存总量。\n●  Year-to-date spodumene inventory at all TLK sites (including temporary storage)'}>
445
+                              <p className="name" style={{    position: 'relative',zIndex: 999}}>锂辉石库存总量</p>
446
+                            </Tooltip>
447
+
441 448
                           }
442 449
                           {
443 450
                             <p className="name" style={{marginTop:'-0.5em'}}>Spodumene Inventory</p>
@@ -460,7 +467,7 @@ class Home extends Component {
460 467
           <div className="rightContent">
461 468
             <div class="topMsg2 animate__animated animate__fadeInDown animate__slower">
462 469
               <div className="topMsg bigDivPd">
463
-                <Tooltip placement="bottom" title={' ● 近一年的百万工时损工率。'}>
470
+                <Tooltip placement="bottom" title={' ● 年度产量累计计划完成率:本年度截止到更新日期产量的累计计划完成率;年度锂辉石计划完成率:本年度截止到更新日期锂辉石消耗量累计计划完成率。\n●  Production plan completion rate: Year to date completion rate of production plan | Spodumene consumption plan completion rate: Year to date completion rate of spodumene consumption plan'}>
464 471
                   <p className="topMsg_title" style={{marginBottom:'8px'}}>计划完成率 <span className="topMsg_tips">/ Plan Completion Rate</span></p>
465 472
                 </Tooltip>
466 473
                 <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"} id="manHourBox">
@@ -484,7 +491,7 @@ class Home extends Component {
484 491
 
485 492
             <div class="topMsg_22 animate__animated animate__fadeInDown animate__slower">
486 493
               <div className="topMsg_2">
487
-                <Tooltip placement="bottom" title={' ● 近六个月的主产品一次合格率,当月的数据计算至更新日期。'}>
494
+                <Tooltip placement="bottom" title={' ● 近六个月的锂辉石消耗量和锂辉石预算消耗量的对比,当月的数据计算累计至更新日期。\n ● Comparison of the last 6 months of actual and planned spodumene consumption, and month-to-date data for current month'}>
488 495
                   <p className="topMsg_title">锂辉石消耗量 <span className="topMsg_tips">/ Spodumene Consumption</span></p>
489 496
                 </Tooltip>
490 497
 
@@ -496,7 +503,7 @@ class Home extends Component {
496 503
 
497 504
             <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower  animate__delay-1s">
498 505
               <div className="bottomContent bigDivPd">
499
-                <Tooltip placement="bottom" title={' ● 近三年的碳排放总量、碳排放强度数据'}>
506
+                <Tooltip placement="bottom" title={' ● 近六个月的氢氧化锂产品一次合格率曲线,当月的数据计算至更新日期。\n ● Month-to-date battery grade LHM production rate excluding retreatment'}>
500 507
                   <p className="topMsg_title">产品一次合格率 <span className="topMsg_tips">/ First Pass Yield</span></p>
501 508
                 </Tooltip>
502 509
                 <div className="topMsg_content">