|
@@ -66,10 +66,6 @@
|
|
|
></confirmPaymentDialog>
|
|
|
|
|
|
<Loading :visible="loading"></Loading>
|
|
|
-
|
|
|
- <CtDialog :visible="showExpire" :widthType="2" titleClass="text-h6" title="修改职位到期时间" @close="showExpire = false; expireTimeId = null" @submit="handleSubmit">
|
|
|
- <CtForm v-if="showExpire" ref="CtFormRef" :items="formItem" style="height: 100px;"></CtForm>
|
|
|
- </CtDialog>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
@@ -79,7 +75,7 @@ import { ref } from 'vue'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
|
-import { closeJobAdvertised, enableJobAdvertised, refreshJobAdvertised, updatePositionExpireTime } from '@/api/position'
|
|
|
+import { closeJobAdvertised, enableJobAdvertised, refreshJobAdvertised } from '@/api/position'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
import confirmPaymentDialog from '@/components/pay/confirmPaymentDialog.vue'
|
|
|
import { getEnterprisePubJobTypePermission } from '@/api/recruit/enterprise/position'
|
|
@@ -118,23 +114,6 @@ const paySuccess = async () => {
|
|
|
}, 1000)
|
|
|
}
|
|
|
|
|
|
-const showExpire = ref(false)
|
|
|
-const CtFormRef = ref()
|
|
|
-const formItem = ref({
|
|
|
- options: [
|
|
|
- {
|
|
|
- type: 'datePicker',
|
|
|
- key: 'time',
|
|
|
- value: null,
|
|
|
- format: 'YYYY-MM-DD',
|
|
|
- label: '到期时间 *',
|
|
|
- labelWidth: 110,
|
|
|
- disabledDate: true,
|
|
|
- teleported: true
|
|
|
- }
|
|
|
- ]
|
|
|
-})
|
|
|
-
|
|
|
const apiList = [ closeJobAdvertised, enableJobAdvertised, refreshJobAdvertised ]
|
|
|
|
|
|
// 职位关闭、激活
|
|
@@ -160,23 +139,6 @@ const handleEdit = async (val) => {
|
|
|
router.push(`/recruit/enterprise/hirePosition/edit?id=${val.id}`)
|
|
|
}
|
|
|
|
|
|
-// 职位过期时间修改
|
|
|
-const expireTimeId = ref('')
|
|
|
-const handleUpdateExpireTime = (item) => {
|
|
|
- expireTimeId.value = item.id
|
|
|
- showExpire.value = true
|
|
|
-}
|
|
|
-const handleSubmit = async () => {
|
|
|
- // const { valid } = await CtFormRef.value.formRef.validate()
|
|
|
- // if (!valid) return
|
|
|
- const time = formItem.value.options.find(e => e.key === 'time').value
|
|
|
- if (!time) return Snackbar.warning('请选择职位到期时间')
|
|
|
- await updatePositionExpireTime({ id: expireTimeId.value, time })
|
|
|
- expireTimeId.value = ''
|
|
|
- showExpire.value = false
|
|
|
- emit('refresh')
|
|
|
-}
|
|
|
-
|
|
|
// 职位详情
|
|
|
const handleDetail = async (val) => {
|
|
|
if (!val.id) return
|