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) => {