|
@@ -263,12 +263,13 @@ $(document).ready(function () {
|
|
|
let showDel = false
|
|
|
// 只判断当前期,因为以往期都是只读的
|
|
|
if (file.mid === parseInt(mid) && file.tid === parseInt(tid) && file.user_id === parseInt(cur_uid)) {
|
|
|
- if (!curAuditor) {
|
|
|
- materialStatus === auditConst.status.uncheck && parseInt(cur_uid) === materialUid && (showDel = true)
|
|
|
- materialStatus === auditConst.status.checkNo && parseInt(cur_uid) === materialUid && (showDel = true)
|
|
|
- } else {
|
|
|
- curAuditor.aid === parseInt(cur_uid) && (showDel = true)
|
|
|
- }
|
|
|
+ // if (!curAuditor) {
|
|
|
+ // materialStatus === auditConst.status.uncheck && parseInt(cur_uid) === materialUid && (showDel = true)
|
|
|
+ // materialStatus === auditConst.status.checkNo && parseInt(cur_uid) === materialUid && (showDel = true)
|
|
|
+ // } else {
|
|
|
+ // curAuditor.aid === parseInt(cur_uid) && (showDel = true)
|
|
|
+ // }
|
|
|
+ showDel = true
|
|
|
}
|
|
|
return showDel ? {...file, canDel: true, index} : {...file, index}
|
|
|
})
|