From 063e123bc9e83aead5b417395601587b67b7dd83 Mon Sep 17 00:00:00 2001 From: suyanyan <1321717064@qq.com> Date: Mon, 30 Sep 2024 09:39:35 +0800 Subject: [PATCH] =?UTF-8?q?bug=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SafeCampus.WEB/src/views/userManage/clothing/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SafeCampus.WEB/src/views/userManage/clothing/index.vue b/SafeCampus.WEB/src/views/userManage/clothing/index.vue index f79ba84..6ee6956 100644 --- a/SafeCampus.WEB/src/views/userManage/clothing/index.vue +++ b/SafeCampus.WEB/src/views/userManage/clothing/index.vue @@ -144,7 +144,7 @@ function onOpen(opt: FormOptEnum, record: {},treeAllData:any) { async function addDelete(clothSetId: string[],msg: string) { // 二次确认 => 请求api => 刷新表格 await useHandleData(userManageClothApi.deleteClothDataBaseD, { clothSetId }, msg); - RefreshTree(); //刷新表格 + RefreshTree('delete'); //刷新表格 } /** @@ -162,7 +162,8 @@ const RefreshTable = () => { getList(clothSetId.value) } // 刷新表格+树 -const RefreshTree = async() => { +const RefreshTree = async(type='') => { + if(type == 'delete'){clothSetId.value = ''} treeKey.value = Math.random(); await getTree(); //刷新树形筛选器 await getList(clothSetId.value)