From be206f300c821bfb5f495eb8596f524060eb242f Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Thu, 21 Nov 2024 14:31:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=B7=A5=E4=BD=9C=E5=8F=B0XX=E7=8E=87=E6=96=87?= =?UTF-8?q?=E6=A1=88&zoom=E9=85=8D=E7=BD=AE=E5=AF=BC=E8=87=B4=E6=9F=B1?= =?UTF-8?q?=E5=AD=90=E5=B1=95=E7=A4=BA=E4=B8=8D=E5=85=A8bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../homePage/components/overview.vue | 6 ++---- .../homePage/components/overviewMember.vue | 19 +++++-------------- .../views/workbench/homePage/locale/en-US.ts | 3 +-- .../views/workbench/homePage/locale/zh-CN.ts | 2 +- .../src/views/workbench/homePage/utils.ts | 5 +++-- 5 files changed, 12 insertions(+), 23 deletions(-) diff --git a/frontend/src/views/workbench/homePage/components/overview.vue b/frontend/src/views/workbench/homePage/components/overview.vue index 1096b0ab77..c487d0347f 100644 --- a/frontend/src/views/workbench/homePage/components/overview.vue +++ b/frontend/src/views/workbench/homePage/components/overview.vue @@ -221,10 +221,7 @@ } const isInit = ref(true); function changeProject() { - if (isInit.value) { - isInit.value = false; - return; - } + if (isInit.value) return; nextTick(() => { initOverViewDetail(); emit('change'); @@ -232,6 +229,7 @@ } onMounted(() => { + isInit.value = false; initOverViewDetail(); }); diff --git a/frontend/src/views/workbench/homePage/components/overviewMember.vue b/frontend/src/views/workbench/homePage/components/overviewMember.vue index 4a426d4d44..2c18269096 100644 --- a/frontend/src/views/workbench/homePage/components/overviewMember.vue +++ b/frontend/src/views/workbench/homePage/components/overviewMember.vue @@ -17,8 +17,10 @@ @change="changeProject" > + (innerProjectIds.value[0]); - const memberIds = ref(innerHandleUsers.value); - const timeForm = inject>( 'timeForm', ref({ @@ -181,7 +181,7 @@ } function changeProject() { - memberIds.value = []; + innerHandleUsers.value = []; nextTick(() => { getMemberOptions(); initOverViewMemberDetail(); @@ -202,7 +202,7 @@ if (val) { const [newProjectId] = val; projectId.value = newProjectId; - memberIds.value = []; + innerHandleUsers.value = []; } } ); @@ -216,15 +216,6 @@ } ); - watch( - () => memberIds.value, - (val) => { - if (val) { - innerHandleUsers.value = val; - } - } - ); - watch( () => timeForm.value, (val) => { diff --git a/frontend/src/views/workbench/homePage/locale/en-US.ts b/frontend/src/views/workbench/homePage/locale/en-US.ts index 98c9bfbd1a..835c00669d 100644 --- a/frontend/src/views/workbench/homePage/locale/en-US.ts +++ b/frontend/src/views/workbench/homePage/locale/en-US.ts @@ -85,8 +85,7 @@ export default { 'workbench.homePage.notHasResPermission': 'No resource permission', 'workbench.homePage.reviewRateTooltip': 'Review Rate: Reviewed functional test cases / All functional test cases * 100%', - 'workbench.homePage.reviewPassRateTooltip': - 'Review Pass Rate: Passed reviewed test cases / All reviewed test cases * 100%', + 'workbench.homePage.reviewPassRateTooltip': 'Review pass rate: Reviewed use cases/all use cases *100%', 'workbench.homePage.associateCaseCoverRateTooltip': 'Association Coverage Rate: Associated functional test cases / All functional test cases * 100%', 'workbench.homePage.caseReviewCoverRateTooltip': diff --git a/frontend/src/views/workbench/homePage/locale/zh-CN.ts b/frontend/src/views/workbench/homePage/locale/zh-CN.ts index 1aa1475077..77bb8bca02 100644 --- a/frontend/src/views/workbench/homePage/locale/zh-CN.ts +++ b/frontend/src/views/workbench/homePage/locale/zh-CN.ts @@ -81,7 +81,7 @@ export default { 'workbench.homePage.notHasData': '无数据', 'workbench.homePage.notHasResPermission': '无资源权限', 'workbench.homePage.reviewRateTooltip': '评审率: 已评审功能用例/所有功能用例 * 100%', - 'workbench.homePage.reviewPassRateTooltip': '评审通过率:已评审通过的用例/所有完成评审的用例*100%', + 'workbench.homePage.reviewPassRateTooltip': '评审通过率:已评审通过的用例/所有用例*100%', 'workbench.homePage.associateCaseCoverRateTooltip': '覆盖率:关联的功能用例/所有功能用例 * 100%', 'workbench.homePage.caseReviewCoverRateTooltip': '覆盖率:已评审的用例/所有的用例*100%', 'workbench.homePage.apiCountCoverRateTooltip': '接口覆盖率:接口(URL)有(用例或场景步骤)数/接口总数*100%', diff --git a/frontend/src/views/workbench/homePage/utils.ts b/frontend/src/views/workbench/homePage/utils.ts index 3f93991eee..56d52f5f5b 100644 --- a/frontend/src/views/workbench/homePage/utils.ts +++ b/frontend/src/views/workbench/homePage/utils.ts @@ -233,10 +233,11 @@ export function getCommonBarOptions(hasRoom: boolean, color: string[]): Record