|
@@ -3161,8 +3161,7 @@ $(document).ready(() => {
|
|
});
|
|
});
|
|
|
|
|
|
// 获取附件信息
|
|
// 获取附件信息
|
|
- $('body').on('click', '.list-table a.att-file-name', function () {
|
|
|
|
- console.log($(this))
|
|
|
|
|
|
+ $('.list-table').on('click', '.att-file-name', function () {
|
|
const fid = $(this).attr('file-id');
|
|
const fid = $(this).attr('file-id');
|
|
if ($('#showAttachment').attr('file-id') === fid && !$('#showAttachment').is(":hidden")) {
|
|
if ($('#showAttachment').attr('file-id') === fid && !$('#showAttachment').is(":hidden")) {
|
|
return;
|
|
return;
|
|
@@ -3180,9 +3179,9 @@ $(document).ready(() => {
|
|
$('#show-att tr').eq(1).children('td').text($.trim(name + ' ' + att.lname));
|
|
$('#show-att tr').eq(1).children('td').text($.trim(name + ' ' + att.lname));
|
|
// $('#show-att tr').eq(2).find('a').attr('href', '/tender/' + tender.id + '/measure/stage/' + stage.order + '/download/file/' + att.id);
|
|
// $('#show-att tr').eq(2).find('a').attr('href', '/tender/' + tender.id + '/measure/stage/' + stage.order + '/download/file/' + att.id);
|
|
// $('#show-att tr').eq(2).find('a').attr('href', att.filepath);
|
|
// $('#show-att tr').eq(2).find('a').attr('href', att.filepath);
|
|
- $('#show-att tr').eq(3).children('td').eq(0).text(att.username);
|
|
|
|
- $('#show-att tr').eq(3).children('td').eq(1).text(att.in_time);
|
|
|
|
- $('#show-att tr').eq(4).children('td').text(att.remark);
|
|
|
|
|
|
+ $('#show-att tr').eq(2).children('td').eq(0).text(att.username);
|
|
|
|
+ $('#show-att tr').eq(2).children('td').eq(1).text(att.in_time);
|
|
|
|
+ $('#show-att tr').eq(3).children('td').text(att.remark);
|
|
// 附件uid等于当前用户id, 附件上传本人
|
|
// 附件uid等于当前用户id, 附件上传本人
|
|
if (parseInt(cur_uid) === att.uid) {
|
|
if (parseInt(cur_uid) === att.uid) {
|
|
$('#btn-att').show();
|
|
$('#btn-att').show();
|