fix(接口测试): 插件初始化问题修复

This commit is contained in:
fit2-zhao 2022-02-22 19:31:33 +08:00 committed by fit2-zhao
parent 2f80ee8cad
commit 992097c9d0
1 changed files with 9 additions and 2 deletions

View File

@ -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);
}
},
}
}