From a003df96269cc7a24048c52dc8c7a772a2efa78c Mon Sep 17 00:00:00 2001 From: naibo Date: Sat, 8 Jul 2023 06:16:18 +0800 Subject: [PATCH] Auto Update UI --- ElectronJS/src/taskGrid/FlowChart.html | 2 +- ElectronJS/src/taskGrid/FlowChart.js | 11 +++++++++++ ElectronJS/src/taskGrid/FlowChart_CN.html | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ElectronJS/src/taskGrid/FlowChart.html b/ElectronJS/src/taskGrid/FlowChart.html index 2c301e4..4f08ebc 100644 --- a/ElectronJS/src/taskGrid/FlowChart.html +++ b/ElectronJS/src/taskGrid/FlowChart.html @@ -528,7 +528,7 @@ - + diff --git a/ElectronJS/src/taskGrid/FlowChart.js b/ElectronJS/src/taskGrid/FlowChart.js index 13e8aa5..c0971f5 100644 --- a/ElectronJS/src/taskGrid/FlowChart.js +++ b/ElectronJS/src/taskGrid/FlowChart.js @@ -69,6 +69,12 @@ let app = new Vue({ } } }, + nowNode:{ + deep:true, + handler: function(newVal, oldVal) { + updateUI(); + } + }, loopType: { //循环类型发生变化的时候更新参数值 handler: function(newVal, oldVal) { this.nowNode["parameters"]["loopType"] = newVal; @@ -92,6 +98,11 @@ let app = new Vue({ codeMode: { handler: function(newVal, oldVal) { this.nowNode["parameters"]["codeMode"] = newVal; + if(newVal == 3){ + this.nowNode["title"] = LANG("退出循环", "Exit Loop"); + } else { + this.nowNode["title"] = LANG("自定义操作", "Custom Operation"); + } } } }, diff --git a/ElectronJS/src/taskGrid/FlowChart_CN.html b/ElectronJS/src/taskGrid/FlowChart_CN.html index d6a82fd..231ccd0 100644 --- a/ElectronJS/src/taskGrid/FlowChart_CN.html +++ b/ElectronJS/src/taskGrid/FlowChart_CN.html @@ -528,7 +528,7 @@ - +