From 83e370533cf7c5d7c82bb5b24ffd9c46db1e5963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=9B=AA=E4=BC=9F?= Date: Tue, 22 Oct 2024 13:39:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=83=BD=E6=BA=90=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=A8=A1=E5=9D=97=E7=9A=84=E5=AE=9E=E6=97=B6=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=89=8D=E7=AB=AF=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/ems/base/baseCollectDeviceInfo.js | 53 ++ hw-ui/src/api/ems/base/baseEnergyType.js | 53 ++ hw-ui/src/api/ems/base/baseMonitorInfo.js | 53 ++ hw-ui/src/api/ems/record/recordIOTInstant.js | 53 ++ hw-ui/src/components/Charts/Chart.vue | 51 ++ .../ems/base/baseCollectDeviceInfo/index.vue | 403 ++++++++++++ .../views/ems/base/baseEnergyType/index.vue | 294 +++++++++ .../base/baseMonitorInfoIOTDevice/index.vue | 418 +++++++++++++ .../ems/record/recordIOTInstant/index.vue | 590 ++++++++++++++++++ .../ems/report/currentIOTCurve/index.vue | 511 +++++++++++++++ 10 files changed, 2479 insertions(+) create mode 100644 hw-ui/src/api/ems/base/baseCollectDeviceInfo.js create mode 100644 hw-ui/src/api/ems/base/baseEnergyType.js create mode 100644 hw-ui/src/api/ems/base/baseMonitorInfo.js create mode 100644 hw-ui/src/api/ems/record/recordIOTInstant.js create mode 100644 hw-ui/src/components/Charts/Chart.vue create mode 100644 hw-ui/src/views/ems/base/baseCollectDeviceInfo/index.vue create mode 100644 hw-ui/src/views/ems/base/baseEnergyType/index.vue create mode 100644 hw-ui/src/views/ems/base/baseMonitorInfoIOTDevice/index.vue create mode 100644 hw-ui/src/views/ems/record/recordIOTInstant/index.vue create mode 100644 hw-ui/src/views/ems/report/currentIOTCurve/index.vue diff --git a/hw-ui/src/api/ems/base/baseCollectDeviceInfo.js b/hw-ui/src/api/ems/base/baseCollectDeviceInfo.js new file mode 100644 index 00000000..160d29c5 --- /dev/null +++ b/hw-ui/src/api/ems/base/baseCollectDeviceInfo.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询采集设备信息列表 +export function listBaseCollectDeviceInfo(query) { + return request({ + url: '/ems/base/baseCollectDeviceInfo/list', + method: 'get', + params: query + }) +} + +// 查询采集设备信息详细 +export function getBaseCollectDeviceInfo(objId) { + return request({ + url: '/ems/base/baseCollectDeviceInfo/' + objId, + method: 'get' + }) +} + +// 新增采集设备信息 +export function addBaseCollectDeviceInfo(data) { + return request({ + url: '/ems/base/baseCollectDeviceInfo', + method: 'post', + data: data + }) +} + +// 修改采集设备信息 +export function updateBaseCollectDeviceInfo(data) { + return request({ + url: '/ems/base/baseCollectDeviceInfo', + method: 'put', + data: data + }) +} + +// 删除采集设备信息 +export function delBaseCollectDeviceInfo(objId) { + return request({ + url: '/ems/base/baseCollectDeviceInfo/' + objId, + method: 'delete' + }) +} + +// 查询采集设备信息列表 +export function getCollectDeviceInfo(query) { + return request({ + url: '/ems/base/baseCollectDeviceInfo/getCollectDeviceInfo', + method: 'get', + params: query + }) +} diff --git a/hw-ui/src/api/ems/base/baseEnergyType.js b/hw-ui/src/api/ems/base/baseEnergyType.js new file mode 100644 index 00000000..cef29cd6 --- /dev/null +++ b/hw-ui/src/api/ems/base/baseEnergyType.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询能源类型信息列表 +export function listBaseEnergyType(query) { + return request({ + url: '/ems/base/baseEnergyType/list', + method: 'get', + params: query + }) +} + +// 查询能源类型信息详细 +export function getBaseEnergyType(objId) { + return request({ + url: '/ems/base/baseEnergyType/' + objId, + method: 'get' + }) +} + +// 新增能源类型信息 +export function addBaseEnergyType(data) { + return request({ + url: '/ems/base/baseEnergyType', + method: 'post', + data: data + }) +} + +// 修改能源类型信息 +export function updateBaseEnergyType(data) { + return request({ + url: '/ems/base/baseEnergyType', + method: 'put', + data: data + }) +} + +// 删除能源类型信息 +export function delBaseEnergyType(objId) { + return request({ + url: '/ems/base/baseEnergyType/' + objId, + method: 'delete' + }) +} + +// 查询能源类型信息列表 +export function getBaseEnergyTypeList(query) { + return request({ + url: '/ems/base/baseEnergyType/getBaseEnergyTypeList', + method: 'get', + params: query + }) +} diff --git a/hw-ui/src/api/ems/base/baseMonitorInfo.js b/hw-ui/src/api/ems/base/baseMonitorInfo.js new file mode 100644 index 00000000..466f5a3d --- /dev/null +++ b/hw-ui/src/api/ems/base/baseMonitorInfo.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询计量设备信息列表 +export function listBaseMonitorInfo(query) { + return request({ + url: '/ems/base/baseMonitorInfo/list', + method: 'get', + params: query + }) +} + +// 查询计量设备信息详细 +export function getBaseMonitorInfo(objId) { + return request({ + url: '/ems/base/baseMonitorInfo/' + objId, + method: 'get' + }) +} + +// 新增计量设备信息 +export function addBaseMonitorInfo(data) { + return request({ + url: '/ems/base/baseMonitorInfo', + method: 'post', + data: data + }) +} + +// 修改计量设备信息 +export function updateBaseMonitorInfo(data) { + return request({ + url: '/ems/base/baseMonitorInfo', + method: 'put', + data: data + }) +} + +// 删除计量设备信息 +export function delBaseMonitorInfo(objId) { + return request({ + url: '/ems/base/baseMonitorInfo/' + objId, + method: 'delete' + }) +} + +// 查询计量设备信息下拉树结构 +export function getMonitorInfoTree(data) { + return request({ + url: '/ems/base/baseMonitorInfo/monitorInfoTree', + method: 'post', + data: data + }) +} diff --git a/hw-ui/src/api/ems/record/recordIOTInstant.js b/hw-ui/src/api/ems/record/recordIOTInstant.js new file mode 100644 index 00000000..264b0939 --- /dev/null +++ b/hw-ui/src/api/ems/record/recordIOTInstant.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询物联网实时数据列表 +export function listRecordIOTInstant(query) { + return request({ + url: '/ems/record/recordIOTInstant/list', + method: 'get', + params: query + }) +} + +// 查询物联网实时数据详细 +export function getRecordIOTInstant(objid) { + return request({ + url: '/ems/record/recordIOTInstant/' + objid, + method: 'get' + }) +} + +// 新增物联网实时数据 +export function addRecordIOTInstant(data) { + return request({ + url: '/ems/record/recordIOTInstant', + method: 'post', + data: data + }) +} + +// 修改物联网实时数据 +export function updateRecordIOTInstant(data) { + return request({ + url: '/ems/record/recordIOTInstant', + method: 'put', + data: data + }) +} + +// 删除物联网实时数据 +export function delRecordIOTInstant(objid) { + return request({ + url: '/ems/record/recordIOTInstant/' + objid, + method: 'delete' + }) +} + +// 查询电实时数据(曲线) +export function iotInstantList(query) { + return request({ + url: '/ems/record/recordIOTInstant/iotInstantList', + method: 'get', + params: query + }) +} diff --git a/hw-ui/src/components/Charts/Chart.vue b/hw-ui/src/components/Charts/Chart.vue new file mode 100644 index 00000000..6eb0e6e3 --- /dev/null +++ b/hw-ui/src/components/Charts/Chart.vue @@ -0,0 +1,51 @@ + + + diff --git a/hw-ui/src/views/ems/base/baseCollectDeviceInfo/index.vue b/hw-ui/src/views/ems/base/baseCollectDeviceInfo/index.vue new file mode 100644 index 00000000..8daff491 --- /dev/null +++ b/hw-ui/src/views/ems/base/baseCollectDeviceInfo/index.vue @@ -0,0 +1,403 @@ + + + diff --git a/hw-ui/src/views/ems/base/baseEnergyType/index.vue b/hw-ui/src/views/ems/base/baseEnergyType/index.vue new file mode 100644 index 00000000..42567ebd --- /dev/null +++ b/hw-ui/src/views/ems/base/baseEnergyType/index.vue @@ -0,0 +1,294 @@ + + + diff --git a/hw-ui/src/views/ems/base/baseMonitorInfoIOTDevice/index.vue b/hw-ui/src/views/ems/base/baseMonitorInfoIOTDevice/index.vue new file mode 100644 index 00000000..5eef6149 --- /dev/null +++ b/hw-ui/src/views/ems/base/baseMonitorInfoIOTDevice/index.vue @@ -0,0 +1,418 @@ + + + diff --git a/hw-ui/src/views/ems/record/recordIOTInstant/index.vue b/hw-ui/src/views/ems/record/recordIOTInstant/index.vue new file mode 100644 index 00000000..9a99b973 --- /dev/null +++ b/hw-ui/src/views/ems/record/recordIOTInstant/index.vue @@ -0,0 +1,590 @@ + + + diff --git a/hw-ui/src/views/ems/report/currentIOTCurve/index.vue b/hw-ui/src/views/ems/report/currentIOTCurve/index.vue new file mode 100644 index 00000000..c6d656b8 --- /dev/null +++ b/hw-ui/src/views/ems/report/currentIOTCurve/index.vue @@ -0,0 +1,511 @@ + + + +