yubo
2026-04-06 6448ec15bfe0b65fb822a662105bceddc23b58d8
src/views/dashboard/HtUser.vue
@@ -58,10 +58,13 @@
<script>
// 引用翻页组件
import Pagination from '@/components/Pagination'
import dictMixin from '../../utils/dictMixin'
export default {
  components: {
    Pagination
  },
  mixins: [dictMixin],
  props: {
    dialogVisible: {
      type: Boolean,
@@ -97,7 +100,7 @@
        size: 15,
        num: 1
      },
      contractStatusOptions: [],
      list: [], // 给table显示的数据
      defaultProps: {
        children: 'children',
@@ -132,14 +135,13 @@
    // 是否为到期合同(number=12)
    isExpireContract() {
      return this.queryParams.number === '12' || this.queryParams.number === 12
    }
    },
    // 字典选项计算属性
    contractStatusOptions() { return this.getDictOptions('CONTRACTSTATUS') }
  },
  mounted() {
    setTimeout(() => {
      this.getDicts('CONTRACTSTATUS').then(response => {
        this.contractStatusOptions = response.data
      })
    }, 1000)
    // 字典数据已在登录时预加载,直接从 Vuex 获取
    this.initDictTypes(['CONTRACTSTATUS'])
  },
  methods: {
    contractStatusFormat(row, column) {