From fb9791e4d6b7e6a3153880c6d4e28a4025553847 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 20 Feb 2023 00:02:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E7=94=A8=E4=BE=8B=E6=97=B6=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=8A=E6=89=80=E5=B1=9E=E6=A8=A1=E5=9D=97=E6=9C=AA=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E5=88=9D=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1023265,1023264 --user=宋昌昌 【测试跟踪】功能用例-创建用例/功能用例列表-复制用例/编辑用例-更多操作-复制-版本默认为空 https://www.tapd.cn/55049933/s/1337907 --- .../src/components/new-ui/MsNodeTree.vue | 2 +- .../frontend/src/business/case/TestCase.vue | 3 ++- .../business/case/components/TestCaseEdit.vue | 17 +++++++++++- .../case/components/case/CaseBaseInfo.vue | 27 ++++++++++++------- 4 files changed, 36 insertions(+), 13 deletions(-) diff --git a/framework/sdk-parent/frontend/src/components/new-ui/MsNodeTree.vue b/framework/sdk-parent/frontend/src/components/new-ui/MsNodeTree.vue index c34c16b973..efa4037650 100644 --- a/framework/sdk-parent/frontend/src/components/new-ui/MsNodeTree.vue +++ b/framework/sdk-parent/frontend/src/components/new-ui/MsNodeTree.vue @@ -28,7 +28,7 @@ - + diff --git a/test-track/frontend/src/business/case/TestCase.vue b/test-track/frontend/src/business/case/TestCase.vue index 91112c302a..32100ddeea 100644 --- a/test-track/frontend/src/business/case/TestCase.vue +++ b/test-track/frontend/src/business/case/TestCase.vue @@ -345,7 +345,8 @@ export default { hasPermission, handleCreateCase(){ openCaseCreate({ - projectId: this.projectId + projectId: this.projectId, + createNodeId: this.selectNode.data && this.selectNode.data.id !== 'root' ? this.selectNode.data.id : "" }, this); }, handleImportCommand(e) { diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index bfbe2bf927..f27598fd1e 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -307,6 +307,7 @@