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

feat: token失效,就检验到token失效,直接跳转到登录页面 / 百万工时损耗去掉单位

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

+ 3 - 1
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-23 13:47:34
5
+ * @Last Modified time: 2023-12-06 14:07:28
6
  */
6
  */
7
 
7
 
8
 import React, { useState, useEffect, Component } from "react";
8
 import React, { useState, useEffect, Component } from "react";
@@ -51,6 +51,8 @@ class JrisDiction extends Component {
51
         this.props.history.replace(searchInstance?.type == 1 ? "/home/operation" : "/home/gvc");
51
         this.props.history.replace(searchInstance?.type == 1 ? "/home/operation" : "/home/gvc");
52
         // this.props.history.push('/')
52
         // this.props.history.push('/')
53
       } else {
53
       } else {
54
+        debugger
55
+        window.location = window.location.origin + '/transfer.html#/login';
54
         this.setState({ showMsg: true })
56
         this.setState({ showMsg: true })
55
       }
57
       }
56
     });
58
     });

+ 1 - 1
src/pages/tqcDataVHome/component/oneQualified.jsx

@@ -91,7 +91,7 @@ class BottomLineForSend extends Component {
91
           "top": "20%",
91
           "top": "20%",
92
           "right": "5%",
92
           "right": "5%",
93
           "bottom": "20",
93
           "bottom": "20",
94
-          "left": "7%",
94
+          "left": "10%",
95
         },
95
         },
96
         legend: {
96
         legend: {
97
           data: ['目标一次及格率', '实际一次及格率'],
97
           data: ['目标一次及格率', '实际一次及格率'],

+ 5 - 4
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-30 10:59:01
5
+ * @Last Modified time: 2023-12-06 14:00:52
6
  */
6
  */
7
 /*
7
 /*
8
  * @Author: dayan_hjm 
8
  * @Author: dayan_hjm 
@@ -158,7 +158,8 @@ class Home extends Component {
158
             } else {
158
             } else {
159
               manHourData.push({
159
               manHourData.push({
160
                 name: x.factoryName,
160
                 name: x.factoryName,
161
-                value: Number((x.indexValue * 100).toFixed(2)),
161
+                // value: Number((x.indexValue * 100).toFixed(2)),
162
+                value: Number(x.indexValue),
162
               })
163
               })
163
             }
164
             }
164
           }
165
           }
@@ -222,9 +223,9 @@ class Home extends Component {
222
       const datas_2 = manHourData[manHourNum - 1];
223
       const datas_2 = manHourData[manHourNum - 1];
223
       var res2;
224
       var res2;
224
       if (type) {
225
       if (type) {
225
-        res2 = '<div class="topMsg_box animate__animated animate__zoomIn"><span class="topMsg_number">' + getThousandNum(datas_2?.value.toFixed(2)) + '</span><span class="topMsg_number_2">%</span><p class="topMsg_number_p">' + datas_2.name + '</p></div>';
226
+        res2 = '<div class="topMsg_box animate__animated animate__zoomIn"><span class="topMsg_number">' + getThousandNum(datas_2?.value.toFixed(2)) + '</span><p class="topMsg_number_p">' + datas_2.name + '</p></div>';//<span class="topMsg_number_2">%</span>
226
       } else {
227
       } else {
227
-        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>';
228
+        res2 = '<div class="topMsg_box animate__animated animate__zoomIn"><span class="topMsg_number shu1">' + datas_2?.value.toFixed(2) + '</span><p class="topMsg_number_p">' + datas_2.name + '</p></div>';
228
       }
229
       }
229
       p2.innerHTML = res2;
230
       p2.innerHTML = res2;
230
 
231