1
wwl
2025-03-05 cb1f69717eed3b6a61b6c61a8934bac752782b2d
src/views/team/reportresults/index.vue
@@ -7,7 +7,7 @@
      :inline="true"
      label-width="68px"
    >
      <el-form-item label="时间" prop="applicationTime">
      <el-form-item label="时间" prop="createTimeList">
        <el-date-picker
          clearable
          v-model="createTimeList"
@@ -97,6 +97,7 @@
          icon="el-icon-search"
          size="mini"
          @click="handleQuery"
          style="margin: 0 15px;"
          >查询</el-button
        >
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
@@ -107,7 +108,7 @@
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button type="primary" size="mini" @click="tongji"
        <el-button type="primary" size="mini" @click="tongji"  style="margin: 0 15px;"
          >统计结果</el-button
        >
      </el-col>
@@ -403,7 +404,7 @@
  created() {
    this.getdate();
    this.getNowTime();
    this.getList();
    this.getcomp();
    this.getData();
    this.datekey = Date.now();
@@ -420,7 +421,7 @@
          moment(res.data).format("YYYY-MM-DD 00:00:00"),
          moment(res.data).format("YYYY-MM-DD 23:59:00"),
        ];
        console.log(this.createTimeList, 111);
        this.getList();
      });
    },
    filterNode(value, data) {
@@ -433,6 +434,11 @@
      /** 查询部门下拉树结构 */
      projectGetList().then((response) => {
        this.Treedata = response.data.list;
        this.Treedata.forEach(item => {
          if(item.proParentId == "0"){
            item.disabled = true
          }
        })
        this.loading = false;
      });
    },
@@ -483,8 +489,14 @@
    },
    // 团检病种页面查询人员列表
    getList() {
      this.queryParams.beginTime = this.createTimeList[0];
      if(this.createTimeList){
        this.queryParams.beginTime = this.createTimeList[0];
      this.queryParams.endTime = this.createTimeList[1];
      }else if(this.createTimeList == null){
        this.queryParams.beginTime = null;
      this.queryParams.endTime = null;
      }
      getPeopleList(this.queryParams).then((res) => {
        this.tableData = res.data.voList;
        this.total = res.data.total;
@@ -493,11 +505,11 @@
    handleSizeChange(val) {
      this.queryParam.pageSize = val;
      this.geticd();
      // this.geticd();
    },
    handleCurrentChange(val) {
      this.queryParam.page = val;
      this.geticd();
      // this.geticd();
    },
    /** 查询体检单位信息维护列表 */
    getcomp() {
@@ -533,11 +545,12 @@
    handleQuery() {
      this.queryParams.page = 1;
      this.getList();
      this.queryParam.page = 1;
      this.geticd();
      // this.queryParam.page = 1;
      // this.geticd();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.createTimeList = []
      this.resetForm("queryForm");
      this.handleQuery();
      this.loading = true;