fuliqi
2025-01-17 b5c6e17f2e9cb10ed323c1adfa2e449bab307134
src/views/system/check/result/detail/index.vue
@@ -72,7 +72,7 @@
                size="mini"
                type="text"
                icon="el-icon-view"
                @click="handleDetail(scope.row.id)"
                @click="handleDetail(scope.row)"
              >详细
              </el-button>
            </div>
@@ -83,6 +83,7 @@
      <pagination
        v-show="total>0"
        :total="total"
        :auto-scroll="false"
        :page.sync="queryParamsList.pageNum"
        :limit.sync="queryParamsList.pageSize"
        @pagination="getList"
@@ -155,12 +156,12 @@
    this.date = year + '-' + month;
    this.queryParams.date = this.date;
    let examineTag = this.$route.query.examineTag;
    if (examineTag === '2') {
      examineTag = '0'
    }
    if (examineTag === '3') {
      examineTag = '1'
    }
    // if (examineTag === '2' || examineTag === '3') {
    //   examineTag = '1'
    // }
    // if (examineTag === '4' || examineTag === '5') {
    //   examineTag = '2'
    // }
    this.queryParams.examineTag = examineTag;
    this.queryParamsList.examineTag = examineTag;
    this.activeIndex = examineTag;
@@ -246,12 +247,13 @@
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
    handleDetail(id) {
    handleDetail(row) {
      this.$router.push({
        path: '/check/detail/detail',
        query: {
          id: id,
          id: row.id,
          examineTag: this.activeIndex,
          examineCategory: row.examineCategory,
          deptId: this.queryParamsList.deptId
        }
      })
@@ -342,11 +344,14 @@
    },
    getAllDay() {
      // const date = new Date();
      // const year = date.getFullYear();
      // const month = (date.getMonth() + 1) >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1);
      // this.date = year + '-' + month;
      const currentDate = this.date.split('-');
      let date = this.date
      if(!this.date) {
        date = new Date();
        const year = date.getFullYear();
        const month = (date.getMonth() + 1) >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1);
        date = year + '-' + month;
      }
      const currentDate = date.split('-');
      const currentYear = currentDate[0];
      const currentMonth = currentDate[1];
      const daysInMonth = new Date(currentYear, currentMonth, 0).getDate();