refactor(接口测试): 代码规范优化方法名称
This commit is contained in:
parent
036fe28bf1
commit
77e69de4bc
|
@ -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 "等待控制器";
|
||||
|
|
|
@ -89,11 +89,11 @@ export default {
|
|||
}
|
||||
saveScenario(url, reqObj, this.runData.hashTree, this, (response) => {
|
||||
// 兼容ui执行提示
|
||||
if (url.startsWith("/api") &&response.data!== "SUCCESS") {
|
||||
if (url.startsWith("/api") && response.data !== "SUCCESS") {
|
||||
this.$error(response.data ? response.data : this.$t('commons.run_fail'));
|
||||
this.$emit('errorRefresh');
|
||||
} else {
|
||||
if (!response.success &&response.data!=="SUCCESS") {
|
||||
if (!response.success && response.data !== "SUCCESS") {
|
||||
this.$error(response.data ? response.data : this.$t('commons.run_fail'));
|
||||
this.$emit('errorRefresh');
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue