diff --git a/frontend/src/business/components/api/automation/scenario/component/PluginComponent.vue b/frontend/src/business/components/api/automation/scenario/component/PluginComponent.vue index 276df32d0b..a3d5ab152c 100644 --- a/frontend/src/business/components/api/automation/scenario/component/PluginComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/PluginComponent.vue @@ -211,7 +211,8 @@ export default { changeDisplay(fileName) { if (fileName === 'number of received messages') { this.pluginForm.hidden(true, "conditionTime"); - } else { + } + if (fileName === 'specified elapsed time (ms)') { this.pluginForm.hidden(false, "conditionTime"); } }, @@ -307,9 +308,12 @@ export default { } this.option.submitBtn = {show: false}; this.request.clazzName = plugin.clazzName; - if (this.request && this.request.active && this.pluginForm && this.pluginForm.setValue instanceof Function) { + if (this.request && this.pluginForm && this.pluginForm.setValue instanceof Function) { this.pluginForm.setValue(this.request); } + if (this.request.condition) { + this.changeDisplay(this.request.condition); + } } else { this.request.enable = false; this.request.plugin_del = true; @@ -344,6 +348,9 @@ export default { if (this.request && this.request.active && this.pluginForm && this.pluginForm.setValue instanceof Function) { this.pluginForm.setValue(this.request); } + if (this.request.condition) { + this.changeDisplay(this.request.condition); + } }, } }