|
@@ -52,8 +52,6 @@
|
|
|
</div>
|
|
|
<div class="bottom-item" v-ellipse-tooltip :style="{'text-align': val.hrName ? 'center' : 'start'}">
|
|
|
<span>{{ $t('position.refreshTime') }} :{{ val.refreshTime ? timesTampChange(val.refreshTime, 'Y-M-D h:m') : '暂无' }}</span>
|
|
|
- <span class="septal-line"></span>
|
|
|
- <span>到期时间:{{ val.expireTime ? timesTampChange(val.expireTime, 'Y-M-D') : '长期有效' }}</span>
|
|
|
</div>
|
|
|
<div class="d-flex bottom-item justify-end">
|
|
|
<div class="ml-10 d-flex">
|
|
@@ -99,10 +97,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"></CtForm>
|
|
|
- </CtDialog> -->
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
@@ -112,7 +106,7 @@ 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, createTradeOrder } from '@/api/position'
|
|
|
+import { closeJobAdvertised, enableJobAdvertised, refreshJobAdvertised, topJobAdvertised, topJobAdvertisedCancel, createTradeOrder } from '@/api/position'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
import { useUserStore } from '@/store/user'
|
|
|
import Confirm from '@/plugins/confirm'
|
|
@@ -133,25 +127,9 @@ const props = defineProps({
|
|
|
jobNum: Number
|
|
|
})
|
|
|
|
|
|
-// const showExpire = ref(false)
|
|
|
-// const CtFormRef = ref()
|
|
|
const loading = ref(false)
|
|
|
const selectAll = ref(false) // 全选
|
|
|
const selectList = ref([]) // 选中列表
|
|
|
-// const formItem = ref({
|
|
|
-// options: [
|
|
|
-// {
|
|
|
-// type: 'datePicker',
|
|
|
-// key: 'time',
|
|
|
-// value: null,
|
|
|
-// format: 'YYYY-MM-DD',
|
|
|
-// label: '到期时间 *',
|
|
|
-// labelWidth: 110,
|
|
|
-// teleported: true,
|
|
|
-// disabledDate: true
|
|
|
-// }
|
|
|
-// ]
|
|
|
-// })
|
|
|
const dealSelect = () => {
|
|
|
selectList.value = props.items.filter(e => e.select).map(k => k.id)
|
|
|
}
|
|
@@ -291,21 +269,6 @@ const handleAction = async (index, type, { id }, item) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 职位过期时间修改
|
|
|
-// const expireTimeId = ref('')
|
|
|
-// const handleUpdateExpireTime = (item) => {
|
|
|
-// expireTimeId.value = item.id
|
|
|
-// showExpire.value = true
|
|
|
-// }
|
|
|
-// const handleSubmit = async () => {
|
|
|
-// 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 router = useRouter()
|
|
|
// 职位编辑
|
|
|
const handleEdit = async (val) => {
|