From 86e0b30e81cd6dc7ad3b1efd5ab9a427c6ce0bcb Mon Sep 17 00:00:00 2001 From: xuziqiang <1344691446@qq.com> Date: Mon, 15 Jul 2024 16:25:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=86=E7=BB=84=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hx-ai-intelligent/src/view/equipmentManage/group/editGroup.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hx-ai-intelligent/src/view/equipmentManage/group/editGroup.vue b/hx-ai-intelligent/src/view/equipmentManage/group/editGroup.vue index 176cfb0..97bb5fd 100644 --- a/hx-ai-intelligent/src/view/equipmentManage/group/editGroup.vue +++ b/hx-ai-intelligent/src/view/equipmentManage/group/editGroup.vue @@ -17,7 +17,7 @@ @@ -77,7 +77,11 @@ const op = () => { inputDisabled.value = !inputDisabled.value; - add(); + }; + + const clearData = () => { + model.value = {}; + selectedRowKeys.value = []; }; const editGroup = () => { @@ -97,6 +101,7 @@ http.post(group.saveComputeGroup, finalParams).then(() => { getTableData(); NsMessage.success('操作成功'); + op(); }); }); }; @@ -105,6 +110,7 @@ http.post(group.delComputeGroup, { id }).then(() => { getTableData(); NsMessage.success('操作成功'); + clearData(); }); }; const rowSelectChange = (selected, selectedRows) => {