导入 公共页面 只显示最新附件

培训记录 参与的人 默认合格
This commit is contained in:
wyw 2026-03-27 10:26:45 +08:00
parent 500866cc40
commit 7af1386e80
3 changed files with 13 additions and 1 deletions

View File

@ -109,7 +109,9 @@ class SC022Import extends React.Component {
// message.error(`${info.file.name} 导入错误`); // message.error(`${info.file.name} 导入错误`);
} }
} }
if (info.fileList && info.fileList.length > 1) {
info.fileList.splice(0, info.fileList.length - 1)
}
that.setState({ that.setState({
updateLoadFileList: info.fileList, updateLoadFileList: info.fileList,
data: info, data: info,

View File

@ -116,6 +116,9 @@ class SC022ImportData extends React.Component {
} }
} }
if (info.fileList && info.fileList.length > 1) {
info.fileList.splice(0, info.fileList.length - 1)
}
that.setState({ that.setState({
updateLoadFileList: info.fileList, updateLoadFileList: info.fileList,
data: info, data: info,

View File

@ -20,5 +20,12 @@ export default {
} else { } else {
setRowFieldVisible("T_SE_TRAIN_RECORD_USER", { "EXAMINATION_RESULTS": false, "SCORE": false, "Nav_Files": false }) setRowFieldVisible("T_SE_TRAIN_RECORD_USER", { "EXAMINATION_RESULTS": false, "SCORE": false, "Nav_Files": false })
} }
if (stateData.Nav_Users && stateData.Nav_Users.length > 0) {
stateData.Nav_Users.forEach(e => {
if (e.STATUS == 0 && e.EXAMINATION_RESULTS == undefined)
e.EXAMINATION_RESULTS = 1
})
}
} }
} }