| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form |
| | | class="opo-query-form" |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | | :inline="true" |
| | |
| | | starttime: null, |
| | | endtime: null, |
| | | city: null, |
| | | reportno: null |
| | | reporterno: null |
| | | // organizationname: null, |
| | | // organizationtype: null, |
| | | // idcardno: null, |
| | |
| | | // 跳转时的默认进度 |
| | | |
| | | if (this.reportervalue != "") { |
| | | this.queryParams.reportno = this.reportervalue; |
| | | this.queryParams.reporterno = this.reportervalue; |
| | | } |
| | | |
| | | if (this.starttime != "") { |
| | | this.queryParams.starttime = this.starttime; |
| | | } else { |
| | | this.queryParams.starttime = ""; |
| | | } |
| | | if (this.endtime != "") { |
| | | this.queryParams.endtime = this.endtime; |
| | | } else { |
| | | this.queryParams.endtime = ""; |
| | | } |
| | | // 未选时间范围时传 null:空串会让后端拼出 `donatetime >= ''`, |
| | | // MySQL 严格模式会报 Incorrect DATETIME value: ''(见 CHANGELOG 2026-10-22) |
| | | this.queryParams.starttime = this.starttime || null; |
| | | this.queryParams.endtime = this.endtime || null; |
| | | console.log(this.queryParams); |
| | | |
| | | listDonationProcess(this.queryParams).then(response => { |