Browse Source

修改后台导出传参值错误

new
lzp 4 days ago
parent
commit
9d0ee410b3
  1. 2
      acupuncture-后台/src/utils/request.js
  2. 2
      acupuncture-后台/src/views/followFile/index.vue
  3. 2
      acupuncture-后台/src/views/followFile/subjects.vue
  4. 4
      acupuncture-后台/src/views/followFile/work.vue
  5. 2
      acupuncture-后台/src/views/medicalFile/index.vue
  6. 2
      acupuncture-后台/src/views/member/account.vue
  7. 2
      acupuncture-后台/src/views/patientFile/index.vue

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

2
acupuncture-后台/src/views/followFile/index.vue

@ -515,7 +515,7 @@ export default {
this.download(
"system/user/export",
{
...this.queryParams.params,
...this.queryParams.param,
},
`患者档案.xlsx`
);

2
acupuncture-后台/src/views/followFile/subjects.vue

@ -452,7 +452,7 @@ export default {
this.download(
"system/user/export",
{
...this.queryParams.params,
...this.queryParams.param,
},
`患者档案.xlsx`
);

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

2
acupuncture-后台/src/views/medicalFile/index.vue

@ -1325,7 +1325,7 @@ export default {
this.download1(
"/admin/treatment/exportTreatment",
{
...this.queryParams.params,
...this.queryParams.param,
},
`诊疗档案.xlsx`
);

2
acupuncture-后台/src/views/member/account.vue

@ -448,7 +448,7 @@ export default {
this.download1(
"/treatment/exportTreatment",
{
...this.queryParams.params,
...this.queryParams.param,
},
`诊疗档案.xlsx`
);

2
acupuncture-后台/src/views/patientFile/index.vue

@ -824,7 +824,7 @@ export default {
this.download1(
"/admin/patient/export",
{
...this.queryParams.params,
...this.queryParams.param,
},
`患者档案.xlsx`
);

Loading…
Cancel
Save