diff --git a/frontend/src/views/machine/controlSource/index.vue b/frontend/src/views/machine/controlSource/index.vue index 9a1b769..ffec1f2 100644 --- a/frontend/src/views/machine/controlSource/index.vue +++ b/frontend/src/views/machine/controlSource/index.vue @@ -138,6 +138,22 @@ onMounted(async () => { }) watch(webMsgSend, function (newValue, oldValue) { + if (newValue.requestId.includes('formal_real&&' && newValue.operateCode === 'OPER_GATHER')) { + if (newValue.code === 10200) { + ElMessage.success('启动成功') + } else { + ElMessage.error('启动失败') + console.log('错误信息:',webMsgSend) + } + } + if (newValue.requestId.includes('close_source' && newValue.operateCode === 'CLOSE_GATHER')) { + if (newValue.code === 10200) { + ElMessage.success('停止成功') + } else { + ElMessage.error('停止失败') + console.log('错误信息:',webMsgSend) + } + } switch (newValue.requestId) { case 'yjc_ytxjy': switch (newValue.operateCode) { @@ -159,7 +175,6 @@ watch(webMsgSend, function (newValue, oldValue) { ElMessage.error('源服务端连接失败') } break; - } })