From d31acd36887ce0fba0a738b53f76a0a3081088aa Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Wed, 30 Oct 2024 17:19:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/RunconfigManage.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/pages/RunconfigManage.vue b/src/pages/RunconfigManage.vue index f60a09a..4735037 100644 --- a/src/pages/RunconfigManage.vue +++ b/src/pages/RunconfigManage.vue @@ -52,6 +52,7 @@ persistent transition-show="scale" transition-hide="scale" + @hide="onDialogHide" > @@ -285,6 +286,17 @@ function onReset() { myForm.value?.resetValidation(); } +function onDialogHide() { + editInfo.id = ''; + editInfo.name = ''; + editInfo.config = ''; + editInfo.description = ''; + list.forEach((ite) => { + setDefaultVal(ite); + }); + tab.value = list[0].fieldName; +} + async function deleteData(row: RunconfigItem) { operateDisabled.value = true; $q.dialog({