|
@@ -132,17 +132,10 @@ const headers = ref([
|
|
|
{ title: '状态', key: 'status', sortable: false },
|
|
|
{ title: '操作', value: 'actions', sortable: false }
|
|
|
])
|
|
|
-// const unfit = { title: '类型', key: 'unfitType', sortable: false, value: item => item.type && item.type === '0' ? '简历不适合' : '面试不适合' }
|
|
|
-// const delivery = { title: '类型', key: 'deliveryType', sortable: false, value: item => item?.job?.hire ? '赏金职位' : '普通职位' }
|
|
|
|
|
|
watch(
|
|
|
() => props.tab,
|
|
|
(val) => {
|
|
|
- // const obj = val !== 4 ? delivery : unfit
|
|
|
- // const index = headers.value.indexOf(obj)
|
|
|
- // if (index === -1) headers.value.splice(-1, 0, obj)
|
|
|
- // else headers.value.splice(index, 1)
|
|
|
-
|
|
|
// 不合适不需要展示状态
|
|
|
if (val === 4) {
|
|
|
const obj = headers.value.find(e => e.key === 'status')
|
|
@@ -154,7 +147,9 @@ watch(
|
|
|
)
|
|
|
|
|
|
// 人才详情
|
|
|
-const handleToPersonDetail = async ({ userId, id }) => {
|
|
|
+const handleToPersonDetail = async (item) => {
|
|
|
+ const userId = item.userId
|
|
|
+ const id = props.tab === 0 ? item.id : item.cvRel.id
|
|
|
if (!userId || !id) return
|
|
|
// 改变状态
|
|
|
try {
|