|
@@ -3,6 +3,7 @@
|
|
<div class="text-end mb-3">
|
|
<div class="text-end mb-3">
|
|
<v-btn color="primary" class="mr-3" @click="handleAdd">新增职位</v-btn>
|
|
<v-btn color="primary" class="mr-3" @click="handleAdd">新增职位</v-btn>
|
|
<v-btn color="primary" variant="outlined" @click="handleJoin">选择已发布的职位加入招聘会</v-btn>
|
|
<v-btn color="primary" variant="outlined" @click="handleJoin">选择已发布的职位加入招聘会</v-btn>
|
|
|
|
+ <!-- <v-btn :loading="exportLoading" prepend-icon="mdi-export-variant" color="primary" variant="tonal" class="ml-3" @click="handleExport">职位导出</v-btn> -->
|
|
</div>
|
|
</div>
|
|
<JobItem :items="jobList" @refresh="getJobList"></JobItem>
|
|
<JobItem :items="jobList" @refresh="getJobList"></JobItem>
|
|
|
|
|
|
@@ -76,9 +77,9 @@ import { useRouter, useRoute } from 'vue-router'
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
import Snackbar from '@/plugins/snackbar'
|
|
import Snackbar from '@/plugins/snackbar'
|
|
import { getEnterprisePubJobTypePermission } from '@/api/recruit/enterprise/position'
|
|
import { getEnterprisePubJobTypePermission } from '@/api/recruit/enterprise/position'
|
|
-
|
|
|
|
import { getJobAdvertisedList } from '@/api/position'
|
|
import { getJobAdvertisedList } from '@/api/position'
|
|
-import Confirm from '@/plugins/confirm'
|
|
|
|
|
|
+import download from '@/utils/download'
|
|
|
|
+// import Confirm from '@/plugins/confirm'
|
|
|
|
|
|
const props = defineProps({ id: [String, Number]})
|
|
const props = defineProps({ id: [String, Number]})
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
@@ -147,8 +148,20 @@ const getPositionList = async () => {
|
|
positionLoading.value = false
|
|
positionLoading.value = false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
getJobList()
|
|
getJobList()
|
|
|
|
+
|
|
|
|
+// // 导出参加双选会职位
|
|
|
|
+// const exportLoading = ref(false)
|
|
|
|
+// const handleExport = async () => {
|
|
|
|
+// exportLoading.value = true
|
|
|
|
+// try {
|
|
|
|
+// const data = await getJobFairAdvertisedExport()
|
|
|
|
+// download.excel(data, '招聘会职位列表' + '.xlsx')
|
|
|
|
+// } finally {
|
|
|
|
+// exportLoading.value = false
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|