|
@@ -101,7 +101,7 @@ const handleAdd = async () => {
|
|
const data = await getEnterprisePubJobTypePermission()
|
|
const data = await getEnterprisePubJobTypePermission()
|
|
if (!data || !data.length) return Snackbar.warning('没有该操作权限,请联系平台管理员升级后再试')
|
|
if (!data || !data.length) return Snackbar.warning('没有该操作权限,请联系平台管理员升级后再试')
|
|
// 新增职位时查询是否有可发布职位数
|
|
// 新增职位时查询是否有可发布职位数
|
|
- await store.getEnterpriseInfo()
|
|
|
|
|
|
+ await store.getEnterpriseInfo(true)
|
|
if (baseInfo.value?.entitlement.publishJobCount <= 0) return Snackbar.warning('可发布职位数不足,请联系平台管理员')
|
|
if (baseInfo.value?.entitlement.publishJobCount <= 0) return Snackbar.warning('可发布职位数不足,请联系平台管理员')
|
|
router.push('/recruit/enterprise/position/add')
|
|
router.push('/recruit/enterprise/position/add')
|
|
await store.getEnterpriseUserAccountInfo()
|
|
await store.getEnterpriseUserAccountInfo()
|
|
@@ -110,7 +110,7 @@ const handleAdd = async () => {
|
|
const loading = ref(false)
|
|
const loading = ref(false)
|
|
// 获取职位列表
|
|
// 获取职位列表
|
|
const getPositionList = async () => {
|
|
const getPositionList = async () => {
|
|
- await store.getEnterpriseInfo()
|
|
|
|
|
|
+ await store.getEnterpriseInfo(true)
|
|
items.value = []; total.value = 0
|
|
items.value = []; total.value = 0
|
|
loading.value = true
|
|
loading.value = true
|
|
if (tab.value !== 3) {
|
|
if (tab.value !== 3) {
|