yubo
2026-03-11 4c72dd4e55dbfae3dca4a7ac4342220e93f25a8b
src/views/dashboard/zzUser.vue
@@ -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(',')