@dayan_hjm 1 年間 前
コミット
e47cbbed67
共有4 個のファイルを変更した12 個の追加6 個の削除を含む
  1. 4 2
      src/pages/tlk/component/leftMenoyView.jsx
  2. 5 1
      src/pages/tlk/component/moodSendView.jsx
  3. 2 2
      src/pages/tlk/component/rightBottomView.jsx
  4. 1 1
      src/pages/tlk/view.jsx

+ 4 - 2
src/pages/tlk/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: 2024-10-23 16:39:46
5
+ * @Last Modified time: 2024-10-23 17:25:46
6 6
  */
7 7
 
8 8
 
@@ -278,6 +278,7 @@ class LeftMenoyView extends Component {
278 278
 
279 279
   render() {
280 280
     const { total } = this.state;
281
+    const { changNun } = this.props;
281 282
     return (
282 283
       <div className={["eacharView cbLeftMenoyView"]}>
283 284
         <div id="echarts6_box">
@@ -290,7 +291,8 @@ class LeftMenoyView extends Component {
290 291
           <div id="echarts61"></div>
291 292
           <div className="text_total">
292 293
             <p>
293
-              <span className="topMsg_number" class="shu1">{total}</span>
294
+              {changNun && <span className="topMsg_number">{getThousandNum(Number(total))}</span>}
295
+              {!changNun && <span className="topMsg_number" class="shu1">{Number(total)}</span>}
294 296
               <span className="topMsg_number_2">t</span>
295 297
             </p>
296 298
             <span className="topMsg_number_3">总库存</span>

+ 5 - 1
src/pages/tlk/component/moodSendView.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: 2024-10-17 11:05:49
5
+ * @Last Modified time: 2024-10-24 11:03:08
6 6
  */
7 7
 
8 8
 
@@ -13,6 +13,7 @@ import mod from '../mod';
13 13
 import {
14 14
   twoService,
15 15
 } from "../api";
16
+import { getThousandNum } from "@utils/util";
16 17
 
17 18
 @withRouter
18 19
 
@@ -78,6 +79,9 @@ class MoodSendView extends Component {
78 79
             fontSize:10,
79 80
             color:"#ededed"
80 81
           },
82
+          valueFormatter: (value) => {
83
+            return getThousandNum(Number(value)) 
84
+          },
81 85
           backgroundColor:"#0000008a"
82 86
         },
83 87
         xAxis: [

+ 2 - 2
src/pages/tlk/component/rightBottomView.jsx

@@ -2,7 +2,7 @@
2 2
  * @Author: dayan_hjm 近30天产量
3 3
  * @Date: 2023-10-23 09:32:12 
4 4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2024-10-23 17:03:23
5
+ * @Last Modified time: 2024-10-24 11:11:25
6 6
  */
7 7
 
8 8
 
@@ -66,7 +66,7 @@ class RightBottomView extends Component {
66 66
             color: "#ededed"
67 67
           },
68 68
           valueFormatter: (value) => {
69
-            return value + '%';
69
+            return Number(value).toFixed(2) + '%';
70 70
           },
71 71
           backgroundColor: "#0000008a",
72 72
         },

+ 1 - 1
src/pages/tlk/view.jsx

@@ -327,7 +327,7 @@ class Home extends Component {
327 327
                   <p className="topMsg_title" style={{ position: "relative", zIndex: 999999 }}>产品库存 <span className="topMsg_tips">/ Lithium Inventory</span></p>
328 328
                 </Tooltip>
329 329
                 <div className="topMsg_content">
330
-                  <LeftMenoyView></LeftMenoyView>
330
+                  <LeftMenoyView changNun={changNun}></LeftMenoyView>
331 331
                 </div>
332 332
               </div>
333 333
             </div>