From 8abb75f070aad1c97b40f0698d8ddd4343a63598 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 15 四月 2024 09:54:59 +0800 Subject: [PATCH] 11 --- src/views/project/donatebaseinfo/index.vue | 35 +++++++++++++++++++---------------- 1 files changed, 19 insertions(+), 16 deletions(-) diff --git a/src/views/project/donatebaseinfo/index.vue b/src/views/project/donatebaseinfo/index.vue index b939ea5..69d4192 100644 --- a/src/views/project/donatebaseinfo/index.vue +++ b/src/views/project/donatebaseinfo/index.vue @@ -72,7 +72,7 @@ size="small" > <el-option - v-for="dict in dict.type.sys_DonationStatus" + v-for="dict in dict.type.sys_donornode" :key="dict.value" :label="dict.label" :value="dict.value" @@ -888,8 +888,8 @@ updateDonatebaseinfo, exportDonatebaseinfo, downloadbaseinfo, - getdonatorno - // exportProvincemessage, + getDonationNumber, + getdonatorno, } from "@/api/project/donatebaseinfo"; import Li_area_select from "@/components/Address"; import OrgSelecter from "@/views/project/components/orgselect"; @@ -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); -- Gitblit v1.9.3