| | |
| | | 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: { |
| | |
| | | probationDate: '', |
| | | probationStatus: '' |
| | | }, |
| | | sexOptions: [], |
| | | contractStatusOptions: [], |
| | | |
| | | dialogTitle: '正常转正', |
| | | dynamicDateLabel: '转正日期', |
| | | dialogShowContract: false, |
| | |
| | | } |
| | | } |
| | | }, |
| | | 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() { |