|
@@ -154,9 +154,16 @@ const dialogContent = ref('')
|
|
|
let handleActionInfo = {}
|
|
|
const apiList = [closeJobAdvertised, enableJobAdvertised, refreshJobAdvertised, topJobAdvertised, topJobAdvertisedCancel]
|
|
|
// 职位关闭、激活、刷新、置顶
|
|
|
-const handleAction = async (index, type, { id, jobFairName }, item) => {
|
|
|
+const handleAction = async (index, type, { id, jobFairName, jobFairId }, item) => {
|
|
|
+ // 招聘会职位激活、关闭跳转去招聘会进行操作
|
|
|
if (jobFairName) {
|
|
|
- uni.showToast({ title: '该职位属于招聘会,请前往招聘会内进行操作', icon: 'none', duration: 2000 })
|
|
|
+ if ([3,4].includes(index)) return // 招聘会职位置顶、取消置顶不可操作
|
|
|
+ uni.showToast({ title: '该职位属于招聘会,即将前往招聘会', icon: 'none', duration: 2000 })
|
|
|
+ setTimeout(() => {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pagesB/jobFair/details?id=${jobFairId}`
|
|
|
+ })
|
|
|
+ }, 1000)
|
|
|
return
|
|
|
}
|
|
|
const ids = type ? [] : [id]
|