|
@@ -82,6 +82,7 @@ import { ref, watch } from 'vue'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
|
+import { getEnterprisePubJobTypePermission } from '@/api/recruit/enterprise/position'
|
|
|
import { closeJobAdvertised, enableJobAdvertised, refreshJobAdvertised, topJobAdvertised, updatePositionExpireTime, topJobAdvertisedCancel } from '@/api/position'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
|
|
@@ -192,8 +193,10 @@ const handleSubmit = async () => {
|
|
|
|
|
|
const router = useRouter()
|
|
|
// 职位编辑
|
|
|
-const handleEdit = (val) => {
|
|
|
+const handleEdit = async (val) => {
|
|
|
if (props.tab !== 1) return
|
|
|
+ const data = await getEnterprisePubJobTypePermission()
|
|
|
+ if (!data || !data.length) return Snackbar.warning('没有该操作权限,请联系平台管理员升级后再试')
|
|
|
router.push(`/recruit/enterprise/position/edit?id=${val.id}`)
|
|
|
}
|
|
|
</script>
|