From d2a06b827fdcf4b274c503c25b3c21fd727ccbbc Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 07 三月 2025 10:18:45 +0800 Subject: [PATCH] 文件下载全局修改 --- src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue b/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue index 7f12fca..1f13e97 100644 --- a/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue +++ b/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue @@ -283,9 +283,7 @@ // queryParams exportOutManageRecordCheck(this.queryParams).then(res => { this.outLoading = false - if (res.code == 201) return this.$message.error('瀵煎嚭澶辫触') - let url = this.javaApi + '/word/' + res.data - this.$download.saveAs(url, '鏂囦欢瀹℃壒璁板綍') + this.$download.downloadFileFromUrl(res.data, '鏂囦欢瀹℃壒璁板綍') }) }, getAuthorizedPerson() { @@ -298,7 +296,7 @@ }) }) this.personList = data - this.refreshTable()() + this.refreshTable() }) }, // 瀹℃牳 @@ -410,7 +408,7 @@ this.upLoading = false; if (response.code == 200) { this.$message.success('涓婁紶鎴愬姛'); - this.refreshTable()() + this.refreshTable() } else { this.$message.error('涓婁紶澶辫触'); } -- Gitblit v1.9.3