diff --git a/frontend/src/views/machine/controlSource/components/controlSourceDetail.vue b/frontend/src/views/machine/controlSource/components/controlSourceDetail.vue index 8b9aee7..9ae539f 100644 --- a/frontend/src/views/machine/controlSource/components/controlSourceDetail.vue +++ b/frontend/src/views/machine/controlSource/components/controlSourceDetail.vue @@ -376,7 +376,7 @@ const startLoading = async () => { // 启动加载逻辑 controlContent.value.userPageId = 'cdf' controlContent.value.scriptId = '9ff96807cf8c7524587982ed8baa8b57' - controlContent.value.scriptIndex = props.formControl.scriptIndex + controlContent.value.scriptIndex = childActiveIndex.value controlContent.value.sourceId = props.formControl.sourceId await startSimulateTest(controlContent.value) } diff --git a/frontend/src/views/machine/controlSource/index.vue b/frontend/src/views/machine/controlSource/index.vue index ed03f9e..9a1b769 100644 --- a/frontend/src/views/machine/controlSource/index.vue +++ b/frontend/src/views/machine/controlSource/index.vue @@ -139,6 +139,20 @@ onMounted(async () => { watch(webMsgSend, function (newValue, oldValue) { switch (newValue.requestId) { + case 'yjc_ytxjy': + switch (newValue.operateCode) { + case 'INIT_GATHER': + if (newValue.code == 10200) { + ElMessage.success('源初始化成功') + } else { + ElMessage.error('源服务端连接失败') + console.log('错误信息:',webMsgSend) + } + break; + + + } + break; case 'connect': switch (newValue.operateCode) { case "Source":