|
|
@@ -35,11 +35,12 @@ function makeAttTable(payNode) {
|
|
|
if (attachment !== null) {
|
|
|
for (const att of attachment) {
|
|
|
const delhtml = uploadPermission && parseInt(att.uid) === userID && (att.renew || stage.status !== auditConst.status.checked || deleteFilePermission)
|
|
|
- ? '<a class="delete-att text-danger" href="javascript:void(0);" data-fileid="'+ att.id +'" title="删除"><i class="fa fa-remove "></i></a>'
|
|
|
+ ? '<a class="delete-att text-danger ml-1" href="javascript:void(0);" data-fileid="'+ att.id +'" title="删除"><i class="fa fa-remove "></i></a>'
|
|
|
: '';
|
|
|
+ const viewHtml = att.viewpath ? `<a class="ml-1" href="${att.viewpath}" target="_blank" title="预览"><i class="fa fa-eye"></i></a>` : '';
|
|
|
html += '<tr><td style="width: 200px">' + att.filename + att.fileext + '</td><td>' + att.username + '</td><td>' + att.in_time + '</td>' +
|
|
|
'<td><a href="/tender/'+ tender.id + '/measure/stage/' + tender.ledger_times +'/pay/download/file/'+ att.id +'" title="下载"><i class="fa fa-download "></i></a> ' +
|
|
|
- delhtml +
|
|
|
+ viewHtml + delhtml +
|
|
|
'</td></tr>';
|
|
|
}
|
|
|
}
|