|
@@ -2698,7 +2698,7 @@ $(document).ready(() => {
|
|
|
let html = [];
|
|
|
if (data.attachment) {
|
|
|
for (const att of data.attachment) {
|
|
|
- const delHtml = (parseInt(att.uid) === userID || data.uid === userID || (data.uid === -1 && userID === stage.user_id))
|
|
|
+ const delHtml = (parseInt(att.uid) === userID && (att.renew || stage.status !== auditConst.status.checked))
|
|
|
? '<a class="delete-att text-danger" href="javascript:void(0);" data-imid="'+ data.att_uuid +'" data-attid="'+ att.file_id +'" title="删除"><i class="fa fa-remove "></i></a>'
|
|
|
: '';
|
|
|
html.push('<tr><td style="width: 200px">' + att.filename + att.fileext + '</td><td>' + att.username + '</td><td>' + att.in_time + '</td>',
|