WXL
昨天 2698387e653c6a25059c3ae9976f18b814eba892
src/views/project/organallocation/index.vue
@@ -87,7 +87,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 +150,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"
@@ -686,6 +693,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 +707,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 +1116,10 @@
  },
  //生命周期 - 创建完成(可以访问当前this实例)
  created() {
    if (sessionStorage.getItem("organallocation")) {
      this.queryParams = JSON.parse(sessionStorage.getItem("organallocation"));
      console.log(this.queryParams, "queryParams");
    }
    this.getBaseInfoList();
    this.resetForm();
  }