From 7541df30fde733ed0f4bfdbfab55502cf572f99d Mon Sep 17 00:00:00 2001 From: bobol Date: Thu, 21 Mar 2024 18:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model/dcHeatStandardDeviceStrategyConf.js | 67 +++ src/views/model/heatapiconf/index.vue | 525 +++++++++++++----- src/views/model/heatapiconf/paramModel.vue | 82 ++- 3 files changed, 523 insertions(+), 151 deletions(-) create mode 100644 src/api/model/dcHeatStandardDeviceStrategyConf.js diff --git a/src/api/model/dcHeatStandardDeviceStrategyConf.js b/src/api/model/dcHeatStandardDeviceStrategyConf.js new file mode 100644 index 0000000..1b5fe3a --- /dev/null +++ b/src/api/model/dcHeatStandardDeviceStrategyConf.js @@ -0,0 +1,67 @@ +import request from '@/utils/request' + +// 查询设备策略配置列表 +export function listDcHeatStandardDeviceStrategyConf(query) { + return request({ + url: '/model/dcHeatStandardDeviceStrategyConf/list', + method: 'get', + params: query + }) +} + +// 查询设备策略配置详细 +export function getDcHeatStandardDeviceStrategyConf(id) { + return request({ + url: '/model/dcHeatStandardDeviceStrategyConf/' + id, + method: 'get' + }) +} + +// 新增设备策略配置 +export function addDcHeatStandardDeviceStrategyConf(data) { + return request({ + url: '/model/dcHeatStandardDeviceStrategyConf', + method: 'post', + data: data + }) +} + +// 批量新增设备策略配置 +export function addBatchDcHeatStandardDeviceStrategyConf(confId, list) { + return request({ + url: '/model/dcHeatStandardDeviceStrategyConf', + method: 'post', + params: { + confId: confId + }, + data: { + list: list + } + }) +} + +// 修改设备策略配置 +export function updateDcHeatStandardDeviceStrategyConf(data) { + return request({ + url: '/model/dcHeatStandardDeviceStrategyConf', + method: 'put', + data: data + }) +} + +// 删除设备策略配置 +export function delDcHeatStandardDeviceStrategyConf(id) { + return request({ + url: '/model/dcHeatStandardDeviceStrategyConf/' + id, + method: 'delete' + }) +} + +// 导出设备策略配置 +export function exportDcHeatStandardDeviceStrategyConf(query) { + return request({ + url: '/${baseUrl}/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/views/model/heatapiconf/index.vue b/src/views/model/heatapiconf/index.vue index 71f907c..23c2baa 100644 --- a/src/views/model/heatapiconf/index.vue +++ b/src/views/model/heatapiconf/index.vue @@ -3,38 +3,41 @@
- +
+ :filter-node-method="filterNode" ref="deptTreeRef" node-key="id" highlight-current default-expand-all + @node-click="handleNodeClick"/>
- + - + - + @@ -62,18 +65,21 @@ - + :max-height="tableHeight" :border="true" :column-width-draggable="true"> + - - - - - - - + + + + + + + + + + + + :fixed="fixedColumns ? 'right' : false"> - diff --git a/src/views/model/heatapiconf/paramModel.vue b/src/views/model/heatapiconf/paramModel.vue index eb8b355..ce4f080 100644 --- a/src/views/model/heatapiconf/paramModel.vue +++ b/src/views/model/heatapiconf/paramModel.vue @@ -42,6 +42,11 @@ {{ getParamClassName(scope.row.paramClassId) }} + + +