From ff61886ea9bd768354ea8770ad27789b166c2893 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Mon, 25 Jul 2022 11:44:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A=E4=B8=AD?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E8=BF=87=E6=BB=A4=E4=B8=AD=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015270 --user=宋天阳 【接口测试】接口自动化-批量选择场景执行-集合报告结果中未执行显示错误 https://www.tapd.cn/55049933/s/1209463 --- .../report/components/ScenarioResults.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue b/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue index 2b9c9480bf..f67aeecfdd 100644 --- a/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue +++ b/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue @@ -15,7 +15,7 @@ highlight-current class="ms-tree ms-report-tree" ref="resultsTree"> - @@ -38,7 +38,7 @@ export default { default: false, type: Boolean, }, - isShare:Boolean, + isShare: Boolean, shareId: String, }, data() { @@ -58,7 +58,7 @@ export default { }, methods: { filterNode(value, data) { - if (!data.value && !data.children && data.children.length === 0) { + if (!data.value && (!data.children || data.children.length === 0)) { return false; } if (!value) return true; @@ -67,11 +67,11 @@ export default { if (data.errorCode && data.errorCode !== "" && data.value.status === "errorReportResult") { return true; } - }else if (value === 'unexecute') { - if(data.value.status === 'unexecute'){ + } else if (value === 'unexecute') { + if (data.value.status === 'unexecute') { return true; } - }else { + } else { if (this.isUi) { return data.value.success === false && data.value.startTime > 0; } else { @@ -93,7 +93,7 @@ export default { node.expanded = !node.expanded; }, // 改变节点的状态 - changeTreeNodeStatus(node,expandCount) { + changeTreeNodeStatus(node, expandCount) { node.expanded = this.expandAll for (let i = 0; i < node.childNodes.length; i++) { // 改变节点的自身expanded状态 @@ -107,13 +107,13 @@ export default { closeExpansion() { this.isActive = false; this.expandAll = false; - this.changeTreeNodeStatus(this.$refs.resultsTree.store.root,0); + this.changeTreeNodeStatus(this.$refs.resultsTree.store.root, 0); }, openExpansion() { this.isActive = true; this.expandAll = true; // 改变每个节点的状态 - this.changeTreeNodeStatus(this.$refs.resultsTree.store.root,0) + this.changeTreeNodeStatus(this.$refs.resultsTree.store.root, 0) }, } }