fix(接口测试): 插件初始化问题修复
This commit is contained in:
parent
2f80ee8cad
commit
992097c9d0
|
@ -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);
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue