yxh
昨天 a79d67f8a9a9fa02f9d25f987b9611af965c484f
src/views/project/organallocation/index.vue
@@ -3,6 +3,7 @@
  <div class="app-container">
    <!-- 搜索条件 -->
    <el-form
      class="opo-query-form"
      :model="queryParams"
      ref="queryForm"
      :inline="true"
@@ -87,7 +88,7 @@
        </el-col>
        <el-col :span="12">
          <el-form-item label="报告日期">
          <el-form-item label="案例时间">
            <el-date-picker
              style="width: 100%"
              v-model="selecttime"
@@ -150,12 +151,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"
@@ -330,7 +338,7 @@
                size="small"
                style="width: 100%"
                v-model="form.applicanttime"
                type="datetime"
                type="datetime" format="yyyy-MM-dd HH:mm"
                value-format="yyyy-MM-dd HH:mm:ss"
                placeholder="选择接收时间"
              >
@@ -686,6 +694,11 @@
    /** 查询捐献基础列表 */
    getBaseInfoList(e) {
      this.loading = true;
      sessionStorage.removeItem("organallocation");
      sessionStorage.setItem(
        "organallocation",
        JSON.stringify(this.queryParams)
      );
      if (this.queryParams.recordstate == "") {
        this.queryParams.recordstate = null;
      }
@@ -695,7 +708,7 @@
      this.queryParams.reportervalue = this.reportervalue;
      console.log(JSON.stringify(this.queryParams));
      // this.queryParams.city='001'
      // this.queryParams.city='053'
      //console.log(JSON.stringify(this.queryParams));
      if (this.starttime != "") {
        this.queryParams.starttime = this.starttime;
@@ -1104,6 +1117,10 @@
  },
  //生命周期 - 创建完成(可以访问当前this实例)
  created() {
    if (sessionStorage.getItem("organallocation")) {
      this.queryParams = JSON.parse(sessionStorage.getItem("organallocation"));
      console.log(this.queryParams, "queryParams");
    }
    this.getBaseInfoList();
    this.resetForm();
  }