|
@@ -335,15 +335,20 @@ $(document).ready(function () {
|
|
})
|
|
})
|
|
function handleFileList(files = []) {
|
|
function handleFileList(files = []) {
|
|
$('#file-content').empty()
|
|
$('#file-content').empty()
|
|
- const { uncheck, checkNo } = auditConst.status
|
|
|
|
|
|
+ // const { uncheck, checkNo } = auditConst.status
|
|
const newFiles = files.map(file => {
|
|
const newFiles = files.map(file => {
|
|
let showDel = false;
|
|
let showDel = false;
|
|
if (file.uid === cur_uid) {
|
|
if (file.uid === cur_uid) {
|
|
- if (!curAuditor) {
|
|
|
|
- advance.status === uncheck && cur_uid === advance.uid && (showDel = true)
|
|
|
|
- advance.status === checkNo && cur_uid === advance.uid && (showDel = true)
|
|
|
|
|
|
+ // if (!curAuditor) {
|
|
|
|
+ // advance.status === uncheck && cur_uid === advance.uid && (showDel = true)
|
|
|
|
+ // advance.status === checkNo && cur_uid === advance.uid && (showDel = true)
|
|
|
|
+ // } else {
|
|
|
|
+ // curAuditor.audit_id === cur_uid && (showDel = true)
|
|
|
|
+ // }
|
|
|
|
+ if (advance.status === auditConst.status.checked) {
|
|
|
|
+ showDel = Boolean(file.extra_upload )
|
|
} else {
|
|
} else {
|
|
- curAuditor.audit_id === cur_uid && (showDel = true)
|
|
|
|
|
|
+ showDel = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return {...file, showDel}
|
|
return {...file, showDel}
|