From e279ca669f16ccea3d2ef48dfda3d03862716b5c Mon Sep 17 00:00:00 2001 From: zhouhy Date: Fri, 13 Oct 2023 09:45:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E8=AE=A1=E9=87=8F/=E5=8D=95?= =?UTF-8?q?=E5=85=83=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/workUnit.js | 51 ++++ src/views/base/workUnit/index.vue | 361 ++++++++++++++++++++++++++++ src/views/report/pointDnb/index.vue | 2 + 3 files changed, 414 insertions(+) create mode 100644 src/api/base/workUnit.js create mode 100644 src/views/base/workUnit/index.vue diff --git a/src/api/base/workUnit.js b/src/api/base/workUnit.js new file mode 100644 index 0000000..6f56b59 --- /dev/null +++ b/src/api/base/workUnit.js @@ -0,0 +1,51 @@ +import request from '@/utils/request' + +// 查询统计单元信息列表 +export function listWorkUnit(query) { + return request({ + url: '/base/workUnit/list', + method: 'get', + params: query + }) +} + +// 查询统计单元信息详细 +export function getWorkUnit(objId) { + return request({ + url: '/base/workUnit/' + objId, + method: 'get' + }) +} + +// 新增统计单元信息 +export function addWorkUnit(data) { + return request({ + url: '/base/workUnit', + method: 'post', + data: data + }) +} + +// 修改统计单元信息 +export function updateWorkUnit(data) { + return request({ + url: '/base/workUnit', + method: 'put', + data: data + }) +} + +// 删除统计单元信息 +export function delWorkUnit(objId) { + return request({ + url: '/base/workUnit/' + objId, + method: 'delete' + }) +} +//查询统计单元信息信息下拉结构 +export function getWorkUnitTrees(){ + return request({ + url: '/base/workUnit/workUnitTree', + method: 'post' + }) +} diff --git a/src/views/base/workUnit/index.vue b/src/views/base/workUnit/index.vue new file mode 100644 index 0000000..1ac8b8b --- /dev/null +++ b/src/views/base/workUnit/index.vue @@ -0,0 +1,361 @@ + + + diff --git a/src/views/report/pointDnb/index.vue b/src/views/report/pointDnb/index.vue index 9e55e7a..b773a89 100644 --- a/src/views/report/pointDnb/index.vue +++ b/src/views/report/pointDnb/index.vue @@ -329,7 +329,9 @@ export default { /** 查询计量设备下拉树结构 */ getDeptTrees() { + getMonitorInfoTree().then(response => { + console.log(response) this.deptOptions = response.data; }); },