From 9d0ee410b327166ec67256fcd6914bc2cde2543e Mon Sep 17 00:00:00 2001 From: lzp <1747191978@qq.com> Date: Tue, 8 Jul 2025 10:02:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E4=BC=A0=E5=8F=82=E5=80=BC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-后台/src/utils/request.js | 2 ++ acupuncture-后台/src/views/followFile/index.vue | 2 +- acupuncture-后台/src/views/followFile/subjects.vue | 2 +- acupuncture-后台/src/views/followFile/work.vue | 4 ++-- acupuncture-后台/src/views/medicalFile/index.vue | 2 +- acupuncture-后台/src/views/member/account.vue | 2 +- acupuncture-后台/src/views/patientFile/index.vue | 2 +- 7 files changed, 9 insertions(+), 7 deletions(-) diff --git a/acupuncture-后台/src/utils/request.js b/acupuncture-后台/src/utils/request.js index 0f4920a7..648cd9da 100644 --- a/acupuncture-后台/src/utils/request.js +++ b/acupuncture-后台/src/utils/request.js @@ -160,6 +160,8 @@ export function download1(url, params, filename, config) { headers: { "Content-Type": "application/json;charset=utf-8" }, responseType: "blob", + data: params, // 确保参数传递给后端 + ...config, // 合并传入的额外配置 }) .then(async (data) => { const isBlob = blobValidate(data); diff --git a/acupuncture-后台/src/views/followFile/index.vue b/acupuncture-后台/src/views/followFile/index.vue index 59990016..48fd5e51 100644 --- a/acupuncture-后台/src/views/followFile/index.vue +++ b/acupuncture-后台/src/views/followFile/index.vue @@ -515,7 +515,7 @@ export default { this.download( "system/user/export", { - ...this.queryParams.params, + ...this.queryParams.param, }, `患者档案.xlsx` ); diff --git a/acupuncture-后台/src/views/followFile/subjects.vue b/acupuncture-后台/src/views/followFile/subjects.vue index 86e13b61..cd11bba5 100644 --- a/acupuncture-后台/src/views/followFile/subjects.vue +++ b/acupuncture-后台/src/views/followFile/subjects.vue @@ -452,7 +452,7 @@ export default { this.download( "system/user/export", { - ...this.queryParams.params, + ...this.queryParams.param, }, `患者档案.xlsx` ); diff --git a/acupuncture-后台/src/views/followFile/work.vue b/acupuncture-后台/src/views/followFile/work.vue index d3d66dcd..86b59faa 100644 --- a/acupuncture-后台/src/views/followFile/work.vue +++ b/acupuncture-后台/src/views/followFile/work.vue @@ -530,7 +530,7 @@ export default { created() { let { name, phone } = this.$route.query; this.queryParams.param.keywords = name || ""; - this.queryParams.param.phone = phone !== 'null' ? phone : ""; + this.queryParams.param.phone = phone !== "null" ? phone : ""; this.getList(); this.getTenantsList(); // 组织列表 }, @@ -698,7 +698,7 @@ export default { this.download( "system/user/export", { - ...this.queryParams.params, + ...this.queryParams.param, }, `患者档案.xlsx` ); diff --git a/acupuncture-后台/src/views/medicalFile/index.vue b/acupuncture-后台/src/views/medicalFile/index.vue index c71e9b0f..00113625 100644 --- a/acupuncture-后台/src/views/medicalFile/index.vue +++ b/acupuncture-后台/src/views/medicalFile/index.vue @@ -1325,7 +1325,7 @@ export default { this.download1( "/admin/treatment/exportTreatment", { - ...this.queryParams.params, + ...this.queryParams.param, }, `诊疗档案.xlsx` ); diff --git a/acupuncture-后台/src/views/member/account.vue b/acupuncture-后台/src/views/member/account.vue index 2cf69881..501b8cf6 100644 --- a/acupuncture-后台/src/views/member/account.vue +++ b/acupuncture-后台/src/views/member/account.vue @@ -448,7 +448,7 @@ export default { this.download1( "/treatment/exportTreatment", { - ...this.queryParams.params, + ...this.queryParams.param, }, `诊疗档案.xlsx` ); diff --git a/acupuncture-后台/src/views/patientFile/index.vue b/acupuncture-后台/src/views/patientFile/index.vue index be986927..47f0e1a9 100644 --- a/acupuncture-后台/src/views/patientFile/index.vue +++ b/acupuncture-后台/src/views/patientFile/index.vue @@ -824,7 +824,7 @@ export default { this.download1( "/admin/patient/export", { - ...this.queryParams.params, + ...this.queryParams.param, }, `患者档案.xlsx` );