From 8d9ccf97a762b113bcc53850c3a3a678ffdb4335 Mon Sep 17 00:00:00 2001
From: sjl <1716605279@qq.com>
Date: Thu, 29 Jan 2026 13:44:12 +0800
Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=BD=AE=E7=AE=A1=E7=90=86=E5=88=86?=
=?UTF-8?q?=E9=85=8D=E7=BB=88=E7=AB=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/device-boot/Business.ts | 8 +++
.../terminal/FrontManagement/index.vue | 30 ++++++++-
.../analyse/eventCorrelation/index.vue | 67 ++++++++++++++++---
src/views/system/strategyManage/index.vue | 4 +-
4 files changed, 97 insertions(+), 12 deletions(-)
diff --git a/src/api/device-boot/Business.ts b/src/api/device-boot/Business.ts
index 27c0f989..dabb046a 100644
--- a/src/api/device-boot/Business.ts
+++ b/src/api/device-boot/Business.ts
@@ -206,3 +206,11 @@ export function exportTerminalBase() {
responseType: 'blob'
})
}
+//一键分配终端
+export function allotTerminal(data: any) {
+ return createAxios({
+ url: '/device-boot/nodeDevice/oneKeyDistribution',
+ method: 'post',
+ params: data
+ })
+}
diff --git a/src/views/pqs/business/terminal/FrontManagement/index.vue b/src/views/pqs/business/terminal/FrontManagement/index.vue
index 1eebaa70..b271d04a 100644
--- a/src/views/pqs/business/terminal/FrontManagement/index.vue
+++ b/src/views/pqs/business/terminal/FrontManagement/index.vue
@@ -209,7 +209,8 @@ import {
updateNode,
nodeDeviceTree,
updateDeviceProcess,
- askRestartProcess
+ askRestartProcess,
+ allotTerminal
} from '@/api/device-boot/Business'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
@@ -384,7 +385,32 @@ const tableStore = new TableStore({
tableStore.index()
})
}
- }
+ },
+ {
+ name: 'edit',
+ title: '分配终端',
+ type: 'primary',
+ icon: 'InfoFilled',
+ render: 'confirmButton',
+ popconfirm: {
+ confirmButtonText: '确认',
+ cancelButtonText: '取消',
+ confirmButtonType: 'primary',
+ title: '确定分配终端吗?'
+ },
+ click: row => {
+ if (!hasDevices.value) {
+ ElMessage.warning('此前置机下无设备,无法分配终端!');
+ return;
+ }
+ allotTerminal({
+ nodeId: row.id
+ }).then(res => {
+ ElMessage.success(res.message)
+ tableStore.index()
+ })
+ }
+ },
]
}
],
diff --git a/src/views/pqs/voltageSags/analyse/eventCorrelation/index.vue b/src/views/pqs/voltageSags/analyse/eventCorrelation/index.vue
index 44d6322e..d0c95c0e 100644
--- a/src/views/pqs/voltageSags/analyse/eventCorrelation/index.vue
+++ b/src/views/pqs/voltageSags/analyse/eventCorrelation/index.vue
@@ -29,6 +29,17 @@
+