From 9bfc57623b5ae7a5cccf8e5e3c615a706fe58d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E8=90=BD=28YangLei=29?= Date: Tue, 13 Jul 2021 09:43:34 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=20=E5=B7=A1=E6=A3=80=E7=AE=A1?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E5=9C=B0=E5=8C=BA=E9=85=8D=E7=BD=AE=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/xunjian.js | 14 ++++- src/components/table/more_item.vue | 5 +- src/components/table/table.vue | 2 - src/pages/xunjian/basic/region/add_edit.vue | 68 +++++++++++++++++++++ src/pages/xunjian/basic/region/index.vue | 67 +++++++++++++++++++- 5 files changed, 150 insertions(+), 6 deletions(-) create mode 100644 src/pages/xunjian/basic/region/add_edit.vue diff --git a/src/api/xunjian.js b/src/api/xunjian.js index 8f733ca..5bd1e19 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 fdcb984..3e7c0fd 100644 --- a/src/components/table/more_item.vue +++ b/src/components/table/more_item.vue @@ -14,9 +14,10 @@ export default {