refactor(接口测试): 代码规范优化方法名称

This commit is contained in:
fit2-zhao 2022-06-21 17:32:24 +08:00 committed by fit2-zhao
parent 036fe28bf1
commit 77e69de4bc
3 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@
</div>
</div>
<el-tooltip effect="dark" :content="node.label" placement="top">
<span>{{ getLable(node.label) }}</span>
<span>{{ getLabel(node.label) }}</span>
</el-tooltip>
</el-card>
</div>
@ -67,7 +67,7 @@ export default {
}
},
methods: {
getLable(label) {
getLabel(label) {
switch (label) {
case "ConstantTimer":
return "等待控制器";

View File

@ -678,7 +678,7 @@ export default {
node.expanded = !node.expanded;
this.pluginOrder(data);
},
plugnOrder(nodes) {
pluginOrder(nodes) {
//
if (nodes && nodes.type === 'GenericController' && nodes.hashTree) {
let data = nodes.hashTree.filter(v => v.type !== "Assertions");
@ -1322,7 +1322,7 @@ export default {
this.isBtnHide = false;
//
if (this.selectedTreeNode && this.selectedTreeNode.type === 'GenericController') {
this.plugnOrder(this.selectedTreeNode);
this.pluginOrder(this.selectedTreeNode);
} else {
this.sort();
}
@ -1383,7 +1383,7 @@ export default {
this.$refs.scenarioApiRelevance.changeButtonLoadingType();
//
if (this.selectedTreeNode && this.selectedTreeNode.type === 'GenericController') {
this.plugnOrder(this.selectedTreeNode);
this.pluginOrder(this.selectedTreeNode);
} else {
this.sort();
}