Explorar o código

职位已关闭只能操作完成面试

lifanagju_citu hai 7 meses
pai
achega
1453f9949c

+ 2 - 2
src/views/recruit/enterprise/interviewManagement/components/item.vue

@@ -151,7 +151,7 @@ const obj = {
 const actionItems = (item) => {
   const status = item?.status
   const jobClosed = item.job?.status === '1'
-  const type = jobClosed && obj[status] ? [0] : obj[status]
+  const type = jobClosed && obj[status] ? [0] : obj[status] // 职位已关闭只能操作完成面试
   if (!type || !type.length) return []
   let data = type.map(e => actions.value[e])
   return data
@@ -169,7 +169,7 @@ const handleFinish = (item) => {
 
 // 操作按钮
 const handleActionClick = (value, item) => {
-  if (item.job?.status === '1' && (value === 'edit')) return Snackbar.warning('职位已关闭!')
+  if (item.job?.status === '1' && (value !== 'completed')) return Snackbar.warning('职位已关闭!')
   // 修改、重新邀约
   if (value === 'edit') {
     itemData.value = item