yxh
23 小时以前 a79d67f8a9a9fa02f9d25f987b9611af965c484f
src/views/project/donatereview/index.vue
@@ -1,6 +1,7 @@
<template>
  <div class="app-container">
    <el-form
      class="opo-query-form"
      :model="queryParams"
      ref="queryForm"
      :inline="true"
@@ -122,7 +123,7 @@
    >
      <!-- <el-table-column label="报告时间" align="center" prop="id" /> -->
      <!-- <el-table-column type="selection" width="55" align="center" /> -->
     <el-table-column
        label="报告时间"
        align="center"
@@ -144,7 +145,19 @@
          />
        </template>
      </el-table-column>
      <el-table-column label="年龄" align="center" prop="age" width="100" />
      <el-table-column label="年龄" align="center" prop="age" width="100">
        <template slot-scope="scope">
           {{
            `${
              scope.row.age && scope.row.age !== 0 ? `${scope.row.age}${scope.row.ageunit?scope.row.ageunit:''}` : ""
            } ${
              scope.row.age2 && scope.row.age2 !== 0
                ? `${scope.row.age2}${scope.row.ageunit2}`
                : ""
            }`.trim()
          }}
        </template>
      </el-table-column>
      <el-table-column
        label="现所在地市"
        align="center"
@@ -383,9 +396,9 @@
                clearable
                size="small"
                v-model="form.birthday"
                type="date"
                type="date" format="yyyy-MM-dd"
                style="width: 174px"
                value-format="yyyy:MM:dd HH:mm:ss"
                value-format="yyyy-MM-dd HH:mm:ss"
                placeholder="选择出生日期"
              >
              </el-date-picker>
@@ -744,8 +757,8 @@
                clearable
                size="small"
                v-model="form.reporttime"
                type="date"
                value-format="yyyy-MM-dd  HH:mm:ss"
                type="date" format="yyyy-MM-dd"
                value-format="yyyy-MM-dd HH:mm:ss"
                placeholder="选择报告时间"
              >
              </el-date-picker>
@@ -1103,16 +1116,10 @@
      // this.queryParams.residenceprovince = this.$refs.areaSelect.getSheng();
      // this.queryParams.residencecity = this.$refs.areaSelect.getShi();
      // this.queryParams.residencetown = this.$refs.areaSelect.getQu();
       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;
      listDonatebaseinfo(this.queryParams).then((response) => {
        console.log("getlist", response.rows);
        this.donatebaseinfoList = response.rows;