From 85eb1192370d5b758042b6ebc59d5128527d08a9 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 22 Jul 2022 16:14:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E9=99=84=E4=BB=B6=E4=B8=8B=E8=BD=BD=E6=B2=A1=E6=9C=89=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015104 --user=陈建星 【测试跟踪】功能用例-上传附件100M以上,完成后下载该附件不显示下载进展 https://www.tapd.cn/55049933/s/1207417 --- frontend/package.json | 1 + .../components/notice/DownloadNotice.vue | 59 +++++++++++++++++++ .../case/components/TestCaseAttachment.vue | 29 +-------- frontend/src/common/js/ajax.js | 50 ++++++++++++---- frontend/src/store/index.js | 3 +- frontend/src/store/mutations.js | 14 ++++- 6 files changed, 117 insertions(+), 39 deletions(-) create mode 100644 frontend/src/business/components/notice/DownloadNotice.vue diff --git a/frontend/package.json b/frontend/package.json index f40a646c66..2a54c2239e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -27,6 +27,7 @@ "element-ui": "^2.13.0", "html2canvas": "^1.0.0-rc.7", "js-base64": "^3.4.4", + "js-file-download": "^0.4.12", "jsencrypt": "^3.1.0", "json-bigint": "^1.0.0", "json-schema-faker": "^0.5.0-rcv.32", diff --git a/frontend/src/business/components/notice/DownloadNotice.vue b/frontend/src/business/components/notice/DownloadNotice.vue new file mode 100644 index 0000000000..440ea66b4a --- /dev/null +++ b/frontend/src/business/components/notice/DownloadNotice.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/frontend/src/business/components/track/case/components/TestCaseAttachment.vue b/frontend/src/business/components/track/case/components/TestCaseAttachment.vue index 11df24e333..b430c40496 100644 --- a/frontend/src/business/components/track/case/components/TestCaseAttachment.vue +++ b/frontend/src/business/components/track/case/components/TestCaseAttachment.vue @@ -76,7 +76,7 @@