From 0712698638e8acdf4cd99e97d40290f3f2314486 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Fri, 7 Mar 2025 14:44:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/controlSourceDetail.vue | 2 +- frontend/src/views/machine/controlSource/index.vue | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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":