@dayan_hjm před 2 roky
rodič
revize
ac9a106c38

+ 45 - 11
src/assets/css/styleTemplate.less

@@ -2,7 +2,7 @@
2
  * @Author: dayan_hjm 茶百道主题样式
2
  * @Author: dayan_hjm 茶百道主题样式
3
  * @Date: 2022-10-27 10:56:37 
3
  * @Date: 2022-10-27 10:56:37 
4
  * @Last Modified by: dayan_hjm
4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2023-11-07 17:33:48
5
+ * @Last Modified time: 2023-11-08 17:15:55
6
  */
6
  */
7
 
7
 
8
 @import url("../../themes/themes.less");
8
 @import url("../../themes/themes.less");
@@ -481,7 +481,7 @@
481
                 height: 80%;
481
                 height: 80%;
482
                 color: #fff;
482
                 color: #fff;
483
                 position: absolute;
483
                 position: absolute;
484
-                right: 0%;
484
+                left: 48%;
485
                 top: 0.5em;
485
                 top: 0.5em;
486
 
486
 
487
                 li {
487
                 li {
@@ -490,6 +490,12 @@
490
                   font-size: 0.9em;
490
                   font-size: 0.9em;
491
                 }
491
                 }
492
               }
492
               }
493
+              @media (min-height: 900px) {
494
+                .name_ul{
495
+                  top:1.5em
496
+                }
497
+              }
498
+
493
 
499
 
494
               #echarts4,
500
               #echarts4,
495
               #echarts6_box {
501
               #echarts6_box {
@@ -497,17 +503,39 @@
497
                 height: 90%;
503
                 height: 90%;
498
               }
504
               }
499
 
505
 
506
+              #echarts4 {
507
+                width: 55%;
508
+              }
509
+
500
               #echarts6_box {
510
               #echarts6_box {
501
                 margin-top: -2em;
511
                 margin-top: -2em;
502
                 position: relative;
512
                 position: relative;
503
 
513
 
504
                 // background: url(../imgs/dataVimg/guanghuan.png) no-repeat left 43% / 102% 120%;
514
                 // background: url(../imgs/dataVimg/guanghuan.png) no-repeat left 43% / 102% 120%;
505
                 .guanghuan {
515
                 .guanghuan {
506
-                  width: 102%;
507
-                  height: 120%;
516
+                  width: 100%;
517
+                  /* height: 187px; */
508
                   position: absolute;
518
                   position: absolute;
509
                   left: 0;
519
                   left: 0;
510
-                  top: -1em;
520
+                  top: 0;
521
+                }
522
+
523
+                @media (max-height: 768px) {
524
+                  .guanghuan {
525
+                    top: -10%;
526
+                  }
527
+                }
528
+
529
+                @media (min-height: 900px) {
530
+                  .guanghuan {
531
+                    top: -7%;
532
+                  }
533
+                }
534
+
535
+                @media (min-height: 1000px) {
536
+                  .guanghuan {
537
+                    top: 0%;
538
+                  }
511
                 }
539
                 }
512
 
540
 
513
                 #echarts6 {
541
                 #echarts6 {
@@ -540,7 +568,7 @@
540
             justify-content: center;
568
             justify-content: center;
541
 
569
 
542
             #chartmain {
570
             #chartmain {
543
-              width: 80%;
571
+              width: 90%;
544
               height: 100%;
572
               height: 100%;
545
             }
573
             }
546
 
574
 
@@ -838,7 +866,7 @@
838
         }
866
         }
839
 
867
 
840
         .bottomContent3 {
868
         .bottomContent3 {
841
-          height: 30%;
869
+          height: 23%;
842
           width: 100%;
870
           width: 100%;
843
           position: absolute;
871
           position: absolute;
844
           left: 0;
872
           left: 0;
@@ -862,8 +890,8 @@
862
             }
890
             }
863
 
891
 
864
             #echarts2 {
892
             #echarts2 {
865
-              width: 80%;
866
-              height: 75%;
893
+              width: 95%;
894
+              height: 90%;
867
             }
895
             }
868
           }
896
           }
869
         }
897
         }
@@ -873,6 +901,12 @@
873
           background: url(../imgs/dataVimg/toplineB.png) no-repeat 0 bottom / 100% 11%;
901
           background: url(../imgs/dataVimg/toplineB.png) no-repeat 0 bottom / 100% 11%;
874
           height: 78%;
902
           height: 78%;
875
         }
903
         }
