naibo 2 anni fa
parent
commit
a003df9626

+ 1 - 1
ElectronJS/src/taskGrid/FlowChart.html

@@ -528,7 +528,7 @@
                         <option value = 1>Random wait (set to wait for 10 seconds then it will randomly wait for 10 × 0.5 - 10 × 1.5 seconds)</option>
                     </select>
                 </div>
-                <button class="btn btn-outline-primary" style="margin-top: 20px;" id="confirm">Confirm</button>
+<!--                <button class="btn btn-outline-primary" style="margin-top: 20px;" id="confirm">Confirm</button>-->
 
             </div>
 

+ 11 - 0
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");
+                }
             }
         }
     },

+ 1 - 1
ElectronJS/src/taskGrid/FlowChart_CN.html

@@ -528,7 +528,7 @@
                         <option value = 1>随机等待(设置等10秒会随机等10×0.5 - 10 × 1.5 秒)</option>
                     </select>
                 </div>
-                <button class="btn btn-outline-primary" style="margin-top: 20px;" id="confirm">确定</button>
+<!--                <button class="btn btn-outline-primary" style="margin-top: 20px;" id="confirm">确定</button>-->
 
             </div>