diff --git a/src/pages/DecisionInfoManage.vue b/src/pages/DecisionInfoManage.vue index 257e25c..7c1a028 100644 --- a/src/pages/DecisionInfoManage.vue +++ b/src/pages/DecisionInfoManage.vue @@ -31,7 +31,7 @@ class="q-mr-md" color="primary" label="查询" - @click="searchDialog = true" + @click="openSearchDialog" /> @@ -297,15 +297,13 @@ const filter = ref({ alertType: '', areaConfigName: '', }); +function openSearchDialog() { + filter.value = { alertType: '', areaConfigName: '' }; + searchDialog.value = true; +} function searchDecisionInfo() { searchDialog.value = false; - try { - tableRef.value.requestServerInteraction(); - } finally { - setTimeout(() => { - filter.value = { alertType: '', areaConfigName: '' }; - }); - } + tableRef.value.requestServerInteraction(); } const createFormShow = ref(false);