904
+        @media (min-height: 900px) {
905
+          .center_li{
906
+            height: 60%;
907
+          }
908
+        }
909
+
876
 
910
 
877
         .right_li {
911
         .right_li {
878
           background: url(../imgs/dataVimg/toplineV.png) no-repeat right top / 1px 100%;
912
           background: url(../imgs/dataVimg/toplineV.png) no-repeat right top / 1px 100%;
@@ -1092,7 +1126,7 @@
1092
   }
1126
   }
1093
 
1127
 
1094
   #echarts8 {
1128
   #echarts8 {
1095
-    width: 50%;
1129
+    width: 53%;
1096
     height: 80%;
1130
     height: 80%;
1097
     box-sizing: border-box;
1131
     box-sizing: border-box;
1098
     background: url(../imgs/dataVimg/toplineV.png) no-repeat 26% 50% / 1px 70%;
1132
     background: url(../imgs/dataVimg/toplineV.png) no-repeat 26% 50% / 1px 70%;
@@ -1117,7 +1151,7 @@
1117
       display: block;
1151
       display: block;
1118
       position: absolute;
1152
       position: absolute;
1119
       color: rgba(205, 241, 255, 1);
1153
       color: rgba(205, 241, 255, 1);
1120
-      left: 29%;
1154
+      left: 37%;
1121
       top: 1.2em;
1155
       top: 1.2em;
1122
       text-align: right;
1156
       text-align: right;
1123
     }
1157
     }

+ 5 - 3
src/pages/jurisDiction/view.jsx

@@ -2,7 +2,7 @@
2
  * @Author: dayan_hjm
2
  * @Author: dayan_hjm
3
  * @Date: 2023-11-07 14:21:24 
3
  * @Date: 2023-11-07 14:21:24 
4
  * @Last Modified by: dayan_hjm
4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2023-11-08 09:57:24
5
+ * @Last Modified time: 2023-11-08 17:18:11
6
  */
6
  */
7
 
7
 
8
 import React, { useState, useEffect, Component } from "react";
8
 import React, { useState, useEffect, Component } from "react";
