xujunjie 1 gadu atpakaļ
vecāks
revīzija
2d1854e4e9

+ 1 - 1
src/models/eqSelfInspection.js

@@ -30,7 +30,7 @@ export default {
         // 查询数据报表详情
         yield put({
           type: 'getPatrolDataById',
-          payload: { routeId: response.data[0].Id },
+          payload: { routeId: response.data[0].Id, ...payload },
           callback: callback,
         });
       }

+ 2 - 2
src/pages/SmartReport/index.js

@@ -398,8 +398,8 @@ const SmartReport = () => {
                 <ThreeContent
                   data={[
                     { label: '自检次数', value: self_inspection_task },
-                    // { label: '异常次数', value: self_inspection_abnormal_task },
-                    { label: '正常次数', value: self_inspection_normal_task },
+                    { label: '异常次数', value: self_inspection_abnormal_task },
+                    // { label: '正常次数', value: self_inspection_normal_task },
                   ]}
                 />
                 <div className={styles.paddingContent}>

+ 2 - 1
src/pages/SmartReport/index.less

@@ -222,7 +222,8 @@
   .ValueSmall {
     .value;
     text-align: center;
-    width: 2rem;
+    min-width: 2rem;
+    font-size: 0.4rem;
     height: 1.2rem;
     line-height: 1.2rem;
   }