|
@@ -69,6 +69,8 @@
|
|
|
<el-form-item>
|
|
|
<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" :loading="exportJobLoading" plain @click="handleExportJob"><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-form-item>
|
|
|
</el-form>
|
|
|
</ContentWrap>
|
|
@@ -126,6 +128,8 @@ import ComparisonCard from './components/ComparisonCard.vue'
|
|
|
import { formatName } from '@/utils'
|
|
|
import { timesTampChange } from '@/utils/transform/date'
|
|
|
import { DICT_TYPE, getDictLabel } from '@/utils/dict'
|
|
|
+import { JobFairWhiteApi } from '@/api/menduner/system/jobFair/white'
|
|
|
+import download from '@/utils/download'
|
|
|
|
|
|
const route = useRoute() // 路由信息
|
|
|
const { id } = route.params
|
|
@@ -136,6 +140,7 @@ const currentItem = ref({})
|
|
|
const tableData = ref([])
|
|
|
const showDialog = ref(false)
|
|
|
const total = ref(0)
|
|
|
+const message = useMessage() // 消息弹窗
|
|
|
const page = reactive({ pageNo: 1, pageSize: 10 })
|
|
|
|
|
|
const queryFormRef = ref()
|
|
@@ -258,6 +263,39 @@ const dealTableData = () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+const exportLoading = ref(false)
|
|
|
+/** 导出按钮操作 */
|
|
|
+const handleExport = async () => {
|
|
|
+ try {
|
|
|
+ // 导出的二次确认
|
|
|
+ await message.exportConfirm()
|
|
|
+ // 发起导出
|
|
|
+ exportLoading.value = true
|
|
|
+ const data = await JobFairManageApi.exportDelivery({ ...queryParams, pageNo: 1 })
|
|
|
+ download.excel(data, '用户投递列表.xls')
|
|
|
+ } catch {
|
|
|
+ exportLoading.value = false
|
|
|
+ } finally {
|
|
|
+ exportLoading.value = false
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+const exportJobLoading = ref(false)
|
|
|
+/** 导出按钮操作 */
|
|
|
+const handleExportJob = async () => {
|
|
|
+ try {
|
|
|
+ // 导出的二次确认
|
|
|
+ await message.exportConfirm()
|
|
|
+ // 发起导出
|
|
|
+ exportLoading.value = true
|
|
|
+ const data = await JobFairWhiteApi.exportJobFairWhiteList(id)
|
|
|
+ download.excel(data, '招聘会职位列表.xls')
|
|
|
+ } catch {
|
|
|
+ } finally {
|
|
|
+ exportLoading.value = false
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const getList = async (typeName, details = '') => {
|
|
|
loading.value = true
|
|
|
try {
|