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);