Kaynağa Gözat

职位列表导出

lifanagju_citu 8 ay önce
ebeveyn
işleme
1f71fecf92

+ 2 - 1
src/api/position.js

@@ -170,8 +170,9 @@ export const getJobAdvertisedList = async (params) => {
 
 // 招聘端-导出招聘职位 Excel
 export const getJobAdvertisedExport = async (params) => {
-  return await request.get({
+  return await request.download({
     url: '/app-api/menduner/system/recruit/job-advertised/export',
+    // responseType: 'blob',
     params
   })
 }

+ 0 - 1
src/views/recruit/enterprise/positionManagement/index.vue

@@ -85,7 +85,6 @@ const handleAdd = async () => {
 
 const handleExport = async () => {
   const data = await getJobAdvertisedExport(query.value)
-  console.log('getJobAdvertisedExport', 11111, data)
   const label = tabList.find(e => e.value === tab.value)?.label || ''
   const txt = `职位列表${label? '(' + label + ')' : ''}`
   download.excel(data, txt)