From 6d657063154d7837878428f8a0c1857ed7114cec Mon Sep 17 00:00:00 2001 From: Dong Xia Date: Tue, 29 Oct 2024 09:50:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=88=86=E7=BB=84=E5=A2=9E=E5=88=A0api=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/node_group.js | 61 ++++++++++++++++++ src/pages/node/nodeGroupManager/index.vue | 78 ++++++++++++++++++++++- 2 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 src/api/node_group.js diff --git a/src/api/node_group.js b/src/api/node_group.js new file mode 100644 index 0000000..caf91b2 --- /dev/null +++ b/src/api/node_group.js @@ -0,0 +1,61 @@ +import axios from './config' + +// 节点分组查询 +export function listGroup(data) { + return axios({ + url: '/nodeGroup/list', + headers: { + 'Content-Type': 'application/json; charset=UTF-8' + }, + method: 'post', + data + }) +} + +// 节点分组新增 +export function addGroup(data) { + return axios({ + url: '/nodeGroup/add', + headers: { + 'Content-Type': 'application/json; charset=UTF-8' + }, + method: 'post', + data + }) +} + +// 节点分组修改 +export function updateGroup(data) { + return axios({ + url: '/nodeGroup/update', + headers: { + 'Content-Type': 'application/json; charset=UTF-8' + }, + method: 'post', + data + }) +} + +// 节点分组删除 +export function deleteGroup(data) { + return axios({ + url: '/nodeGroup/delete', + headers: { + 'Content-Type': 'application/json; charset=UTF-8' + }, + method: 'post', + data + }) +} + +// 查询分组节点列表 +export function nodelist(data) { + return axios({ + url: '/nodegroupinfo/nodelist', + headers: { + 'Content-Type': 'application/json; charset=UTF-8' + }, + method: 'post', + data + }) +} diff --git a/src/pages/node/nodeGroupManager/index.vue b/src/pages/node/nodeGroupManager/index.vue index d1f32ba..0cf3f4b 100644 --- a/src/pages/node/nodeGroupManager/index.vue +++ b/src/pages/node/nodeGroupManager/index.vue @@ -20,6 +20,12 @@ {{ text }} @@ -44,6 +50,68 @@ + + + + + + +
+ + + + + + + + +
+
+ + + 取消 + + + 确定 + +
+
@@ -173,7 +241,15 @@ export default { }) } }) - } + }, + // 编辑分组 + handleEdit(record) { + + }, + // 删除分组 + handleDelete(record) { + + }, } } -- Gitee From e66020afa1cbdf5707d8abf6656afa62d4d4ea4b Mon Sep 17 00:00:00 2001 From: Dong Xia Date: Tue, 29 Oct 2024 09:57:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=88=86=E7=BB=84=E5=A2=9E=E3=80=81=E5=88=A0=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E5=92=8C=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/node/nodeGroupManager/index.vue | 40 +++++++++++++---------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/src/pages/node/nodeGroupManager/index.vue b/src/pages/node/nodeGroupManager/index.vue index 0cf3f4b..2fcd809 100644 --- a/src/pages/node/nodeGroupManager/index.vue +++ b/src/pages/node/nodeGroupManager/index.vue @@ -1,6 +1,8 @@