瀏覽代碼

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

@dayan_hjm 2 年之前
父節點
當前提交
9e4cc31e73

二進制
src/assets/imgs/dataVImg/gongshi.png


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

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

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

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

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

@@ -2,7 +2,7 @@
2 2
  * @Author: dayan_hjm 库存金额
3 3
  * @Date: 2023-10-23 09:32:12 
4 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 303
           if (index >= 4) {
304 304
             index = 0;
305 305
           }
306
-        }, 3000);
306
+        }, 2000);
307 307
       }
308 308
       fun();
309 309
       setTimeout(function () {
310 310
         fun();
311
-      }, 5000);
311
+      }, 3000);
312 312
       var option = {
313 313
         // //标题
314 314
         // title: {

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