|
@@ -50,11 +50,10 @@ import Snackbar from '@/plugins/snackbar'
|
|
|
|
|
|
const { t } = useI18n()
|
|
const { t } = useI18n()
|
|
const emit = defineEmits(['refresh'])
|
|
const emit = defineEmits(['refresh'])
|
|
-defineProps({
|
|
|
|
|
|
+const props = defineProps({
|
|
tab: String,
|
|
tab: String,
|
|
items: Array
|
|
items: Array
|
|
})
|
|
})
|
|
-
|
|
|
|
const badgeColor = computed(() => (item) => {
|
|
const badgeColor = computed(() => (item) => {
|
|
return (item.person && item.person.sex) ? (item.person.sex === '1' ? '#1867c0' : 'error') : 'error'
|
|
return (item.person && item.person.sex) ? (item.person.sex === '1' ? '#1867c0' : 'error') : 'error'
|
|
})
|
|
})
|
|
@@ -64,7 +63,7 @@ const badgeIcon = computed(() => (item) => {
|
|
})
|
|
})
|
|
|
|
|
|
const selected = ref([])
|
|
const selected = ref([])
|
|
-const headers = [
|
|
|
|
|
|
+const defaultHeaders = [
|
|
{ title: '牛人', value: 'name' },
|
|
{ title: '牛人', value: 'name' },
|
|
{ title: '应聘职位', value: 'job.name' },
|
|
{ title: '应聘职位', value: 'job.name' },
|
|
{ title: '求职状态', key: 'person.jobStatusName' },
|
|
{ title: '求职状态', key: 'person.jobStatusName' },
|
|
@@ -73,6 +72,10 @@ const headers = [
|
|
{ title: '岗位薪资', key: 'job', value: item => `${item.job.payFrom}-${item.job.payTo}/${item.job.payName}`},
|
|
{ title: '岗位薪资', key: 'job', value: item => `${item.job.payFrom}-${item.job.payTo}/${item.job.payName}`},
|
|
{ title: '操作', value: 'actions' }
|
|
{ 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 }) => {
|
|
const handleToPersonDetail = ({ userId, id }) => {
|