From e96096040254834fd378114e5162118e617b1c71 Mon Sep 17 00:00:00 2001 From: zhouhy Date: Tue, 10 Oct 2023 17:22:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AE=A1=E9=87=8F=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E6=A0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/monitorInfo.js | 6 + src/api/report/DayDnb.js | 44 +++ src/api/report/pointDnb.js | 51 +++ src/views/base/monitorInfo/index.vue | 3 +- src/views/report/DayDnb/index.vue | 430 ++++++++++++++++++++++++++ src/views/report/pointDnb/index.vue | 443 +++++++++++++++++++++++++++ src/views/system/user/index.vue | 3 +- 7 files changed, 978 insertions(+), 2 deletions(-) create mode 100644 src/api/report/DayDnb.js create mode 100644 src/api/report/pointDnb.js create mode 100644 src/views/report/DayDnb/index.vue create mode 100644 src/views/report/pointDnb/index.vue diff --git a/src/api/base/monitorInfo.js b/src/api/base/monitorInfo.js index b7c42d0..1666b79 100644 --- a/src/api/base/monitorInfo.js +++ b/src/api/base/monitorInfo.js @@ -42,3 +42,9 @@ export function delMonitorInfo(objId) { method: 'delete' }) } +export function getMointorListLike(monitorName){ + return request({ + url:'/base/monitorInfo/like/'+monitorName, + method:'get' + }) +} diff --git a/src/api/report/DayDnb.js b/src/api/report/DayDnb.js new file mode 100644 index 0000000..e2d66e2 --- /dev/null +++ b/src/api/report/DayDnb.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询电日耗报列表 +export function listDayDnb(query) { + return request({ + url: '/report/DayDnb/list', + method: 'get', + params: query + }) +} + +// 查询电日耗报详细 +export function getDayDnb(objId) { + return request({ + url: '/report/DayDnb/' + objId, + method: 'get' + }) +} + +// 新增电日耗报 +export function addDayDnb(data) { + return request({ + url: '/report/DayDnb', + method: 'post', + data: data + }) +} + +// 修改电日耗报 +export function updateDayDnb(data) { + return request({ + url: '/report/DayDnb', + method: 'put', + data: data + }) +} + +// 删除电日耗报 +export function delDayDnb(objId) { + return request({ + url: '/report/DayDnb/' + objId, + method: 'delete' + }) +} diff --git a/src/api/report/pointDnb.js b/src/api/report/pointDnb.js new file mode 100644 index 0000000..4351c98 --- /dev/null +++ b/src/api/report/pointDnb.js @@ -0,0 +1,51 @@ +import request from '@/utils/request' + +// 查询电整点耗量报表列表 +export function listPointDnb(query) { + return request({ + url: '/report/pointDnb/list', + method: 'get', + params: query + }) +} + +// 查询电整点耗量报表详细 +export function getPointDnb(objId) { + return request({ + url: '/report/pointDnb/' + objId, + method: 'get' + }) +} + +// 新增电整点耗量报表 +export function addPointDnb(data) { + return request({ + url: '/report/pointDnb', + method: 'post', + data: data + }) +} + +// 修改电整点耗量报表 +export function updatePointDnb(data) { + return request({ + url: '/report/pointDnb', + method: 'put', + data: data + }) +} + +// 删除电整点耗量报表 +export function delPointDnb(objId) { + return request({ + url: '/report/pointDnb/' + objId, + method: 'delete' + }) +} +//查询设备计量设备信息下拉结构 +export function getMonitorInfoTree(){ + return request({ + url: '/base/monitorInfo/monitorInfoTree', + method: 'post' + }) +} diff --git a/src/views/base/monitorInfo/index.vue b/src/views/base/monitorInfo/index.vue index b3b9b69..834b41a 100644 --- a/src/views/base/monitorInfo/index.vue +++ b/src/views/base/monitorInfo/index.vue @@ -267,7 +267,8 @@ export default { { key: 13, label: `更新人`, visible: false }, { key: 14, label: `更新时间`, visible: false }, { key: 15, label: `计量设备编号`, visible: true }, - ] + ], + }; }, created() { diff --git a/src/views/report/DayDnb/index.vue b/src/views/report/DayDnb/index.vue new file mode 100644 index 0000000..a10a333 --- /dev/null +++ b/src/views/report/DayDnb/index.vue @@ -0,0 +1,430 @@ + + + diff --git a/src/views/report/pointDnb/index.vue b/src/views/report/pointDnb/index.vue new file mode 100644 index 0000000..b9eeecb --- /dev/null +++ b/src/views/report/pointDnb/index.vue @@ -0,0 +1,443 @@ + + + diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index ae87fe4..5812938 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -476,6 +476,7 @@ export default { } ); }, + //this /** 查询部门下拉树结构 */ getDeptTree() { deptTreeSelect().then(response => { @@ -667,4 +668,4 @@ export default { } } }; - \ No newline at end of file +