导入 公共页面 只显示最新附件
培训记录 参与的人 默认合格
This commit is contained in:
parent
500866cc40
commit
7af1386e80
@ -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,
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user