|
@@ -39,7 +39,11 @@
|
|
<div class="d-flex align-center">
|
|
<div class="d-flex align-center">
|
|
<span v-if="val.status === '1' && tab === 2" class="cursor-pointer actions" @click="toPay(val)">职位已关闭,点击激活职位</span>
|
|
<span v-if="val.status === '1' && tab === 2" class="cursor-pointer actions" @click="toPay(val)">职位已关闭,点击激活职位</span>
|
|
<span v-if="(val.status-0) === 99 && tab === 0" class="cursor-pointer color-primary" @click="toPay(val)">发布</span>
|
|
<span v-if="(val.status-0) === 99 && tab === 0" class="cursor-pointer color-primary" @click="toPay(val)">发布</span>
|
|
- <span v-if="(val.status - 0) !== 99 && val.status !== '1' && tab === 1" class="cursor-pointer actions" @click="handleAction(0, val)">{{ $t('common.close') }}</span>
|
|
|
|
|
|
+ <div v-if="(val.status - 0) !== 99 && val.status !== '1' && tab === 1">
|
|
|
|
+ <span class="cursor-pointer actions" @click="handleAction(2, val)">刷新</span>
|
|
|
|
+ <span class="lines"></span>
|
|
|
|
+ <span class="cursor-pointer actions" @click="handleAction(0, val)">{{ $t('common.close') }}</span>
|
|
|
|
+ </div>
|
|
<div v-if="tab !== 3">
|
|
<div v-if="tab !== 3">
|
|
<span class="lines"></span>
|
|
<span class="lines"></span>
|
|
<span class="cursor-pointer" :class="{'actions': val.edit}" :style="{'color': val.edit ? '#333' : '#999'}" @click="handleEdit(val)">编辑</span>
|
|
<span class="cursor-pointer" :class="{'actions': val.edit}" :style="{'color': val.edit ? '#333' : '#999'}" @click="handleEdit(val)">编辑</span>
|
|
@@ -75,7 +79,7 @@ import { ref } from 'vue'
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
import { timesTampChange } from '@/utils/date'
|
|
import { timesTampChange } from '@/utils/date'
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
-import { closeJobAdvertised, enableJobAdvertised, updatePositionExpireTime } from '@/api/position'
|
|
|
|
|
|
+import { closeJobAdvertised, enableJobAdvertised, refreshJobAdvertised, updatePositionExpireTime } from '@/api/position'
|
|
import Snackbar from '@/plugins/snackbar'
|
|
import Snackbar from '@/plugins/snackbar'
|
|
import confirmPaymentDialog from '@/components/pay/confirmPaymentDialog.vue'
|
|
import confirmPaymentDialog from '@/components/pay/confirmPaymentDialog.vue'
|
|
import { getEnterprisePubJobTypePermission } from '@/api/recruit/enterprise/position'
|
|
import { getEnterprisePubJobTypePermission } from '@/api/recruit/enterprise/position'
|
|
@@ -131,7 +135,7 @@ const formItem = ref({
|
|
]
|
|
]
|
|
})
|
|
})
|
|
|
|
|
|
-const apiList = [ closeJobAdvertised, enableJobAdvertised ]
|
|
|
|
|
|
+const apiList = [ closeJobAdvertised, enableJobAdvertised, refreshJobAdvertised ]
|
|
|
|
|
|
// 职位关闭、激活
|
|
// 职位关闭、激活
|
|
const handleAction = async (index, { id }) => {
|
|
const handleAction = async (index, { id }) => {
|