From 6448ec15bfe0b65fb822a662105bceddc23b58d8 Mon Sep 17 00:00:00 2001
From: yubo <autumnal_wind@yeah.net>
Date: 星期一, 06 四月 2026 21:34:44 +0800
Subject: [PATCH] feat(user): 新增员工档案管理视图组件

---
 src/views/remind/probation.vue |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/views/remind/probation.vue b/src/views/remind/probation.vue
index edde02d..8ec96f8 100644
--- a/src/views/remind/probation.vue
+++ b/src/views/remind/probation.vue
@@ -130,12 +130,14 @@
 import '@riophae/vue-treeselect/dist/vue-treeselect.css'
 import { dateDifference } from '@/utils/myUtil'
 import ExportDialog from '@/components/ExportEmpBase.vue'
+import dictMixin from '../../utils/dictMixin'
 
 export default {
   components: {
     Pagination,
     ExportDialog
   },
+  mixins: [dictMixin],
   data() {
     return {
       dialog: {
@@ -175,8 +177,7 @@
         probationDate: '',
         probationStatus: ''
       },
-      sexOptions: [],
-      contractStatusOptions: [],
+
       dialogTitle: '正常转正',
       dynamicDateLabel: '转正日期',
       dialogShowContract: false,
@@ -204,14 +205,15 @@
       }
     }
   },
+  computed: {
+    // 字典选项计算属性
+    sexOptions() { return this.getDictOptions('sex') },
+    contractStatusOptions() { return this.getDictOptions('CONTRACTSTATUS') }
+  },
   mounted() {
     this.fetch()
-    this.getDicts('sex').then(response => {
-      this.sexOptions = response.data
-    })
-    this.getDicts('CONTRACTSTATUS').then(response => {
-      this.contractStatusOptions = response.data
-    })
+    // 字典数据已在登录时预加载,直接从 Vuex 获取
+    this.initDictTypes(['sex', 'CONTRACTSTATUS'])
   },
   methods: {
     search() {

--
Gitblit v1.8.0