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` );