zhongrj
2023-11-17 46c8aab0b19acf79640a0eb3de75654e2b8d147a
src/views/userHouse/hireInfoList.vue
@@ -83,7 +83,7 @@
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
import func from "@/util/func";
import Qs from "qs";
export default {
  data() {
    return {
@@ -397,23 +397,27 @@
    handleExport() {
      const account = func.toStr(this.search.account);
      const realName = func.toStr(this.search.realName);
      this.$confirm("是否导出用户数据?", "提示", {
      this.$confirm("是否导出出租信息数据?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      }).then(() => {
        NProgress.start();
        var data = {
          ...this.query
        }
        data = Qs.stringify(data);
        exportBlob(
          `/api/blade-system/user/export-user?${this.website.tokenHeader}=${getToken()}&account=${account}&realName=${realName}`
          `/api/blade-houseRental/houseRental/export-houseRental?${this.website.tokenHeader}=${getToken()}&` + data
        ).then(res => {
          downloadXls(res.data, `用户数据表${dateNow()}.xlsx`);
          downloadXls(res.data, `出租信息数据表${dateNow()}.xlsx`);
          NProgress.done();
        })
      });
    },
    handleTemplate() {
      exportBlob(`/api/blade-system/user/export-template?${this.website.tokenHeader}=${getToken()}`).then(res => {
        downloadXls(res.data, "用户数据模板.xlsx");
        downloadXls(res.data, "出租信息数据模板.xlsx");
      })
    },
    beforeOpen(done, type) {