fix(接口测试): 插件初始化问题修复
This commit is contained in:
parent
aaf459f94d
commit
4f45e58322
|
@ -211,7 +211,8 @@ export default {
|
||||||
changeDisplay(fileName) {
|
changeDisplay(fileName) {
|
||||||
if (fileName === 'number of received messages') {
|
if (fileName === 'number of received messages') {
|
||||||
this.pluginForm.hidden(true, "conditionTime");
|
this.pluginForm.hidden(true, "conditionTime");
|
||||||
} else {
|
}
|
||||||
|
if (fileName === 'specified elapsed time (ms)') {
|
||||||
this.pluginForm.hidden(false, "conditionTime");
|
this.pluginForm.hidden(false, "conditionTime");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -307,9 +308,12 @@ export default {
|
||||||
}
|
}
|
||||||
this.option.submitBtn = {show: false};
|
this.option.submitBtn = {show: false};
|
||||||
this.request.clazzName = plugin.clazzName;
|
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);
|
this.pluginForm.setValue(this.request);
|
||||||
}
|
}
|
||||||
|
if (this.request.condition) {
|
||||||
|
this.changeDisplay(this.request.condition);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.request.enable = false;
|
this.request.enable = false;
|
||||||
this.request.plugin_del = true;
|
this.request.plugin_del = true;
|
||||||
|
@ -344,6 +348,9 @@ export default {
|
||||||
if (this.request && this.request.active && this.pluginForm && this.pluginForm.setValue instanceof Function) {
|
if (this.request && this.request.active && this.pluginForm && this.pluginForm.setValue instanceof Function) {
|
||||||
this.pluginForm.setValue(this.request);
|
this.pluginForm.setValue(this.request);
|
||||||
}
|
}
|
||||||
|
if (this.request.condition) {
|
||||||
|
this.changeDisplay(this.request.condition);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue