|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div v-if="items.length">
|
|
|
- <LongStrip :items="items"></LongStrip>
|
|
|
+ <LongStrip :items="items" :showCancelDeliveryResumeBtn="true" @cancelDeliveryResume="handleCancelDeliveryResume"></LongStrip>
|
|
|
<CtPagination
|
|
|
:total="total"
|
|
|
:page="page.pageNo"
|
|
@@ -18,7 +18,9 @@
|
|
|
defineOptions({ name: 'position-delivery' })
|
|
|
import { ref } from 'vue'
|
|
|
import { dealDictObjData } from '@/utils/position'
|
|
|
-import { getJobDeliveryList } from '@/api/position'
|
|
|
+import { getJobDeliveryList, cancelDeliveryResume } from '@/api/position'
|
|
|
+import Confirm from '@/plugins/confirm'
|
|
|
+import Snackbar from '@/plugins/snackbar'
|
|
|
|
|
|
const total = ref(0)
|
|
|
const items = ref([])
|
|
@@ -45,6 +47,20 @@ const handleChangePage = (index) => {
|
|
|
page.value.pageNo = index
|
|
|
getPositionList()
|
|
|
}
|
|
|
+
|
|
|
+// 撤销投递简历
|
|
|
+const handleCancelDeliveryResume = async (id) => {
|
|
|
+ Confirm('系统提示', '是否确认撤销对该职位投递的简历?').then(async () => {
|
|
|
+ try {
|
|
|
+ await cancelDeliveryResume(id)
|
|
|
+ Snackbar.success('撤销投递简历成功')
|
|
|
+ page.value.pageNo = 1
|
|
|
+ getPositionList()
|
|
|
+ } catch {
|
|
|
+ Snackbar.error('撤销投递简历失败,请稍后再试')
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|