From cf8591fc51976ae1534e9c6fae01967f64f0abcf Mon Sep 17 00:00:00 2001
From: wyw <571921741@qq.com>
Date: Wed, 27 May 2026 10:58:06 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E6=95=99=E8=82=B2=E4=B8=8E?=
=?UTF-8?q?=E5=9F=B9=E8=AE=AD=E7=BB=9F=E8=AE=A1=E5=88=86=E6=9E=90=E6=8A=A5?=
=?UTF-8?q?=E8=A1=A8=20=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../CustomPages/BI/BI011TrainSafeAnalysis.js | 25 +++++++++++++------
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/components/CustomPages/BI/BI011TrainSafeAnalysis.js b/src/components/CustomPages/BI/BI011TrainSafeAnalysis.js
index ef09691..84b1838 100644
--- a/src/components/CustomPages/BI/BI011TrainSafeAnalysis.js
+++ b/src/components/CustomPages/BI/BI011TrainSafeAnalysis.js
@@ -51,7 +51,7 @@ class TrainSafeAnalysis extends React.Component {
dataIndex: "NAME",
},
{
- width: "270px",
+ width: "230px",
title: "培训起止时间",
dataIndex: "TIMERANGE",
},
@@ -67,9 +67,7 @@ class TrainSafeAnalysis extends React.Component {
title: "参训率",
render: (text, record) => (
- {((record.ACTUAL_TRAINER / record.SHOULD_TRAINER) * 100).toFixed(
- 0
- ) + "%"}
+ {((record.ACTUAL_TRAINER / record.SHOULD_TRAINER) * 100).toFixed(1) + "%"}
),
},
@@ -81,15 +79,26 @@ class TrainSafeAnalysis extends React.Component {
title: "通过率",
dataIndex: "PASS_RATE",
render: (text, record) => (
- {(record.PASS_RATE * 100).toFixed(0) + "%"}
+ {(record.PASS_RATE * 100).toFixed(1) + "%"}
),
},
{
title: "效果评估(优良率)",
dataIndex: "EFFORT_RATE",
- render: (text, record) => (
- {(record.EFFORT_RATE * 1).toFixed(0) + "%"}
- ),
+ // render: (text, record) => (
+ // {(record.EFFORT_RATE * 1).toFixed(0) + "%"}
+ // ),
+ render: (text, record) => {
+ if(record.EFFORT_RATE=='-'){
+ return (
+ {record.EFFORT_RATE}
+ );
+ }else{
+ return (
+ {(record.EFFORT_RATE * 1).toFixed(1) + "%"}
+ );
+ }
+ },
},
];
this.loadData(this.state.searchMonth);