From 6e39dd48ff01c92c5d5162f1020ab3bb128bfe2e Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Mon, 21 Aug 2023 11:12:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=BD=E6=BA=90=E9=85=8D=E7=BD=AE&=E8=83=BD?= =?UTF-8?q?=E6=BA=90=E6=8A=84=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/energyPlc.js | 70 +++++ src/api/base/energyPlcConnect.js | 54 ++++ src/api/base/energyPlcParam.js | 54 ++++ src/api/base/energyQuantityRealtime.js | 54 ++++ src/api/base/energyType.js | 8 + src/api/monitoring/energyLimit.js | 63 ++++ src/styles/index.scss | 22 +- .../energyPlc/components/energyPlcAdd.vue | 116 +++++++ src/views/energy/base/energyPlc/index.vue | 218 +++++++++++++ .../components/energyPlcConnectAdd.vue | 96 ++++++ .../components/energyPlcParam.vue | 227 ++++++++++++++ .../components/energyPlcParamAdd.vue | 134 ++++++++ .../components/energyPlcParamView.vue | 127 ++++++++ .../energy/base/energyPlcConnect/index.vue | 245 +++++++++++++++ .../base/energyQuantityRealtime/index.vue | 151 +++++++++ src/views/energy/base/energyType/index.vue | 9 +- .../energyLimit/components/InputArea.vue | 37 +++ .../energyLimit/components/TimePickerArea.vue | 43 +++ .../energyLimit/components/energyLimitAdd.vue | 173 ++++++++++ .../energy/monitoring/energyLimit/index.vue | 222 +++++++++++++ .../energy/monitoring/energyLimit/index1.vue | 296 ++++++++++++++++++ src/views/group/base/groupClasses/index.vue | 3 +- 22 files changed, 2416 insertions(+), 6 deletions(-) create mode 100644 src/api/base/energyPlc.js create mode 100644 src/api/base/energyPlcConnect.js create mode 100644 src/api/base/energyPlcParam.js create mode 100644 src/api/base/energyQuantityRealtime.js create mode 100644 src/api/monitoring/energyLimit.js create mode 100644 src/views/energy/base/energyPlc/components/energyPlcAdd.vue create mode 100644 src/views/energy/base/energyPlc/index.vue create mode 100644 src/views/energy/base/energyPlcConnect/components/energyPlcConnectAdd.vue create mode 100644 src/views/energy/base/energyPlcConnect/components/energyPlcParam.vue create mode 100644 src/views/energy/base/energyPlcConnect/components/energyPlcParamAdd.vue create mode 100644 src/views/energy/base/energyPlcConnect/components/energyPlcParamView.vue create mode 100644 src/views/energy/base/energyPlcConnect/index.vue create mode 100644 src/views/energy/base/energyQuantityRealtime/index.vue create mode 100644 src/views/energy/monitoring/energyLimit/components/InputArea.vue create mode 100644 src/views/energy/monitoring/energyLimit/components/TimePickerArea.vue create mode 100644 src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue create mode 100644 src/views/energy/monitoring/energyLimit/index.vue create mode 100644 src/views/energy/monitoring/energyLimit/index1.vue diff --git a/src/api/base/energyPlc.js b/src/api/base/energyPlc.js new file mode 100644 index 00000000..3af7390f --- /dev/null +++ b/src/api/base/energyPlc.js @@ -0,0 +1,70 @@ +import request from '@/utils/request' + +// 创建能源实时数据库plc相关 +export function createEnergyPlc(data) { + return request({ + url: '/base/energy-plc/create', + method: 'post', + data: data + }) +} + +// 更新能源实时数据库plc相关 +export function updateEnergyPlc(data) { + return request({ + url: '/base/energy-plc/update', + method: 'put', + data: data + }) +} + +// 删除能源实时数据库plc相关 +export function deleteEnergyPlc(id) { + return request({ + url: '/base/energy-plc/delete?id=' + id, + method: 'delete' + }) +} + +// 获得能源实时数据库plc相关 +export function getEnergyPlc(id) { + return request({ + url: '/base/energy-plc/get?id=' + id, + method: 'get' + }) +} + +// 获得实时数据表列表(所有) +export function getEnergyPlcAll() { + return request({ + url: '/base/energy-plc/listAll', + method: 'get' + }) +} + +// 获取关联表编码 +export function getCode() { + return request({ + url: '/base/energy-plc/getCode', + method: 'get' + }) +} + +// 获得能源实时数据库plc相关分页 +export function getEnergyPlcPage(data) { + return request({ + url: '/base/energy-plc/page', + method: 'post', + data: data + }) +} + +// 导出能源实时数据库plc相关 Excel +export function exportEnergyPlcExcel(query) { + return request({ + url: '/base/energy-plc/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/base/energyPlcConnect.js b/src/api/base/energyPlcConnect.js new file mode 100644 index 00000000..3cac61eb --- /dev/null +++ b/src/api/base/energyPlcConnect.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建能源与对象的关联关系(一对多) +export function createEnergyPlcConnect(data) { + return request({ + url: '/base/energy-plc-connect/create', + method: 'post', + data: data + }) +} + +// 更新能源与对象的关联关系(一对多) +export function updateEnergyPlcConnect(data) { + return request({ + url: '/base/energy-plc-connect/update', + method: 'put', + data: data + }) +} + +// 删除能源与对象的关联关系(一对多) +export function deleteEnergyPlcConnect(id) { + return request({ + url: '/base/energy-plc-connect/delete?id=' + id, + method: 'delete' + }) +} + +// 获得能源与对象的关联关系(一对多) +export function getEnergyPlcConnect(id) { + return request({ + url: '/base/energy-plc-connect/get?id=' + id, + method: 'get' + }) +} + +// 获得能源与对象的关联关系(一对多)分页 +export function getEnergyPlcConnectPage(data) { + return request({ + url: '/base/energy-plc-connect/page', + method: 'post', + data: data + }) +} + +// 导出能源与对象的关联关系(一对多) Excel +export function exportEnergyPlcConnectExcel(query) { + return request({ + url: '/base/energy-plc-connect/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/base/energyPlcParam.js b/src/api/base/energyPlcParam.js new file mode 100644 index 00000000..4ec7cca9 --- /dev/null +++ b/src/api/base/energyPlcParam.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建能源plc详细点 +export function createEnergyPlcParam(data) { + return request({ + url: '/base/energy-plc-param/create', + method: 'post', + data: data + }) +} + +// 更新能源plc详细点 +export function updateEnergyPlcParam(data) { + return request({ + url: '/base/energy-plc-param/update', + method: 'put', + data: data + }) +} + +// 删除能源plc详细点 +export function deleteEnergyPlcParam(id) { + return request({ + url: '/base/energy-plc-param/delete?id=' + id, + method: 'delete' + }) +} + +// 获得能源plc详细点 +export function getEnergyPlcParam(id) { + return request({ + url: '/base/energy-plc-param/get?id=' + id, + method: 'get' + }) +} + +// 获得能源plc详细点分页 +export function getEnergyPlcParamPage(data) { + return request({ + url: '/base/energy-plc-param/page', + method: 'post', + data: data + }) +} + +// 导出能源plc详细点 Excel +export function exportEnergyPlcParamExcel(query) { + return request({ + url: '/base/energy-plc-param/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/base/energyQuantityRealtime.js b/src/api/base/energyQuantityRealtime.js new file mode 100644 index 00000000..9ff21be5 --- /dev/null +++ b/src/api/base/energyQuantityRealtime.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建后端统计 能源抄表 实时 +export function createEnergyQuantityRealtime(data) { + return request({ + url: '/base/energy-quantity-realtime/create', + method: 'post', + data: data + }) +} + +// 更新后端统计 能源抄表 实时 +export function updateEnergyQuantityRealtime(data) { + return request({ + url: '/base/energy-quantity-realtime/update', + method: 'put', + data: data + }) +} + +// 删除后端统计 能源抄表 实时 +export function deleteEnergyQuantityRealtime(id) { + return request({ + url: '/base/energy-quantity-realtime/delete?id=' + id, + method: 'delete' + }) +} + +// 获得后端统计 能源抄表 实时 +export function getEnergyQuantityRealtime(id) { + return request({ + url: '/base/energy-quantity-realtime/get?id=' + id, + method: 'get' + }) +} + +// 获得后端统计 能源抄表 实时分页 +export function getEnergyQuantityRealtimePage(data) { + return request({ + url: '/base/energy-quantity-realtime/page', + method: 'post', + data: data + }) +} + +// 导出后端统计 能源抄表 实时 Excel +export function exportEnergyQuantityRealtimeExcel(query) { + return request({ + url: '/base/energy-quantity-realtime/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/base/energyType.js b/src/api/base/energyType.js index b6dbe552..b8498ccb 100644 --- a/src/api/base/energyType.js +++ b/src/api/base/energyType.js @@ -43,6 +43,14 @@ export function getEnergyTypePage(data) { }) } +// 获得能源类型列表(获取所有) +export function getEnergyTypeListAll() { + return request({ + url: '/base/energy-type/listAll', + method: 'get' + }) +} + // 获得能源类型编码 export function getEnergyTypeCode() { return request({ diff --git a/src/api/monitoring/energyLimit.js b/src/api/monitoring/energyLimit.js new file mode 100644 index 00000000..0e9d2b7f --- /dev/null +++ b/src/api/monitoring/energyLimit.js @@ -0,0 +1,63 @@ +import request from '@/utils/request' + +// 创建能源监控配置 +export function createEnergyLimit(data) { + return request({ + url: '/monitoring/energy-limit/create', + method: 'post', + data: data + }) +} + +// 更新能源监控配置 +export function updateEnergyLimit(data) { + return request({ + url: '/monitoring/energy-limit/update', + method: 'put', + data: data + }) +} + +// 删除能源监控配置 +export function deleteEnergyLimit(id) { + return request({ + url: '/monitoring/energy-limit/delete?id=' + id, + method: 'delete' + }) +} + +// 获得能源监控配置 +export function getEnergyLimit(id) { + return request({ + url: '/monitoring/energy-limit/get?id=' + id, + method: 'get' + }) +} + +// 获得能源监控配置分页 +export function getEnergyLimitPage(data) { + return request({ + url: '/monitoring/energy-limit/page', + method: 'post', + data: data + }) +} + +// 导出能源监控配置 Excel +export function exportEnergyLimitExcel(query) { + return request({ + url: '/monitoring/energy-limit/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} + +// 获取详细参数列表 +export function getEnergyParamList(data) { + return request({ + url: '/monitoring/energy-limit/listParam', + method: 'post', + data: data + }) +} diff --git a/src/styles/index.scss b/src/styles/index.scss index 4fcd5acf..f77398f4 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -175,4 +175,24 @@ input, textarea{ ::-webkit-scrollbar-thumb:hover { background-color: rgba(144,147,153,.3); -} \ No newline at end of file +} + +// 抽屉head区域---start +.el-drawer__header { + padding-bottom: 20px; + margin-bottom: 23px; + font-size: 20px; + font-weight: 500; + color: rgba(0,0,0,0.85); + border-bottom: 1px solid rgba(233, 233, 233, 1); +} +.el-drawer__header > :first-child::before { + content: ''; + display: inline-block; + width: 4px; + height: 24px; + background-color: #0b58ff; + margin-right: 8px; + vertical-align: middle; +} +// 抽屉head区域---end \ No newline at end of file diff --git a/src/views/energy/base/energyPlc/components/energyPlcAdd.vue b/src/views/energy/base/energyPlc/components/energyPlcAdd.vue new file mode 100644 index 00000000..043a881d --- /dev/null +++ b/src/views/energy/base/energyPlc/components/energyPlcAdd.vue @@ -0,0 +1,116 @@ + + diff --git a/src/views/energy/base/energyPlc/index.vue b/src/views/energy/base/energyPlc/index.vue new file mode 100644 index 00000000..84629de4 --- /dev/null +++ b/src/views/energy/base/energyPlc/index.vue @@ -0,0 +1,218 @@ + + + diff --git a/src/views/energy/base/energyPlcConnect/components/energyPlcConnectAdd.vue b/src/views/energy/base/energyPlcConnect/components/energyPlcConnectAdd.vue new file mode 100644 index 00000000..a16804c6 --- /dev/null +++ b/src/views/energy/base/energyPlcConnect/components/energyPlcConnectAdd.vue @@ -0,0 +1,96 @@ + + diff --git a/src/views/energy/base/energyPlcConnect/components/energyPlcParam.vue b/src/views/energy/base/energyPlcConnect/components/energyPlcParam.vue new file mode 100644 index 00000000..2e362853 --- /dev/null +++ b/src/views/energy/base/energyPlcConnect/components/energyPlcParam.vue @@ -0,0 +1,227 @@ + + + diff --git a/src/views/energy/base/energyPlcConnect/components/energyPlcParamAdd.vue b/src/views/energy/base/energyPlcConnect/components/energyPlcParamAdd.vue new file mode 100644 index 00000000..428b165e --- /dev/null +++ b/src/views/energy/base/energyPlcConnect/components/energyPlcParamAdd.vue @@ -0,0 +1,134 @@ + + diff --git a/src/views/energy/base/energyPlcConnect/components/energyPlcParamView.vue b/src/views/energy/base/energyPlcConnect/components/energyPlcParamView.vue new file mode 100644 index 00000000..2838751a --- /dev/null +++ b/src/views/energy/base/energyPlcConnect/components/energyPlcParamView.vue @@ -0,0 +1,127 @@ + + + diff --git a/src/views/energy/base/energyPlcConnect/index.vue b/src/views/energy/base/energyPlcConnect/index.vue new file mode 100644 index 00000000..83dec1c6 --- /dev/null +++ b/src/views/energy/base/energyPlcConnect/index.vue @@ -0,0 +1,245 @@ + + + diff --git a/src/views/energy/base/energyQuantityRealtime/index.vue b/src/views/energy/base/energyQuantityRealtime/index.vue new file mode 100644 index 00000000..991b2da1 --- /dev/null +++ b/src/views/energy/base/energyQuantityRealtime/index.vue @@ -0,0 +1,151 @@ + + + diff --git a/src/views/energy/base/energyType/index.vue b/src/views/energy/base/energyType/index.vue index c3c10dd4..428fb11d 100644 --- a/src/views/energy/base/energyType/index.vue +++ b/src/views/energy/base/energyType/index.vue @@ -44,14 +44,15 @@ + diff --git a/src/views/energy/monitoring/energyLimit/components/TimePickerArea.vue b/src/views/energy/monitoring/energyLimit/components/TimePickerArea.vue new file mode 100644 index 00000000..d3b6810b --- /dev/null +++ b/src/views/energy/monitoring/energyLimit/components/TimePickerArea.vue @@ -0,0 +1,43 @@ + + + diff --git a/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue b/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue new file mode 100644 index 00000000..ac5caa91 --- /dev/null +++ b/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue @@ -0,0 +1,173 @@ + + diff --git a/src/views/energy/monitoring/energyLimit/index.vue b/src/views/energy/monitoring/energyLimit/index.vue new file mode 100644 index 00000000..2073a279 --- /dev/null +++ b/src/views/energy/monitoring/energyLimit/index.vue @@ -0,0 +1,222 @@ + + + diff --git a/src/views/energy/monitoring/energyLimit/index1.vue b/src/views/energy/monitoring/energyLimit/index1.vue new file mode 100644 index 00000000..1b5a9032 --- /dev/null +++ b/src/views/energy/monitoring/energyLimit/index1.vue @@ -0,0 +1,296 @@ + + + diff --git a/src/views/group/base/groupClasses/index.vue b/src/views/group/base/groupClasses/index.vue index 7e832602..cf629042 100644 --- a/src/views/group/base/groupClasses/index.vue +++ b/src/views/group/base/groupClasses/index.vue @@ -60,7 +60,8 @@ const tableProps = [ }, { prop: 'timeStr', - label: '班次时间' + label: '班次时间', + minWidth: 100 }, { prop: 'code',