diff --git a/src/main/front/src/components/AgentConfigView.vue b/src/main/front/src/components/AgentConfigView.vue new file mode 100644 index 0000000..eac9fda --- /dev/null +++ b/src/main/front/src/components/AgentConfigView.vue @@ -0,0 +1,219 @@ + + + + + + + + diff --git a/src/main/front/src/views/AgentManageView.vue b/src/main/front/src/views/AgentManageView.vue index ae72712..3279908 100644 --- a/src/main/front/src/views/AgentManageView.vue +++ b/src/main/front/src/views/AgentManageView.vue @@ -2,6 +2,7 @@ import '@/assets/main.css' import { useApiClient } from '@/components/apiClient' import { onMounted, ref } from 'vue' +import AgentConfigView from '@/components/AgentConfigView.vue' const apiClient = useApiClient() @@ -11,10 +12,12 @@ async function getAgentInfoDtoList() { } let dfxAgentInfoDtoList = ref([]) +const agentConfigDto = ref({}) +const agentConfigViewModal = ref(null) -function setDfxAgentInfoDto(dfxAgentInfoDto) { - console.log(dfxAgentInfoDto) - alert(dfxAgentInfoDto) +function openAgentConfigView(dfxAgentInfoDto) { + agentConfigDto.value = JSON.parse(dfxAgentInfoDto.settingsData) + agentConfigViewModal.value.open() } onMounted(async () => { @@ -51,7 +54,7 @@ onMounted(async () => {