|
@@ -5196,14 +5196,8 @@ $(document).ready(() => {
|
|
|
}, `确认删除附件「${att.filename}」?`);
|
|
}, `确认删除附件「${att.filename}」?`);
|
|
|
|
|
|
|
|
} else if (content === 'view') {
|
|
} else if (content === 'view') {
|
|
|
- const data = {id: fid};
|
|
|
|
|
- postData('/tender/' + tender.id + '/measure/stage/' + stage.order + '/check/file', data, function (result) {
|
|
|
|
|
- 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')
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ const att = attData.find(item => item.id === parseInt(fid));
|
|
|
|
|
+ window.open(att.viewpath || att.orginpath);
|
|
|
} else if (content === 'location') {
|
|
} else if (content === 'location') {
|
|
|
const att = attData.find(item => item.id === parseInt(fid));
|
|
const att = attData.find(item => item.id === parseInt(fid));
|
|
|
if (Object.keys(att).length) {
|
|
if (Object.keys(att).length) {
|