11
WXL
2024-03-20 40e702344f3d35e251bb098d1227fdea74ee8e4e
src/views/project/donatebaseinfo/index.vue
@@ -1201,7 +1201,12 @@
      ]
    };
  },
  created() {},
  created() {
    if (sessionStorage.getItem("donatebaseinfo")) {
      this.queryParams = JSON.parse(sessionStorage.getItem("donatebaseinfo"));
      console.log(this.queryParams, "queryParams");
    }
  },
  mounted(e) {
    // let idd = this.$route.query.userid
@@ -1216,8 +1221,7 @@
    if (this.$route.params.starttime != null && this.$route.params.endtime) {
      this.selecttime = [
        this.$moment(this.$route.params.starttime).format("YYYY-MM-DD"),
        this.$moment(this.$route.params.endtime)
          .format("YYYY-MM-DD")
        this.$moment(this.$route.params.endtime).format("YYYY-MM-DD")
      ];
    }
    if (this.$route.params.reporterno != "") {
@@ -1249,7 +1253,7 @@
    }
    this.getTimeList();
    this.getList();
  },
@@ -1457,18 +1461,15 @@
    },
    /** 查询捐献基础列表 */
    getList(e) {
    getList() {
      this.loading = true;
      this.queryParams.params = {};
      // if (null != this.daterangeReporttime && "" != this.daterangeReporttime) {
      //   this.queryParams.params["beginReporttime"] =
      //     this.daterangeReporttime[0];
      //   this.queryParams.params["endReporttime"] = this.daterangeReporttime[1];
      // }
      sessionStorage.removeItem("donatebaseinfo");
      sessionStorage.setItem(
        "donatebaseinfo",
        JSON.stringify(this.queryParams)
      );
      // 跳转时的默认进度
      if (e != null && e != undefined && !isNaN(e)) {
        this.queryParams.recordstate = e;
      }
      if (this.reportervalue != "") {
        this.queryParams.reportno = this.reportervalue;
@@ -1487,6 +1488,8 @@
      this.queryParams.residenceprovince = this.$refs.areaSelect.getSheng();
      this.queryParams.residencecity = this.$refs.areaSelect.getShi();
      this.queryParams.residencetown = this.$refs.areaSelect.getQu();
      console.log(this.queryParams);
      listDonatebaseinfo(this.queryParams).then(response => {
        this.donatebaseinfoList = response.rows;
        //console.log("listDonatebaseinfo", response.rows);