|
@@ -3119,8 +3119,8 @@ $(document).ready(() => {
|
|
|
$('#show-att tr').eq(0).children('td').text(att.filename + att.fileext);
|
|
|
const name = att.code !== null && att.code !== '' ? att.code : (att.b_code !== null ? att.b_code : '');
|
|
|
$('#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', att.filepath);
|
|
|
+ $('#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(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);
|
|
@@ -3244,9 +3244,11 @@ $(document).ready(() => {
|
|
|
} else if (content === 'view') {
|
|
|
const data = {id: fid};
|
|
|
postData('/tender/' + tender.id + '/measure/stage/' + stage.order + '/check/file', data, function (result) {
|
|
|
- const { filepath } = result
|
|
|
- $('#show-att tr').eq(2).find('a').attr('href', filepath)
|
|
|
- $('#show-att tr').eq(2).find('a').children('span').eq(0).trigger('click')
|
|
|
+ const { filepath } = result
|
|
|
+ $('#load-file').attr('href', filepath);
|
|
|
+ $('#load-file')[0].click();
|
|
|
+ // $('#show-att tr').eq(2).find('a').attr('href', filepath)
|
|
|
+ // $('#show-att tr').eq(2).find('a').children('span').eq(0).trigger('click')
|
|
|
});
|
|
|
} else if (content === 'location') {
|
|
|
const att = attData.find(item => item.id === parseInt(fid));
|