@@ -31,7 +31,9 @@ class JrisDiction extends Component {
31
 
31
 
32
   componentWillMount() { 
32
   componentWillMount() { 
33
     let searchInstance = queryToObj(); // url查询参数对象化
33
     let searchInstance = queryToObj(); // url查询参数对象化
34
-    if(searchInstance?.token){
34
+    if(window.location.host.indexOf("localhost") > -1){
35
+      this.props.history.replace("/home/operation");
36
+    }else if(searchInstance?.token){
35
       this.getUrl(searchInstance?.token);
37
       this.getUrl(searchInstance?.token);
36
     }else{
38
     }else{
37
       this.setState({ showMsg: true })
39
       this.setState({ showMsg: true })
@@ -63,7 +65,7 @@ class JrisDiction extends Component {
63
         {
65
         {
64
           showMsg && <div className="center">
66
           showMsg && <div className="center">
65
             <img src={require("@assets/imgs/dataVImg/wuQuanXuan.png").default} alt="" />
67
             <img src={require("@assets/imgs/dataVImg/wuQuanXuan.png").default} alt="" />
66
-            <h1>您暂无权限访问</h1>
68
+            <h1>抱歉!您暂无权限访问</h1>
67
             <span>请联系管理员开通权限</span>
69
             <span>请联系管理员开通权限</span>
68
           </div>
70
           </div>
69
         }
71
         }

+ 9 - 10
src/pages/tqcDataVHome/component/bottomLineForSend.jsx

@@ -2,7 +2,7 @@
2
  * @Author: dayan_hjm 近30天产量
2
  * @Author: dayan_hjm 近30天产量
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-05 11:09:51
5
+ * @Last Modified time: 2023-11-08 16:43:21
6
  */
6
  */
7
 
7
 
8
 
8
 
@@ -67,9 +67,9 @@ class BottomLineForSend extends Component {
67
           // formatter:'{c}' ,
67
           // formatter:'{c}' ,
68
         },
68
         },
69
         grid: {
69
         grid: {
70
-          left: '0',
71
-          top: '5%',
72
-          right: '10%',
70
+          left: '8%',
71
+          top: '15%',
72
+          right: '8%',
73
           bottom: '10',
73
           bottom: '10',
74
           containLabel: true
74
           containLabel: true
75
         },
75
         },
@@ -90,9 +90,8 @@ class BottomLineForSend extends Component {
90
           boundaryGap: false,
90
           boundaryGap: false,
91
           axisLabel: {
91
           axisLabel: {
92
             textStyle: {
92
             textStyle: {
93
-              color: "rgba(255,255,255,.6)",
94
-              fontSize: 12,
95
-
93
+                color: '#7d7d7d',
94
+                fontSize: 12
96
             },
95
             },
97
           },
96
           },
98
           axisLine: {
97
           axisLine: {
@@ -128,13 +127,13 @@ class BottomLineForSend extends Component {
128
           axisLine: {
127
           axisLine: {
129
             lineStyle: {
128
             lineStyle: {
130
               color: 'rgba(255,255,255,.1)'
129
               color: 'rgba(255,255,255,.1)'
131
-            }
130
+            },
132
           },
131
           },
133
           axisLabel: {
132
           axisLabel: {
134
             formatter: "{value} 吨",
133
             formatter: "{value} 吨",
135
             textStyle: {
134
             textStyle: {
136
-              color: "rgba(255,255,255,.6)",
137
-              fontSize: 14,
135
+              color: '#7d7d7d',
136
+              fontSize: 13
138
             },
137
             },
139
           },
138
           },
140
 
139
 

+ 13 - 6
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-07 17:18:38
5
+ * @Last Modified time: 2023-11-08 15:41:54
6
  */
6
  */
7
 
7
 
8
 
8
 
@@ -10,6 +10,7 @@ import React, { useState, useEffect, Component } from "react";
10
 import styles from "../style.less";
10
 import styles from "../style.less";
11
 import { useHistory, useLocation, withRouter } from "react-router-dom";
11
 import { useHistory, useLocation, withRouter } from "react-router-dom";
12
 import mod from '../mod';
12
 import mod from '../mod';
13
+import { getArrMax } from "@utils/util";
13
 import {
14
 import {
14
   momeyService,
15
   momeyService,
15
 } from "../api";
16
 } from "../api";
@@ -22,6 +23,7 @@ class LeftMenoyView extends Component {
22
     super(props, context);
23
     super(props, context);
23
     this.store = mod;
24
     this.store = mod;
24
     this.state = {
25
     this.state = {
26
+      max1:[],
25
       year:["碳酸锂","氧化纳",'金属锂',"氢氧化钠"],
27
       year:["碳酸锂","氧化纳",'金属锂',"氢氧化钠"],
26
       missionsIntensity_arr:[
28
       missionsIntensity_arr:[
27
         {value:0,name:"碳酸锂"},
29
         {value:0,name:"碳酸锂"},
@@ -132,14 +134,19 @@ class LeftMenoyView extends Component {
132
     await momeyService().then(({ data = [], resultCode }) => {
134
     await momeyService().then(({ data = [], resultCode }) => {
133
       
135
       
134
       if (+resultCode === 0) {
136
       if (+resultCode === 0) {
135
-        let year = [], missionsIntensity_arr = [];
137
+        let year = [], missionsIntensity_arr = [],max1=[],num=[];
136
         data.map((x, i) => {
138
         data.map((x, i) => {
139
+          num.push(x.indexValue)
137
           year.push(x.prodCatgory);
140
           year.push(x.prodCatgory);
138
           data_style[i].value = x.indexValue;
141
           data_style[i].value = x.indexValue;
139
           data_style[i].name = x.prodCatgory;
142
           data_style[i].name = x.prodCatgory;
140
           missionsIntensity_arr.push(data_style[i])
143
           missionsIntensity_arr.push(data_style[i])
141
         });
144
         });
142
-        this.setState({ year, missionsIntensity_arr });
145
+        const max_1 = getArrMax(num);
146
+        for (let index = 0; index < data.length; index++) {
147
+          max1.unshift(max_1/0.7)
148
+        }
149
+        this.setState({ year, missionsIntensity_arr,max1 });
143
         this.setData();
150
         this.setData();
144
         this.setData2();
151
         this.setData2();
145
       }
152
       }
@@ -207,7 +214,7 @@ class LeftMenoyView extends Component {
207
               },
214
               },
208
               textStyle: {
215
               textStyle: {
209
                 color: 'rgba(255,255,255,1)',
216
                 color: 'rgba(255,255,255,1)',
210
-                fontSize: '12',
217
+                fontSize: '10',
211
               }
218
               }
212
             }
219
             }
213
           },
220
           },
@@ -240,7 +247,7 @@ class LeftMenoyView extends Component {
240
           type: 'bar',
247
           type: 'bar',
241
           yAxisIndex: 1,
248
           yAxisIndex: 1,
242
           barGap: '-100%',
249
           barGap: '-100%',
243
-          data: [99.5, 99.5, 99.5, 99.5],
250
+          data: this.state.max1,
244
           barWidth: 15,
251
           barWidth: 15,
245
           itemStyle: {
252
           itemStyle: {
246
             normal: {
253
             normal: {
@@ -295,7 +302,7 @@ class LeftMenoyView extends Component {
295
           if (index > 5) {
302
           if (index > 5) {
296
             index = 0;
303
             index = 0;
297
           }
304
           }
298
-        }, 2000);
305
+        }, 1800);
299
       }
306
       }
300
       fun();
307
       fun();
301
       setTimeout(function () {
308
       setTimeout(function () {

+ 12 - 4
src/pages/tqcDataVHome/component/moodSendView.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-05 11:09:21
5
+ * @Last Modified time: 2023-11-08 15:24:45
6
  */
6
  */
7
 
7
 
8
 
8
 
@@ -58,6 +58,14 @@ class MoodSendView extends Component {
58
         dataShadow.push(yMax);
58
         dataShadow.push(yMax);
59
       }
59
       }
60
       var option = {
60
       var option = {
61
+        grid: {
62
+          left: '2%',
63
+          top: '18%',
64
+          right: '0%',
65
+          bottom: '8%',
66
+          containLabel: true
67
+        },
68
+
61
         tooltip: {
69
         tooltip: {
62
           trigger: 'axis',
70
           trigger: 'axis',
63
           axisPointer: {
71
           axisPointer: {
@@ -65,9 +73,9 @@ class MoodSendView extends Component {
65
           },
73
           },
66
           borderColor:"rgba(105, 255, 222, 0.5)",
74
           borderColor:"rgba(105, 255, 222, 0.5)",
67
           borderWidth:2,
75
           borderWidth:2,
68
-          padding:5,
76
+          padding:5, 
69
           textStyle:{
77
           textStyle:{
70
-            fontSize:12,
78
+            fontSize:10,
71
             color:"#ededed"
79
             color:"#ededed"
72
           },
80
           },
73
           backgroundColor:"#0000008a"
81
           backgroundColor:"#0000008a"
@@ -122,7 +130,7 @@ class MoodSendView extends Component {
122
               interval: 0,
130
               interval: 0,
123
               textStyle: {
131
               textStyle: {
124
                 color: '#7d7d7d',
132
                 color: '#7d7d7d',
125
-                fontSize: 12
133
+                fontSize: 10
126
 
134
 
127
               },
135
               },
128
             },
136
             },

+ 8 - 7
src/pages/tqcDataVHome/component/oneQualified.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-05 11:13:22
5
+ * @Last Modified time: 2023-11-08 16:45:11
6
  */
6
  */
7
 
7
 
8
 
8
 
@@ -59,7 +59,7 @@ class BottomLineForSend extends Component {
59
           axisPointer: { type: 'shadow' },
59
           axisPointer: { type: 'shadow' },
60
           borderColor:"rgba(105, 255, 222, 0.5)",
60
           borderColor:"rgba(105, 255, 222, 0.5)",
61
           borderWidth:2,
61
           borderWidth:2,
62
-          padding:5,
62
+          padding:2,
63
           textStyle:{
63
           textStyle:{
64
             fontSize:12,
64
             fontSize:12,
65
             color:"#ededed"
65
             color:"#ededed"
@@ -68,17 +68,18 @@ class BottomLineForSend extends Component {
68
           backgroundColor:"#0000008a"
68
           backgroundColor:"#0000008a"
69
         }, "grid": {
69
         }, "grid": {
70
           "top": "20%",
70
           "top": "20%",
71
-          "right": "15%",
71
+          "right": "5%",
72
           "bottom": "20",
72
           "bottom": "20",
73
-          "left": "15%",
73
+          "left": "7%",
74
         },
74
         },
75
         legend: {
75
         legend: {
76
           data: ['目标一次及格率', '实际一次及格率'],
76
           data: ['目标一次及格率', '实际一次及格率'],
77
           right: 'center',
77
           right: 'center',
78
-          padding: [10, 0, 0, 15],
78
+          padding: [0, 0, 0, 5],
79
           top: 0,
79
           top: 0,
80
           textStyle: {
80
           textStyle: {
81
-            color: "#fff"
81
+            color: "#fff",
82
+            fontSize:10,
82
           },
83
           },
83
           itemWidth: 12,
84
           itemWidth: 12,
84
           itemHeight: 5,
85
           itemHeight: 5,
@@ -89,7 +90,7 @@ class BottomLineForSend extends Component {
89
             data: this.state.year,
90
             data: this.state.year,
90
             axisLine: { lineStyle: { color: "rgba(255,255,255,.1)" } },
91
             axisLine: { lineStyle: { color: "rgba(255,255,255,.1)" } },
91
             axisLabel: {
92
             axisLabel: {
92
-              textStyle: { color: "rgba(255,255,255,.7)", fontSize: '12', },
93
+              textStyle: { color: "'#7d7d7d'", fontSize: '12', },
93
             },
94
             },
94
             splitLine:{
95
             splitLine:{
95
               show:true,
96
               show:true,

+ 12 - 12
src/pages/tqcDataVHome/component/rightBottomView.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-02 15:51:27
5
+ * @Last Modified time: 2023-11-08 16:05:47
6
  */
6
  */
7
 
7
 
8
 
8
 
@@ -68,7 +68,7 @@ class RightBottomView extends Component {
68
       var option = {
68
       var option = {
69
 
69
 
70
         grid: {
70
         grid: {
71
-          left: '5%',
71
+          left: '3%',
72
           top: '15%',
72
           top: '15%',
73
           right: '5%',
73
           right: '5%',
74
           bottom: '0%',
74
           bottom: '0%',
@@ -81,7 +81,7 @@ class RightBottomView extends Component {
81
           axisTick: 'none',
81
           axisTick: 'none',
82
           axisLine: 'none',
82
           axisLine: 'none',
83
           axisLabel: {
83
           axisLabel: {
84
-            padding:[0,25,0,0],
84
+            padding:[0,22,0,0],
85
             textStyle: {
85
             textStyle: {
86
               color: '#69FFDE',
86
               color: '#69FFDE',
87
               fontSize: '16',
87
               fontSize: '16',
@@ -125,27 +125,27 @@ class RightBottomView extends Component {
125
           label: {
125
           label: {
126
             normal: {
126
             normal: {
127
               show: true,
127
               show: true,
128
-              position: 'insideBottomLeft',
128
+              position: 'insideLeft',
129
               formatter: function (param) {
129
               formatter: function (param) {
130
                 return param.value;
130
                 return param.value;
131
               },
131
               },
132
               textStyle: {
132
               textStyle: {
133
                 color: 'rgba(255,255,255,1)',
133
                 color: 'rgba(255,255,255,1)',
134
                 fontSize: '15',
134
                 fontSize: '15',
135
-                padding:[5,0,0,5]
135
+                padding:[5,5,0,5]
136
               }
136
               }
137
             }
137
             }
138
           },
138
           },
139
-          barWidth: 23,
139
+          barWidth: 24,
140
           itemStyle: {
140
           itemStyle: {
141
             normal: {
141
             normal: {
142
               color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [
142
               color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [
143
-                { offset: 0, color: 'rgba(255, 206, 0, 1)' },
144
-                { offset: 0.7, color: '#ffd01d94' },
145
-                { offset: 1, color: '#ffd01d94' },
143
+                { offset: 0, color: 'rgb(255 242 72)' },
144
+                { offset: 0.7, color: '#ffe06a99' },
145
+                { offset: 1, color: '#ffe06a99' },
146
               ]),
146
               ]),
147
               barBorderRadius: 15,
147
               barBorderRadius: 15,
148
-              borderColor: "rgba(255, 206, 0, 1)",
148
+              borderColor: "rgb(255 242 72)",
149
               borderWidth: 1
149
               borderWidth: 1
150
 
150
 
151
             },
151
             },
@@ -157,7 +157,7 @@ class RightBottomView extends Component {
157
           yAxisIndex: 1,
157
           yAxisIndex: 1,
158
           barGap: '-100%',
158
           barGap: '-100%',
159
           data: this.state.max2,
159
           data: this.state.max2,
160
-          barWidth: 23,
160
+          barWidth: 24,
161
           itemStyle: {
161
           itemStyle: {
162
             normal: {
162
             normal: {
163
               color: '#ffffff24',
163
               color: '#ffffff24',
@@ -243,7 +243,7 @@ class RightBottomView extends Component {
243
               textStyle: {
243
               textStyle: {
244
                 color: 'rgba(255,255,255,1)',
244
                 color: 'rgba(255,255,255,1)',
245
                 fontSize: '15',
245
                 fontSize: '15',
246
-                padding:[5,5,0,0]
246
+                padding:[5,5,0,5]
247
               }
247
               }
248
             }
248
             }
249
           },
249
           },

+ 20 - 26
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-08 09:56:35
5
+ * @Last Modified time: 2023-11-08 17:23:19
6
  */
6
  */
7
 /*
7
 /*
8
  * @Author: dayan_hjm 
8
  * @Author: dayan_hjm 
@@ -43,24 +43,18 @@ class Home extends Component {
43
       updateTime: '',
43
       updateTime: '',
44
       changGif: false,
44
       changGif: false,
45
       plannedCompletionData: [
45
       plannedCompletionData: [
46
-        { name: '射洪', value: 78.1 },
47
-        { name: '广东', value: 12 },
48
-        { name: '珠海', value: 65 },
49
-        { name: '潮汕', value: 45 },
50
       ],
46
       ],
51
       plannedCompletionNum: 1,
47
       plannedCompletionNum: 1,
52
       manHourData: [
48
       manHourData: [
53
-        { name: '射洪', value: 0.2 },
54
-        { name: '广东', value: 33 },
55
-        { name: '珠海', value: 65 },
56
-        { name: '潮汕', value: 65 },
57
       ],
49
       ],
58
       manHourNum: 1,
50
       manHourNum: 1,
59
     };
51
     };
60
     this.timer = null //定时器,用于检测同步状态
52
     this.timer = null //定时器,用于检测同步状态
61
   }
53
   }
62
   componentWillMount() {
54
   componentWillMount() {
63
-    this.getToken()
55
+    if(window.location.host.indexOf("localhost") == -1){
56
+      this.getToken()
57
+    }
64
   }
58
   }
65
 
59
 
66
   async getToken() {
60
   async getToken() {
@@ -177,7 +171,7 @@ class Home extends Component {
177
             yearDecline = x.indexValue
171
             yearDecline = x.indexValue
178
           } else if (x.indexName == '产品库存') {
172
           } else if (x.indexName == '产品库存') {
179
             yearSend = x.indexValue
173
             yearSend = x.indexValue
180
-          } else if (x.indexName == '年度量') {
174
+          } else if (x.indexName == '年度发货量') {
181
             productInventory = x.indexValue
175
             productInventory = x.indexValue
182
           }
176
           }
183
         });
177
         });
@@ -208,13 +202,13 @@ class Home extends Component {
208
       //产量计划完成率
202
       //产量计划完成率
209
       var p1 = document.getElementById('plannedCompletionBox');
203
       var p1 = document.getElementById('plannedCompletionBox');
210
       const datas_ = plannedCompletionData[plannedCompletionNum - 1];
204
       const datas_ = plannedCompletionData[plannedCompletionNum - 1];
211
-      var res = '<div class="topMsg_box animate__animated animate__zoomIn"><span class="topMsg_number shu1">' + datas_.value + '</span><span class="topMsg_number_2" style={{fontSize: "0.75em",color: "#fff"}}>%</span><p class="topMsg_number_p">' + datas_.name + '</p></div>';
205
+      var res = '<div class="topMsg_box animate__animated animate__zoomIn"><span class="topMsg_number shu1">' + datas_?.value.toFixed(2) + '</span><span class="topMsg_number_2" style={{fontSize: "0.75em",color: "#fff"}}>%</span><p class="topMsg_number_p">' + datas_.name + '</p></div>';
212
       p1.innerHTML = res;
206
       p1.innerHTML = res;
213
 
207
 
214
       //百万工时损工率
208
       //百万工时损工率
215
       var p2 = document.getElementById('manHourBox');
209
       var p2 = document.getElementById('manHourBox');
216
       const datas_2 = manHourData[manHourNum - 1];
210
       const datas_2 = manHourData[manHourNum - 1];
217
-      var res2 = '<div class="topMsg_box animate__animated animate__zoomIn"><span class="topMsg_number shu1">' + datas_2.value + '</span><span class="topMsg_number_2">%</span><p class="topMsg_number_p">' + datas_2.name + '</p></div>';
211
+      var res2 = '<div class="topMsg_box animate__animated animate__zoomIn"><span class="topMsg_number shu1">' + datas_2?.value.toFixed(2) + '</span><span class="topMsg_number_2">%</span><p class="topMsg_number_p">' + datas_2.name + '</p></div>';
218
       p2.innerHTML = res2;
212
       p2.innerHTML = res2;
219
 
213
 
220
       const num_ = plannedCompletionNum + 1 >= plannedCompletionData.length ? 1 : plannedCompletionNum + 1;
214
       const num_ = plannedCompletionNum + 1 >= plannedCompletionData.length ? 1 : plannedCompletionNum + 1;
@@ -225,7 +219,7 @@ class Home extends Component {
225
 
219
 
226
   render() {
220
   render() {
227
     const stores = this.store.state;
221
     const stores = this.store.state;
228
-    const { totalValue, yearDecline, yearSend, productInventory } = this.store.state;
222
+    let { totalValue, yearDecline, yearSend, productInventory } = this.store.state;
229
     let { changGif, updateTime, } = this.state;
223
     let { changGif, updateTime, } = this.state;
230
     return (
224
     return (
231
       <div className={"home_box"}>
225
       <div className={"home_box"}>
@@ -239,7 +233,7 @@ class Home extends Component {
239
 
233
 
240
             <div class="topMsg2 animate__animated animate__fadeInDown animate__slower">
234
             <div class="topMsg2 animate__animated animate__fadeInDown animate__slower">
241
               <div className="topMsg">
235
               <div className="topMsg">
242
-                <Tooltip placement="bottom" title={' ● 从1月至m-1月的产值累计,产值计算方式:销售单价*产量'}>
236
+                <Tooltip placement="bottom" title={' ● 从1月至m-1月的产值累计,产值计算方式:销售单价*产量'}>
243
                   <p className="topMsg_title">总产值</p>
237
                   <p className="topMsg_title">总产值</p>
244
                 </Tooltip>
238
                 </Tooltip>
245
                 <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"}>
239
                 <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"}>
@@ -250,7 +244,7 @@ class Home extends Component {
250
 
244
 
251
             <div class="center_box2 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
245
             <div class="center_box2 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
252
               <div className="center_box">
246
               <div className="center_box">
253
-                <Tooltip placement="bottom" title={' ● 即为 t-1天的库存金额,百分比即为产品库存金额占总体金额的百分比'}>
247
+                <Tooltip placement="bottom" title={' ● 即为 更新数据ETL日期当天的库存金额,百分比即为产品库存金额占总体金额的百分比'}>
254
                   <p className="topMsg_title" style={{ position: "relative", zIndex: 999999 }}>库存金额</p>
248
                   <p className="topMsg_title" style={{ position: "relative", zIndex: 999999 }}>库存金额</p>
255
                 </Tooltip>
249
                 </Tooltip>
256
                 <div className="topMsg_content">
250
                 <div className="topMsg_content">
@@ -261,7 +255,7 @@ class Home extends Component {
261
 
255
 
262
             <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
256
             <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
263
               <div className="bottomContent bigDivPd">
257
               <div className="bottomContent bigDivPd">
264
-                <Tooltip placement="bottom" title={' ● m-6至m月的产量和发货量的对比数据(含外加工)当月的数据计算至t-1天'}>
258
+                <Tooltip placement="bottom" title={' ● m-6至m月的产量和发货量的对比数据(含外加工)当月的数据计算至更新数据ETL日期当天'}>
265
                   <p className="topMsg_title">月度产量/发货量</p>
259
                   <p className="topMsg_title">月度产量/发货量</p>
266
                 </Tooltip>
260
                 </Tooltip>
267
                 <div className="topMsg_content">
261
                 <div className="topMsg_content">
@@ -281,24 +275,24 @@ class Home extends Component {
281
                       <div className="right_li">
275
                       <div className="right_li">
282
                         <span className="topMsg_number" class="shu1">{yearDecline}</span>
276
                         <span className="topMsg_number" class="shu1">{yearDecline}</span>
283
                         <p className="topMsg_line"></p>
277
                         <p className="topMsg_line"></p>
284
-                        <Tooltip placement="bottom" title={' ● 即为从1/1至t-1天的产量之和(含外加工)'}>
278
+                        <Tooltip placement="bottom" title={' ● 即为从当年1月1日至更新数据ETL日期当天的产量之和(含外加工)'}>
285
                           <span className="topMsg_tip">年度产量/吨</span>
279
                           <span className="topMsg_tip">年度产量/吨</span>
286
                         </Tooltip>
280
                         </Tooltip>
287
                       </div>
281
                       </div>
288
                     </div>
282
                     </div>
289
                     <div className="center_li">
283
                     <div className="center_li">
290
                       <div className="right_li">
284
                       <div className="right_li">
291
-                        <span className="topMsg_number" class="shu1">{yearSend}</span>
285
+                        <span className="topMsg_number" class="shu1">{productInventory}</span>
292
                         <p className="topMsg_line"></p>
286
                         <p className="topMsg_line"></p>
293
-                        <Tooltip placement="bottom" title={' ● 即为从当年1/1至t-1天的发货量之和(含外加工)'}>
287
+                        <Tooltip placement="bottom" title={' ● 即为从当年1月1日至更新数据ETL日期当天的发货量之和(含外加工)'}>
294
                           <span className="topMsg_tip">年度发货量/吨</span>
288
                           <span className="topMsg_tip">年度发货量/吨</span>
295
                         </Tooltip>
289
                         </Tooltip>
296
                       </div>
290
                       </div>
297
                     </div>
291
                     </div>
298
                     <div className="center_li">
292
                     <div className="center_li">
299
-                      <span className="topMsg_number" class="shu1">{productInventory}</span>
293
+                      <span className="topMsg_number" class="shu1">{yearSend}</span>
300
                       <p className="topMsg_line"></p>
294
                       <p className="topMsg_line"></p>
301
-                      <Tooltip placement="bottom" title={' ● t-1天的产品库存数量(含外加工)'}>
295
+                      <Tooltip placement="bottom" title={' ● 更新数据ETL日期当天的产品库存数量(含外加工)'}>
302
                         <span className="topMsg_tip">产品库存/吨</span>
296
                         <span className="topMsg_tip">产品库存/吨</span>
303
                       </Tooltip>
297
                       </Tooltip>
304
                     </div>
298
                     </div>
@@ -308,7 +302,7 @@ class Home extends Component {
308
             </div>
302
             </div>
309
             <div class="bottomContent3 animate__animated animate__fadeInUp animate__slower">
303
             <div class="bottomContent3 animate__animated animate__fadeInUp animate__slower">
310
               <div className="bottomContent">
304
               <div className="bottomContent">
311
-                <Tooltip placement="bottom" title={' ● t-31 至t-1 天的产量(含外加工)'}>
305
+                <Tooltip placement="bottom" title={' ● t-31 至更新数据ETL日期当天的日产量(含外加工)'}>
312
                   <p className="topMsg_title">近30天产量</p>
306
                   <p className="topMsg_title">近30天产量</p>
313
                 </Tooltip>
307
                 </Tooltip>
314
                 <div className="topMsg_content">
308
                 <div className="topMsg_content">
@@ -323,7 +317,7 @@ class Home extends Component {
323
           <div className="rightContent">
317
           <div className="rightContent">
324
             <div class="topMsg2 animate__animated animate__fadeInDown animate__slower">
318
             <div class="topMsg2 animate__animated animate__fadeInDown animate__slower">
325
               <div className="topMsg bigDivPd">
319
               <div className="topMsg bigDivPd">
326
-                <Tooltip placement="bottom" title={' ● 即为m-1月的百万工时损工率'}>
320
+                <Tooltip placement="bottom" title={' ● 即为1月至m-1月的百万工时损工率'}>
327
                   <p className="topMsg_title">百万工时损工率</p>
321
                   <p className="topMsg_title">百万工时损工率</p>
328
                 </Tooltip>
322
                 </Tooltip>
329
                 <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"} id="manHourBox">
323
                 <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"} id="manHourBox">
@@ -337,7 +331,7 @@ class Home extends Component {
337
 
331
 
338
             <div class="topMsg_22 animate__animated animate__fadeInDown animate__slower">
332
             <div class="topMsg_22 animate__animated animate__fadeInDown animate__slower">
339
               <div className="topMsg_2">
333
               <div className="topMsg_2">
340
-                <Tooltip placement="bottom" title={' ● m-6至m月\n近六个月的产品一次合格率和目标值合格率;\n当月的数据计算至t-1天'}>
334
+                <Tooltip placement="bottom" title={' ● m-6至m月近六个月的产品一次合格率和目标值合格率;当月的数据计算至更新数据ETL日期当天'}>
341
                   <p className="topMsg_title">一次合格率</p>
335
                   <p className="topMsg_title">一次合格率</p>
342
                 </Tooltip>
336
                 </Tooltip>
343
 
337
 
@@ -373,7 +367,7 @@ class Home extends Component {
373
             </div>
367
             </div>
374
           </div>
368
           </div>
375
           <div className="bottom_box">
369
           <div className="bottom_box">
376
-            <p style={{ color: "#6a818d" }}>
370
+            <p style={{ color: "#6a818d",lineHeight:'2px' }}>
377
               更新时间 : {updateTime}
371
               更新时间 : {updateTime}
378
             </p>
372
             </p>
379
           </div>
373
           </div>