fix (接口定义): 优化前端生成接口数据一些无效字段

This commit is contained in:
fit2-zhao 2021-10-14 15:06:04 +08:00 committed by fit2-zhao
parent af785a1d4e
commit 78e5c5942c
5 changed files with 0 additions and 22 deletions

View File

@ -4,9 +4,6 @@ import {ConfigCenter, ConsumerAndService, RegistryCenter} from "../../../../../m
const DEFAULT_OPTIONS = {
options: {
attributes: {
guiclass: "DubboSampleGui",
testclass: "DubboSampler",
testname: "DubboSampler",
enabled: "true"
},
}

View File

@ -4,9 +4,6 @@ import {Body} from "../../../../../model/ApiTestModel";
const DEFAULT_OPTIONS = {
options: {
attributes: {
guiclass: "HttpTestSampleGui",
testclass: "HTTPSamplerProxy",
testname: "HTTPSamplerProxy",
enabled: "true"
},
}

View File

@ -14,15 +14,6 @@ export default class TestPlan extends HashTreeElement {
super(options);
this.type = TYPE;
this.hashTree = [];
this.userDefinedVariables = [];
let elementProp = this.initElementProp('TestPlan.user_defined_variables', 'Arguments');
let collectionProp = elementProp.initCollectionProp('Arguments.arguments');
collectionProp.forEach(ep => {
let name = ep.initStringProp('Argument.name').value;
let value = ep.initStringProp('Argument.value').value;
this.userDefinedVariables.push({name: name, value: value, enable: true});
})
}
updateProps() {

View File

@ -10,10 +10,6 @@ export default class Element {
this.name = options.name
if (options.attributes) {
this.attributes = options.attributes;
if (options.attributes.testname) {
this.label = options.attributes.testname;
}
if (options.attributes.testclass && this.name === undefined) {
this.name = options.attributes.testclass;
}

View File

@ -5,9 +5,6 @@ import {loadHashTree, loadComponent} from "./components";
export default class HashTreeElement extends Element {
constructor({options: options, hashTree: hashTree}) {
super(options);
this.props = getProps(options.elements);
this.comments = this.initStringProp('TestPlan.comments');
if (hashTree) {
this.hashTree = loadHashTree(hashTree);
}