|
@@ -17,7 +17,8 @@
|
|
|
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
|
<el-button type="primary" plain @click="handleAdd"><Icon icon="ep:plus" class="mr-5px" /> 新增</el-button>
|
|
|
- <el-button v-if="showExport" type="primary" plain @click="handleExport"><Icon icon="ep:download" class="mr-5px" /> 导出参加招聘会职位列表</el-button>
|
|
|
+ <el-button type="primary" :loading="exportLoading" plain @click="handleExport"><Icon icon="ep:download" class="mr-5px" /> 参加招聘会职位列表导出</el-button>
|
|
|
+ <el-button type="primary" :loading="exportDeliveryLoading" plain @click="handleExportDelivery"><Icon icon="ep:download" class="mr-5px" /> 招聘会职位投递情况导出</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</ContentWrap>
|
|
@@ -129,8 +130,7 @@ const handleRemoveWhiteList = async (enterpriseName: string) => {
|
|
|
} catch (err) {}
|
|
|
}
|
|
|
|
|
|
-const showExport = ref(true) // 导出参加招聘会职位列表
|
|
|
-const exportLoading = ref(false) // 导出的加载中
|
|
|
+const exportLoading = ref(false)
|
|
|
/** 导出按钮操作 */
|
|
|
const handleExport = async () => {
|
|
|
try {
|
|
@@ -146,6 +146,22 @@ const handleExport = async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// 招聘会投递情况导出
|
|
|
+const exportDeliveryLoading = ref(false)
|
|
|
+const handleExportDelivery = async () => {
|
|
|
+ try {
|
|
|
+ // 导出的二次确认
|
|
|
+ await message.exportConfirm()
|
|
|
+ // 发起导出
|
|
|
+ exportDeliveryLoading.value = true
|
|
|
+ const data = await JobFairWhiteApi.exportJobFairApplyData(queryParams.value.jobFairId)
|
|
|
+ download.excel(data, '招聘会职位投递情况.xls')
|
|
|
+ } catch {
|
|
|
+ } finally {
|
|
|
+ exportDeliveryLoading.value = false
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
/** 初始化 */
|
|
|
const { currentRoute } = useRouter() // 路由
|
|
|
const { delView } = useTagsViewStore() // 视图操作
|