flat:商圈优化,导出文件优化
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { request } from '@umijs/max';
|
||||
import { downLoadXlsx } from '@/utils/downloadfile';
|
||||
import { getDateTimeForFilename } from '@/utils/tools';
|
||||
|
||||
export async function getCmsJobList(params?: API.ManagementList.ListParams) {
|
||||
return request<API.ManagementList.ManagePageResult>(`/api/cms/job/list`, {
|
||||
@@ -35,7 +36,11 @@ export async function delCmsJobIds(ids: string) {
|
||||
}
|
||||
|
||||
export async function exportCmsJob(params?: API.ManagementList.ListParams) {
|
||||
return downLoadXlsx(`/api/cms/job/export`, { params }, `job_data_${new Date().getTime()}.xlsx`);
|
||||
return downLoadXlsx(
|
||||
`/api/cms/job/export`,
|
||||
{ params },
|
||||
`岗位数据_${getDateTimeForFilename()}.xlsx`,
|
||||
);
|
||||
}
|
||||
|
||||
export async function exportCmsJobCandidates(ids: string) {
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
import { request } from '@umijs/max';
|
||||
import { downLoadXlsx } from '@/utils/downloadfile';
|
||||
import { getDateTimeForFilename } from '@/utils/tools';
|
||||
|
||||
export async function getCmsAreaList(params?: API.AreaBusiness.CircleParams) {
|
||||
return request<API.AreaBusiness.CirclePageResult>(`/api/cms/area/list`, {
|
||||
export async function getCmsAreaList(params?: API.BusinessParams.BusinessParams) {
|
||||
return request<API.AreaRegional.Regional>(`/api/cms/area/list`, {
|
||||
method: 'GET',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function addCmsAreaListRow(params?: API.AreaBusiness.CircleEditParams) {
|
||||
return request<API.AreaBusiness.CirclePageResult>(`/api/cms/area`, {
|
||||
export async function addCmsAreaListRow(params?: API.BusinessParams.BusinessParams) {
|
||||
return request<API.BusinessParams.Business>(`/api/cms/area`, {
|
||||
method: 'post',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function updateCmsAreaListRow(params?: API.AreaBusiness.CircleEditParams) {
|
||||
return request<API.AreaBusiness.CirclePageResult>(`/api/cms/area`, {
|
||||
export async function updateCmsAreaListRow(params?: API.BusinessParams.BusinessParams) {
|
||||
return request<API.BusinessParams.Business>(`/api/cms/area`, {
|
||||
method: 'put',
|
||||
data: params,
|
||||
});
|
||||
@@ -28,6 +28,37 @@ export async function deleteCmsAreaListRow(ids: number) {
|
||||
});
|
||||
}
|
||||
|
||||
export async function exportCmsAreaListRow(params?: API.AreaBusiness.CircleEditParams) {
|
||||
return downLoadXlsx(`/api/cms/area/export`, { params }, `dict_data_${new Date().getTime()}.xlsx`);
|
||||
export async function exportCmsAreaListRow(params?: API.BusinessParams.BusinessParams) {
|
||||
return downLoadXlsx(`/api/cms/area/export`, { params }, `区域_${getDateTimeForFilename()}.xlsx`);
|
||||
}
|
||||
|
||||
//区划
|
||||
// 获取
|
||||
export async function getCmsRegionalList(params?: API.AreaRegional.RegionalParams) {
|
||||
return request<API.AreaRegional.Regional>(`/api/cms/regional/getList`, {
|
||||
method: 'GET',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
// 更新
|
||||
export async function updateRegionalData(params?: API.AreaRegional.RegionalParams) {
|
||||
return request<API.AreaRegional.Regional>(`/api/cms/regional/updateRegionalData`, {
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function addCmsSaveRegionalData(params?: API.AreaRegional.RegionalParams) {
|
||||
return request<API.AreaRegional.Regional>(`/api/cms/regional/saveRegionalData`, {
|
||||
method: 'post',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除
|
||||
export async function deleteCmsRegionalData(ids: number) {
|
||||
return request<API.AreaRegional.Regional>(`/api/cms/regional/delRegionalData/${ids}`, {
|
||||
method: 'POST',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { request } from '@umijs/max';
|
||||
import { downLoadXlsx } from '@/utils/downloadfile';
|
||||
import { getDateTimeForFilename } from '@/utils/tools';
|
||||
|
||||
export async function getCmsIndustryList(params?: API.ClassifyIndustry.Params) {
|
||||
return request<API.ClassifyIndustry.IndustryResult>(`/api/cms/industry/list`, {
|
||||
@@ -38,6 +39,6 @@ export async function exportCmsIndustry(params?: API.ClassifyIndustry.Params) {
|
||||
return downLoadXlsx(
|
||||
`/api/cms/industry/export`,
|
||||
{ params },
|
||||
`dict_data_${new Date().getTime()}.xlsx`,
|
||||
`分析_${getDateTimeForFilename()}.xlsx`,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -9,9 +9,5 @@ export async function getCmsJobTitleList(params?: API.ClassifyJobs.Params) {
|
||||
}
|
||||
|
||||
export async function exportCmsJobTitleList(params?: API.ClassifyJobs.Params) {
|
||||
return downLoadXlsx(
|
||||
`/api/cms/job/titile/export`,
|
||||
{ params },
|
||||
`dict_data_${new Date().getTime()}.xlsx`,
|
||||
);
|
||||
return downLoadXlsx(`/api/cms/job/titile/export`, { params }, `dict_data_${f}.xlsx`);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { request } from '@umijs/max';
|
||||
import { downLoadXlsx } from '@/utils/downloadfile';
|
||||
import { getDateTimeForFilename } from '@/utils/tools';
|
||||
|
||||
export async function getCmsCompanyList(params?: API.CompanyList.Params) {
|
||||
return request<API.CompanyList.CompanyListResult>(`/api/cms/company/list`, {
|
||||
@@ -29,5 +30,9 @@ export async function putCmsCompanyList(params?: API.CompanyList.Params) {
|
||||
}
|
||||
|
||||
export async function exportCmsCompanyList(params?: API.CompanyList.Params) {
|
||||
return downLoadXlsx(`/cms/company/export`, { params }, `dict_data_${new Date().getTime()}.xlsx`);
|
||||
return downLoadXlsx(
|
||||
`/cms/company/export`,
|
||||
{ params },
|
||||
`dict_data_${getDateTimeForFilename()}.xlsx`,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { request } from '@umijs/max';
|
||||
import { downLoadXlsx } from '@/utils/downloadfile';
|
||||
import { getDateTimeForFilename } from '@/utils/tools';
|
||||
|
||||
export async function getCmsFairList(params?: API.JobFairList.Params) {
|
||||
return request<API.JobFairList.JobFairListResult>(`/api/cms/fair/list`, {
|
||||
@@ -29,7 +30,11 @@ export async function delCmsFairList(ids?: string) {
|
||||
}
|
||||
|
||||
export async function exportCmsFairList(params?: API.JobFairList.Params) {
|
||||
return downLoadXlsx(`/api/cms/fair/export`, { params }, `dict_data_${new Date().getTime()}.xlsx`);
|
||||
return downLoadXlsx(
|
||||
`/api/cms/fair/export`,
|
||||
{ params },
|
||||
`招聘会_${getDateTimeForFilename()}.xlsx`,
|
||||
);
|
||||
}
|
||||
|
||||
export async function getCmsFairId(jobFairId?: string) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { request } from '@umijs/max';
|
||||
import { downLoadXlsx } from '@/utils/downloadfile';
|
||||
import { getDateTimeForFilename } from '@/utils/tools';
|
||||
|
||||
// 查询字典数据列表
|
||||
export async function getDictDataList(
|
||||
@@ -37,7 +38,10 @@ export async function addDictData(params: API.System.DictData, options?: { [key:
|
||||
}
|
||||
|
||||
// 修改字典数据
|
||||
export async function updateDictData(params: API.System.DictData, options?: { [key: string]: any }) {
|
||||
export async function updateDictData(
|
||||
params: API.System.DictData,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Result>('/api/system/dict/data', {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
@@ -61,5 +65,9 @@ export function exportDictData(
|
||||
params?: API.System.DictDataListParams,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return downLoadXlsx(`/api/system/dict/data/export`, { params }, `dict_data_${new Date().getTime()}.xlsx`);
|
||||
return downLoadXlsx(
|
||||
`/api/system/dict/data/export`,
|
||||
{ params },
|
||||
`枚举_${getDateTimeForFilename()}.xlsx`,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { request } from '@umijs/max';
|
||||
import { downLoadXlsx } from '@/utils/downloadfile';
|
||||
import { getDateTimeForFilename } from '@/utils/tools';
|
||||
|
||||
// 查询字典数据列表
|
||||
export async function getDictDataList(
|
||||
@@ -67,6 +68,6 @@ export function exportDictData(
|
||||
return downLoadXlsx(
|
||||
`/api/cms/dict/data/export`,
|
||||
{ params },
|
||||
`dict_data_${new Date().getTime()}.xlsx`,
|
||||
`枚举_${getDateTimeForFilename()}.xlsx`,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user