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({
| postmanId | -taskType | -action | -message | -recipientHostId | -recipientDropBoxId | -description | +선택 | +포스트맨ID (postmanId) | +전송 처리 방식 (taskType) | +동작 방식 (action) | +전송 메시지 (message) | +수신 에이전트 호스트ID (recipientHostId) | +수신 에이전트 드롭박스ID (recipientDropBoxId) | +설명 (description) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| type | +방식 (type) | cron | -messageType | -dataSourceId | -sqlId | -postProcessingSqlId | +메시지 타입 (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. | |||||||||||||||||||||