|
|
@@ -355,10 +355,12 @@
|
|
|
<img style="width: 15px;height:15px;border-radius: 12px;" src="@/assets/images/icon-HTTP.png" alt="">
|
|
|
<div style="margin-left:3%;font-weight: 500;">
|
|
|
<el-input class="custom-no-border" placeholder="" type="primary" v-model="specialNodeProps.data.label" size="mini" text
|
|
|
- style="margin-left: 0%;font-size: 10px;height: 15px;width: 150%;" ></el-input>
|
|
|
+ style="margin-left: 0%;font-size: 10px;height: 15px;width: 100%;" ></el-input>
|
|
|
<!-- {{ specialNodeProps.data.label}} -->
|
|
|
</div>
|
|
|
- <el-icon @click.stop="testNode(specialNodeProps)" style="cursor: pointer;margin-left: auto;"><CaretRight /></el-icon>
|
|
|
+ <el-icon v-if="specialNodeProps.data.isSuccess" style="cursor: pointer;margin-left: auto;color: #67C23A;"><SuccessFilled /></el-icon>
|
|
|
+ <el-icon v-if="specialNodeProps.data.isFail" style="cursor: pointer;margin-left: auto;color: #F56C6C;"><CircleCloseFilled /></el-icon>
|
|
|
+ <!-- <el-icon @click.stop="testNode(specialNodeProps)" style="cursor: pointer;margin-left: 2%;"><CaretRight /></el-icon> -->
|
|
|
<el-icon @click.stop="delNode(specialNodeProps)" style="cursor: pointer;color: #F56C6C;margin-left: 2%;"><Delete /></el-icon>
|
|
|
</div>
|
|
|
<div style="display: flex;margin-top: 3%;">
|
|
|
@@ -1020,6 +1022,7 @@ function startTest(){
|
|
|
var par = {}
|
|
|
par.flowGraph = JSON.stringify(a)
|
|
|
par.params = {}
|
|
|
+ par.webSocketId = messages.value[0]
|
|
|
tableDataCanStart.value.forEach(item=>{
|
|
|
// par.set(item.name,item.value)
|
|
|
par.params[item.name] = item.value
|
|
|
@@ -1557,7 +1560,6 @@ const connect = () => {
|
|
|
|
|
|
ws.value.onmessage = (event) => {
|
|
|
console.log('收到消息:', event);
|
|
|
-
|
|
|
messages.value.push(event.data); // 存储接收到的消息
|
|
|
};
|
|
|
|
|
|
@@ -1594,7 +1596,12 @@ onMounted(() => {
|
|
|
getTreeLeft()
|
|
|
getList();
|
|
|
})
|
|
|
+watch(messages, (newMessages) => {
|
|
|
+ newMessages.forEach(item=>{
|
|
|
|
|
|
+ })
|
|
|
+ console.log('当前节点列表:', newMessages) // 实时输出最新数据
|
|
|
+}, { deep: true })
|
|
|
watch(nodes, (newNodes) => {
|
|
|
console.log('当前节点列表:', newNodes) // 实时输出最新数据
|
|
|
}, { deep: true })
|