diff --git a/frontend/src/business/components/api/automation/report/SysnApiReportDetail.vue b/frontend/src/business/components/api/automation/report/SysnApiReportDetail.vue index 39c64f6946..3b66fc59ec 100644 --- a/frontend/src/business/components/api/automation/report/SysnApiReportDetail.vue +++ b/frontend/src/business/components/api/automation/report/SysnApiReportDetail.vue @@ -199,12 +199,25 @@ export default { } }) }, + getType(type) { + switch (type) { + case "LoopController": + return "循环控制器"; + case "TransactionController": + return "事物控制器"; + case "ConstantTimer": + return "等待控制器"; + case "IfController": + return "条件控制器"; + } + return type; + }, formatContent(hashTree, tree, fullPath) { if (hashTree) { hashTree.forEach(item => { if (item.enable) { item.parentIndex = fullPath ? fullPath + "_" + item.index : item.index; - let name = item.name ? item.name : item.type; + let name = item.name ? item.name : this.getType(item.type); let obj = {resId: item.resourceId + "_" + item.parentIndex, index: Number(item.index), label: name, value: {name: name, responseResult: {}, unexecute: true, testing: false}, children: [], unsolicited: true}; tree.children.push(obj); if (ELEMENTS.get("AllSamplerProxy").indexOf(item.type) != -1) {