luoyb
2024-05-05 d6f1a0ecac66466fcd373e471f0ac2c460efee6c
src/views/dashboard/onTheJobUser.vue
@@ -41,6 +41,7 @@
        <el-table-column show-overflow-tooltip prop="nativePlace" :formatter="nativePlaceFormat" label="籍贯" width="80" />
        <el-table-column show-overflow-tooltip prop="telePhone" label="联系电话" width="110" />
        <el-table-column show-overflow-tooltip prop="entryDate" label="入职日期" width="110" />
        <el-table-column show-overflow-tooltip prop="insuranceTypeName" label="社保档位" min-width="120" />
        <el-table-column show-overflow-tooltip prop="empStatus" label="员工状态" width="80">
          <template slot-scope="scope">
            <span>{{ gzdStateList[scope.row.empStatus] }}&nbsp;</span>
@@ -111,6 +112,7 @@
      },
      educationOptions: [],
      nativePlaceOptions: [],
      insuranceOptions: [],
      sexOptions: [],
      empTypeOptions: [],
      nationOptions: []
@@ -139,6 +141,9 @@
    this.getDicts('NATION').then(response => {
      this.nationOptions = response.data
    })
    this.getDicts('INSURANCETYPE').then(response => {
      this.insuranceTypeOptions = response.data
    })
  },
  methods: {
    educationFormat(row, column) {
@@ -147,6 +152,9 @@
    nativePlaceFormat(row, column) {
      return this.selectDictLabel(this.nativePlaceOptions, row.nativePlace)
    },
    insuranceTypeFormat(row,colum){
      return this.selectDictLabel(this.insuranceTypeOptions, row.insuranceType)
    },
    empTypeFormat(row, column) {
      return this.selectDictLabel(this.empTypeOptions, row.empType)
    },