From 1488109f237cf482a74dc9cf463e7274a1ff5b69 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 17 Sep 2020 18:11:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=AD=A5=E9=AA=A4=E5=A4=8D=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/case/components/TestCaseEdit.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue index e43b8a8e06..68f97a0619 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue @@ -176,6 +176,12 @@ icon="el-icon-plus" circle size="mini" @click="handleAddStep(scope.$index, scope.row)"> + { + if (step.num > data.num) { + step.num++; + } + }); + this.form.steps.splice(index + 1, 0, step); + }, handleDeleteStep(index, data) { this.form.steps.splice(index, 1); this.form.steps.forEach(step => {