Xiao_123 10 месяцев назад
Родитель
Сommit
942ba86b2e

+ 2 - 2
src/router/modules/enterprise.js

@@ -139,8 +139,8 @@ const enterprise = [
     component: Layout,
     name: 'personnelManagement',
     meta: {
-      title: '牛人管理',
-      enName: 'Personnel Management',
+      title: '精英管理',
+      enName: 'Meritocracy',
       icon: 'mdi-account-settings-outline'
     },
     children: [

+ 4 - 8
src/views/recruit/enterprise/personnelManagement/components/table.vue

@@ -51,7 +51,7 @@ import Snackbar from '@/plugins/snackbar'
 
 const { t } = useI18n()
 const emit = defineEmits(['refresh'])
-const props = defineProps({
+defineProps({
   tab: String,
   items: Array
 })
@@ -64,19 +64,15 @@ const badgeIcon = computed(() => (item) => {
 })
 
 const selected = ref([])
-const defaultHeaders = [
-  { title: '牛人', value: 'name' },
+const headers = ref([
+  { title: '姓名', value: 'name' },
   { title: '应聘职位', value: 'job.name' },
   { title: '求职状态', key: 'person.jobStatusName' },
   { title: '工作经验', key: 'person.expName' },
   { title: '最高学历', key: 'person.eduName' },
   { title: '岗位薪资', key: 'job', value: item => `${item.job.payFrom}-${item.job.payTo}/${item.job.payName}`},
   { title: '操作', value: 'actions' }
-]
-const headers = ref(defaultHeaders)
-if (props.tab === '5614') headers.value.splice(headers.value.length - 1, 0, { title: '推荐人', key: 'recommend' })
-else if (props.tab === '5615') headers.value.splice(headers.value.length - 1, 0, { title: '已结算赏金', key: 'settlementBounty' })
-else headers.value = defaultHeaders
+])
 
 // 人才详情
 const handleToPersonDetail = ({ userId, id }) => {

+ 3 - 12
src/views/recruit/enterprise/personnelManagement/index.vue

@@ -1,4 +1,4 @@
-<!-- 牛人管理 -->
+<!-- 精英管理 -->
 <template>
   <v-card class="pa-5 card-box">
     <div class="d-flex justify-space-between">
@@ -45,7 +45,7 @@ const textItems = ref({
   type: 'text',
   value: '',
   width: 250,
-  label: '搜索牛人姓名',
+  label: '搜索姓名',
   appendInnerIcon: 'mdi-magnify'
 })
 
@@ -53,11 +53,7 @@ const textItems = ref({
 const getTabData = () => {
   getDict('menduner_job_cv_status').then(({ data }) => {
     data = data?.length && data || []
-    tabList.value = [
-      ...data,
-      { dictType: 'menduner_job_cv_status', id: '5614', label: '已推荐', value: '5614' },
-      { dictType: 'menduner_job_cv_status', id: '5615', label: '已结算', value: '5615' }
-    ]
+    tabList.value = data
   })
 }
 getTabData()
@@ -104,11 +100,6 @@ const handleScreen = ({ value, key }) => {
 
 // 下拉筛选重置
 const handleScreenReset = () => {
-  if (tab.value === '5614' || tab.value === '5615') {
-    items.value = []
-    total.value = 0
-    return
-  }
   query.value = {
     pageSize: 10,
     pageNo: 1,