|
@@ -154,6 +154,9 @@ const handleChangePage = (e) =>{
|
|
|
// 面试邀请
|
|
|
const itemData = ref({})
|
|
|
const handleInvite = ({ userId }) => {
|
|
|
+ // 企业必须有招聘中的职位才能发起沟通
|
|
|
+ if (!selectItems.value.items.length) return Snackbar.warning('请先发布职位')
|
|
|
+
|
|
|
const job = selectItems.value.items.find(e => e.value === query.value.jobId).data
|
|
|
itemData.value = {
|
|
|
userId,
|
|
@@ -187,7 +190,7 @@ const handleSubmit = async () => {
|
|
|
|
|
|
// 立即沟通
|
|
|
const handleCommunicate = async (item) => {
|
|
|
- // // 企业必须有招聘中的职位才能发起沟通
|
|
|
+ // 企业必须有招聘中的职位才能发起沟通
|
|
|
if (!selectItems.value.items.length) return Snackbar.warning('请先发布职位')
|
|
|
const userId = item.userId
|
|
|
if (!userId) return
|