From ec9c48a71e309304fa19c57177ec6e3f50c2e1ea Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Tue, 14 Mar 2023 21:57:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(DictData):=20=E5=AD=97=E5=85=B8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BC=B9=E7=AA=97=E5=88=87=E6=8D=A2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9C=AA=E5=88=B7=E6=96=B0=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: dba95fac120486fe114a3500c1c4f60d4bc2905b --- src/views/system/dict/DictData.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/views/system/dict/DictData.vue b/src/views/system/dict/DictData.vue index afce2293..fcb47f1c 100644 --- a/src/views/system/dict/DictData.vue +++ b/src/views/system/dict/DictData.vue @@ -30,6 +30,14 @@ const props = defineProps({ } }); +watch( + () => props.typeCode, + (newVal: string) => { + queryParams.typeCode = newVal; + resetQuery(); + } +); + const queryFormRef = ref(ElForm); const dataFormRef = ref(ElForm); @@ -80,6 +88,7 @@ function handleQuery() { */ function resetQuery() { queryFormRef.value.resetFields(); + queryParams.pageNum = 1; handleQuery(); }