From 1726b95ae381c0bd20f461818376452537c33097 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Wed, 16 Feb 2022 11:53:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E7=89=88=E6=9C=AC=E5=AF=B9=E6=AF=94=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E6=AD=A5=E9=AA=A4=E6=A0=87=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010210--user=郭雨琦 【ID1010210】【接口测试】github#10414,场景版本对比缺少步骤标号 --- .../api/automation/scenario/EditApiScenario.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 50317f51a6..f7e2e5a80d 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -1772,6 +1772,9 @@ export default { if(obj){ if(obj.hashTree){ for (let i = 0; i < obj.hashTree.length; i++) { + if(!obj.hashTree[i].index){ + obj.hashTree[i].index = i+1; + } obj.hashTree[i].disabled = true; if (!obj.hashTree[i].requestResult) { obj.hashTree[i].requestResult = [{responseResult: {}}]; @@ -1784,7 +1787,7 @@ export default { this.newOnSampleError = obj.onSampleError; } } - + this.dataProcessing(obj.hashTree); this.newScenarioDefinition = obj.hashTree; for (let i = 0; i < this.oldScenarioDefinition.length; i++) { this.oldScenarioDefinition[i].disabled = true; @@ -1802,8 +1805,9 @@ export default { this.oldData = this.currentScenario; this.newData = res.data; this.closeExpansion() - this.dialogVisible = true; } + this.sort(); + this.dialogVisible = true; }); }) },