From 60b7a1e27f0cac43a65f380085635e35f3e1887c Mon Sep 17 00:00:00 2001 From: "nathan.liu" Date: Thu, 16 Feb 2023 10:21:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=B9=B6=E6=96=B0=E5=BB=BA=E6=8C=89=E9=92=AE=E6=9C=AA?= =?UTF-8?q?=E7=94=9F=E6=95=88=E5=8F=8A=E6=98=BE=E7=A4=BA=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=85=B3=E7=B3=BB=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1022808 --user=刘瑶 【测试跟踪】功能用例,保存并新建功能没生效 https://www.tapd.cn/55049933/s/1336097 --bug=1022812 --user=刘瑶 【测试跟踪】功能用例,依赖关系的数量统计没有了 https://www.tapd.cn/55049933/s/1336098 --- .../business/case/components/TestCaseEdit.vue | 9 ++- .../components/case/CaseEditInfoComponent.vue | 61 ++++++++++++++----- 2 files changed, 52 insertions(+), 18 deletions(-) diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index 8373abbdcb..17ddb16c58 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -882,9 +882,10 @@ export default { this.saveCase(); } else { this.saveCase(function (t) { - let tab = {}; - tab.name = "add"; - t.$emit("addTab", tab); + if(t){ + t.$router.push({path: "/track/case/create",}); + location.reload(); + } }); } } else if (e === "ADD_AND_PUBLIC") { @@ -1124,6 +1125,8 @@ export default { } if (callback) { callback(this); + + return; } // 保存用例后刷新附件 diff --git a/test-track/frontend/src/business/case/components/case/CaseEditInfoComponent.vue b/test-track/frontend/src/business/case/components/case/CaseEditInfoComponent.vue index d56d33ce11..a8843c9e5b 100644 --- a/test-track/frontend/src/business/case/components/case/CaseEditInfoComponent.vue +++ b/test-track/frontend/src/business/case/components/case/CaseEditInfoComponent.vue @@ -1,11 +1,13 @@ @@ -144,6 +173,7 @@ import CaseCommentComponent from "./CaseCommentComponent"; import CaseCommentViewer from "./CaseCommentViewer"; import { getRelationshipCountCase } from "@/api/testCase"; import { testCaseCommentList } from "@/api/test-case-comment"; +import TabPaneCount from "@/business/plan/view/comonents/report/detail/component/TabPaneCount"; export default { name: "CaseEditInfoComponent", components: { @@ -156,6 +186,7 @@ export default { CaseCommentViewer, CaseRelationshipViewer, CaseTestRelate, + TabPaneCount, }, props: [ "richTextDefaultOpen", @@ -201,7 +232,7 @@ export default { relateFiles: [], unRelateFiles: [], dumpFile: {}, - commentState: 'READY' + commentState: "READY", }; }, computed: { @@ -209,8 +240,8 @@ export default { return true; }, isCommentEdit() { - return this.commentState == 'EDIT'; - } + return this.commentState == "EDIT"; + }, }, watch: { caseId() { @@ -267,7 +298,7 @@ export default { this.$nextTick(() => { this.getRelatedTest(); }); - } else if(tab.name === "changeRecord"){ + } else if (tab.name === "changeRecord") { this.$refs.caseChangeHistoryRef.openHit(); } },