yubo
2026-03-12 d62d67dc663b2b45411e11da11357419926cc76f
src/views/dashboard/zzUser.vue
@@ -87,7 +87,7 @@
      }, // 查询参数
      sort: {}, // 排序
      pagination: { // 分页参数
        size: 5,
        size: 15,
        num: 1
      },
      probationStatusOptions: [],
@@ -113,7 +113,8 @@
        ],
        exportUrl: 'hr/empBaseInfo/export/probation',
        fileName: '员工转正提醒.xls'
      }
      },
      selectIndex: 0 // 存储传入的时间筛选索引
    }
  },
  computed: {
@@ -153,6 +154,8 @@
      this.queryParams.index = index
      this.queryParams.number = number
      this.queryParams.name = null
      this.selectIndex = index !== null ? index : 0 // 保存传入的 index
      this.pagination.num = 1
      this.search()
    },
    fetch(params = {}) {
@@ -161,6 +164,12 @@
      params.pageNum = this.pagination.num
      params.delFlag = 0
      params.empStatus = 0
      // 添加 index 参数
      if (params.timeRange === undefined || params.timeRange === null) {
        params.timeRange = this.selectIndex
      }
      this.$get('hr/empBaseInfo/probation/alert', {
        ...params
      }).then((r) => {
@@ -176,6 +185,7 @@
    handleExport() {
      const params = {
        ...this.queryParams,
        index: this.selectIndex, // 使用当前查询的 index
        delFlag: 0,
        empStatus: 0,
        exportField: this.exportConfig.selectedFields.join(',')