diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step2.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step2.vue index 47ed487f8..b88617eef 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step2.vue @@ -1908,7 +1908,12 @@ }, // 文件预览及下载 handleFilePreview(file) { - const attId = file.response.data.id + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } if (this.preview) { if (attId) { window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step2.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step2.vue index 380715db5..edbbd87e5 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step2.vue @@ -2153,7 +2153,12 @@ }, // 文件预览及下载 handleFilePreview(file) { - const attId = file.response.data.id + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } if (this.preview) { if (attId) { window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId