diff --git a/src/api/xunjian.js b/src/api/xunjian.js index 8f733ca4bd75a3d1a611a92d62fb29c1433c3075..5bd1e19d3aceb42c3939b93b581b261aa42919ea 100644 --- a/src/api/xunjian.js +++ b/src/api/xunjian.js @@ -1,4 +1,4 @@ -import { getReq, postReq } from '@/utils/requestUtil'; +import { getReq, postReq, putReq } from '@/utils/requestUtil'; export function getXunJianDownloadUrlApi(idList) { return getReq('/ranger/inspection/api/v1/jobs/export', { jobIdList: idList.join(',') }); @@ -7,3 +7,15 @@ export function getXunJianDownloadUrlApi(idList) { export function addXunJianTaskApi(data) { return postReq('/ranger/inspection/api/v1/jobs/temporary', data); } + +export function getRegionInfoApi(id) { + return getReq(`/ranger/inspection/api/v1/region/${id}`); +} + +export function addRegionApi(data) { + return postReq('/ranger/inspection/api/v1/region', data); +} + +export function editRegionApi(data) { + return putReq(`ranger/inspection/api/v1/region`, data); +} diff --git a/src/components/table/more_item.vue b/src/components/table/more_item.vue index fdcb9841fa8e33070b510723fd7da544db0f8382..3e7c0fdeb6f8c9585f36bf7c9cd2127d60870757 100644 --- a/src/components/table/more_item.vue +++ b/src/components/table/more_item.vue @@ -14,9 +14,10 @@ export default {