From 4374666f96454281b277a39989283f068ea90610 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 27 Oct 2022 17:28:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=BC=80=E5=90=AF=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89ID=E5=90=8E=EF=BC=8C=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E7=BC=96=E8=BE=91ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1019035 --user=陈建星 【测试跟踪】开启“测试用例自定义ID”-创建测试用例-用例基础信息不显示ID字段 https://www.tapd.cn/55049933/s/1280845 --- test-track/frontend/src/business/case/TestCase.vue | 6 ++++-- .../frontend/src/business/case/components/TestCaseEdit.vue | 3 ++- .../plan/view/comonents/api/RelevanceScenarioList.vue | 6 ++++-- .../plan/view/comonents/functional/FunctionalRelevance.vue | 6 ++++-- .../plan/view/comonents/ui/RelevanceUiScenarioList.vue | 6 ++++-- .../review/view/components/TestReviewTestCaseList.vue | 7 +++++-- 6 files changed, 23 insertions(+), 11 deletions(-) diff --git a/test-track/frontend/src/business/case/TestCase.vue b/test-track/frontend/src/business/case/TestCase.vue index 0c24f226fe..3641833051 100644 --- a/test-track/frontend/src/business/case/TestCase.vue +++ b/test-track/frontend/src/business/case/TestCase.vue @@ -770,8 +770,10 @@ export default { getProjectApplicationConfig('CASE_CUSTOM_NUM') .then(result => { let data = result.data; - if (data) { - store.currentProjectIsCustomNum = data.caseCustomNum; + if (data && data.typeValue === 'true') { + store.currentProjectIsCustomNum = true; + } else { + store.currentProjectIsCustomNum = false; } }); }, diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index 27f246d29f..41f8de05c2 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -6,7 +6,6 @@ { let data = result.data; - if (data) { - this.customNum = data.scenarioCustomNum; + if (data && data.typeValue === 'true') { + this.customNum = true; + } else { + this.customNum = false; } }); } diff --git a/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue b/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue index 278c16905f..2d7cb754a3 100644 --- a/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue +++ b/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue @@ -235,8 +235,10 @@ export default { getProjectApplicationConfig('CASE_CUSTOM_NUM') .then(result => { let data = result.data; - if (data) { - this.customNum = data.caseCustomNum; + if (data && data.typeValue === 'true') { + this.customNum = true; + } else { + this.customNum = false; } }); }, diff --git a/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue b/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue index c6a49d190e..c71f53286f 100644 --- a/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue +++ b/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue @@ -222,8 +222,10 @@ export default { getProjectApplicationConfig('SCENARIO_CUSTOM_NUM') .then(result => { let data = result.data; - if (data) { - this.customNum = data.scenarioCustomNum; + if (data && data.typeValue === 'true') { + this.customNum = true; + } else { + this.customNum = false; } }); } diff --git a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseList.vue b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseList.vue index db456785a1..3594b5f198 100644 --- a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseList.vue +++ b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseList.vue @@ -462,9 +462,12 @@ export default { getProject() { getProjectConfig(this.projectId, "/CASE_CUSTOM_NUM") .then(result => { + let store = useStore(); let data = result.data; - if (data) { - useStore().currentProjectIsCustomNum = data.caseCustomNum; + if (data && data.typeValue === 'true') { + store.currentProjectIsCustomNum = true; + } else { + store.currentProjectIsCustomNum = false; } }); },