import { getReq, postReq } from '@/utils/requestUtil'; import langUtils from '@/utils/langUtils'; export function getXunJianDownloadUrlApi(idList) { return getReq('/ranger/inspection/api/v1/jobs/export', { jobIdList: idList.join(',') }); } export function getAreaListDataApi() { return getReq(`/ranger/inspection/api/v1/region/list`); } export function getBusinessListApi() { return getReq( `/api/v1/parameters/business/list?paramModule=rpis_route_schedule¶mCode=inspection_state¶mLocale=${langUtils.get()}`, ); } export function getBanZuListApi() { return getReq( `/api/v1/parameters/business/list?paramModule=rpis_route_schedule¶mCode=shift_type¶mLocale=${langUtils.get()}`, ); } export function getTaskTypeApi() { return getReq( `/api/v1/parameters/business/list?paramModule=rpis_route_schedule¶mCode=job_type¶mLocale=${langUtils.get()}`, ); } export function addXunJianTaskApi(data) { return postReq('/ranger/inspection/api/v1/jobs/temporary', data); }