From 4c72dd4e55dbfae3dca4a7ac4342220e93f25a8b Mon Sep 17 00:00:00 2001
From: yubo <autumnal_wind@yeah.net>
Date: 星期三, 11 三月 2026 18:04:07 +0800
Subject: [PATCH] feat(dashboard): 添加四险提醒功能并优化员工管理界面
---
src/views/dashboard/zzUser.vue | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/views/dashboard/zzUser.vue b/src/views/dashboard/zzUser.vue
index 18c7416..2150478 100644
--- a/src/views/dashboard/zzUser.vue
+++ b/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(',')
--
Gitblit v1.8.0