From bf9d0341dd95534fd86b95ebdae0cf9327908431 Mon Sep 17 00:00:00 2001 From: "icksishu@gmail.com" Date: Wed, 10 Dec 2025 16:07:42 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=90=EC=9D=B4=EC=A0=84=ED=8A=B8=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20Postman=20=EB=A1=9C=EC=A7=81=20=EC=99=84?= =?UTF-8?q?=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../front/src/components/AgentConfigView.vue | 106 +++++++++++++----- 1 file changed, 76 insertions(+), 30 deletions(-) diff --git a/src/main/front/src/components/AgentConfigView.vue b/src/main/front/src/components/AgentConfigView.vue index a86251c..6e0a4f2 100644 --- a/src/main/front/src/components/AgentConfigView.vue +++ b/src/main/front/src/components/AgentConfigView.vue @@ -57,6 +57,9 @@ const agentConfigDeleted = { dropBoxConfig: { dropBoxList: [], }, + postmanConfig: { + postmanList: [], + }, } window.debugData = agentConfig @@ -227,6 +230,41 @@ function deleteDropBox() { } } +// postman 한 줄 추가 +function addPostman() { + const postman = { + postmanId: '', + taskType: '', + action: { + type: 'SCHEDULED', + cron: '1 0/1 * * * *', + }, + message: { + messageType: 'TRANSFER_DB_TO_DB', + dataSourceId: '', + sqlId: '', + postProcessingSqlId: '', + }, + recipientHostId: '', + recipientDropBoxId: '', + description: '', + added: true, + } + agentConfig.postmanConfig.postmanList.push(postman) +} + +// 선택된 postman 삭제 +function deletePostman() { + for (let i = agentConfig.postmanConfig.postmanList.length - 1; i >= 0; i--) { + if (agentConfig.postmanConfig.postmanList[i].selected) { + let splicedList = agentConfig.postmanConfig.postmanList.splice(i, 1) + if (Object.keys(splicedList[0]).indexOf('added') == -1) { + agentConfigDeleted.postmanConfig.postmanList.push(splicedList[0]) + } + } + } +} + defineExpose({ open, close, @@ -507,7 +545,7 @@ defineExpose({
-
드롭박스 일반(DropBox General)
+
수신 일반(DropBox General)
@@ -556,7 +594,7 @@ defineExpose({
-
드롭박스 목록 설정(dropBoxList)
+
수신 목록 설정(dropBoxList)
@@ -568,7 +606,7 @@ defineExpose({ 선택 드롭박스ID (dropBoxId) - 동작 방식 (taskType) + 수신 처리 방식 (taskType) 데이터소스ID (dataSourceId) SQL ID(sqlId) 설명 (description) @@ -596,13 +634,13 @@ defineExpose({
-
Postman General
+
전송 일반 (Postman General)
- threadPoolSize + 전송 쓰레드풀 크기 (threadPoolSize)
@@ -610,44 +648,52 @@ defineExpose({
-
postmanList
+
+
전송 목록 설정(postmanList)
+
+ + +
+
- - - - - - - + + + + + + + + - + - - - - + + + + - - - - - - - - - - - + + + + + + + + + + + + - +
postmanIdtaskTypeactionmessagerecipientHostIdrecipientDropBoxIddescription선택포스트맨ID (postmanId)전송 처리 방식 (taskType)동작 방식 (action)전송 메시지 (message)수신 에이전트 호스트ID (recipientHostId)수신 에이전트 드롭박스ID (recipientDropBoxId)설명 (description)
type방식 (type) cronmessageTypedataSourceIdsqlIdpostProcessingSqlId메시지 타입 (messageType)데이터소스ID (dataSourceId)SQL ID (sqlId)전송 완료 후 동작 SQL ID (postProcessingSqlId)
{{ postman.postmanId }}{{ postman.taskType }}{{ postman.action.type }}{{ postman.action.cron }}{{ postman.message.messageType }}{{ postman.message.dataSourceId }}{{ postman.message.sqlId }}{{ postman.message.postProcessingSqlId }}{{ postman.recipientHostId }}{{ postman.recipientDropBoxId }}{{ postman.description }}
no postman.no postman.