From 25974633239d51600e1144d0f513bb33cab8e8e5 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Tue, 22 Oct 2024 10:17:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=88=86=E4=BA=AB=E6=97=B6=E6=95=88=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/pure/ms-time-selector/MsTimeSelector.vue | 4 +++- frontend/src/views/test-plan/report/utils.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/pure/ms-time-selector/MsTimeSelector.vue b/frontend/src/components/pure/ms-time-selector/MsTimeSelector.vue index 1e5e7b5136..63e5d91d5a 100644 --- a/frontend/src/components/pure/ms-time-selector/MsTimeSelector.vue +++ b/frontend/src/components/pure/ms-time-selector/MsTimeSelector.vue @@ -106,10 +106,12 @@ watch( () => modelValue.value, - () => { + (val) => { if (!props.allowEmpty) { numberValue.value = 0; initNumberAndType(); + } else if (val && Number(val) !== 0) { + initNumberAndType(); } }, { diff --git a/frontend/src/views/test-plan/report/utils.ts b/frontend/src/views/test-plan/report/utils.ts index 8ce84dbdae..de6a21f764 100644 --- a/frontend/src/views/test-plan/report/utils.ts +++ b/frontend/src/views/test-plan/report/utils.ts @@ -187,6 +187,7 @@ export function getApiDetailColumn(isGroup: boolean, isPreview: boolean): MsTabl filterConfig: { options: isPreview ? lastReportStatusListOptions.value : [], filterSlotName: FilterSlotNameEnum.API_TEST_CASE_API_LAST_EXECUTE_STATUS, + emptyFilter: true, }, width: 150, showInTable: true,