From 68177e988e326ee2adac1cd59995aa1c2cc8e53f Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 25 Aug 2021 15:22:30 +0800 Subject: [PATCH] =?UTF-8?q?fix=20(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E6=8A=A5=E5=91=8A=E6=AD=A5=E9=AA=A4=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D=20#1006150=20--bu?= =?UTF-8?q?g=3D1006150=20--user=3D=E8=B5=B5=E5=8B=87=20=E3=80=90=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=87=AA=E5=8A=A8=E5=8C=96=E3=80=91=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E5=90=8E...=20https://www.tapd.cn/55049933/s/1039573?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/report/SysnApiReportDetail.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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) {