diff --git a/src/api/well.js b/src/api/well.js index 5a7af1e..c6eff97 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -60,7 +60,8 @@ return qs.stringify(params, { indices: false }) } }) -}// 批量导入 +} +// 批量导入 export function batchImportWell(fileobj) { const param = new FormData() param.append('file', fileobj) @@ -91,3 +92,23 @@ } }) } +// 布防撤防 +export function bfcf(wellId, bfzt) { + return request({ + url: 'well/bfcf', + method: 'post', + params: { + wellId: wellId, + bfzt: bfzt + } + }) +} +// 闸井批量布防 +export function batchBfcf(params) { + return request({ + url: 'well/batchBfcf', + method: 'post', + params + }) +} + diff --git a/src/api/well.js b/src/api/well.js index 5a7af1e..c6eff97 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -60,7 +60,8 @@ return qs.stringify(params, { indices: false }) } }) -}// 批量导入 +} +// 批量导入 export function batchImportWell(fileobj) { const param = new FormData() param.append('file', fileobj) @@ -91,3 +92,23 @@ } }) } +// 布防撤防 +export function bfcf(wellId, bfzt) { + return request({ + url: 'well/bfcf', + method: 'post', + params: { + wellId: wellId, + bfzt: bfzt + } + }) +} +// 闸井批量布防 +export function batchBfcf(params) { + return request({ + url: 'well/batchBfcf', + method: 'post', + params + }) +} + diff --git a/src/views/wellManage/listWell.vue b/src/views/wellManage/listWell.vue index 7b9d02c..7058cc9 100644 --- a/src/views/wellManage/listWell.vue +++ b/src/views/wellManage/listWell.vue @@ -42,6 +42,8 @@ class="edit_btn"> 批量导入 + 一键布防 + 一键撤防 删除 新增 @@ -56,6 +58,11 @@ {{ scope.row[column.value] }} + + +