From 8aecf2097c1c2dc6cc1ff5d9ac739943120102d4 Mon Sep 17 00:00:00 2001 From: suyanyan <1321717064@qq.com> Date: Mon, 23 Sep 2024 15:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SafeCampus.WEB/src/views/userManage/clothing/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SafeCampus.WEB/src/views/userManage/clothing/index.vue b/SafeCampus.WEB/src/views/userManage/clothing/index.vue index 4dfb22e..c7bba0a 100644 --- a/SafeCampus.WEB/src/views/userManage/clothing/index.vue +++ b/SafeCampus.WEB/src/views/userManage/clothing/index.vue @@ -7,6 +7,7 @@
(); const treeFilter = ref({}); +const showTree = ref(true); const userStore = useUserStore(); const { accessToken } = userStore; const tableData = ref([]) @@ -161,6 +163,10 @@ const RefreshTable = () => { } // 刷新表格+树 const RefreshTree = async() => { + showTree.value = false; + nextTick(() => { + showTree.value = true; + }) await getTree(); //刷新树形筛选器 await getList(clothSetId.value) } @@ -185,7 +191,8 @@ const getList = (clothSetId:any)=>{ const getTree =async ()=>{ const { data }:any = await userManageClothApi.getList({}); treeData.value = data; - if(!clothSetId.value ){ + showTree.value = true + if(!clothSetId.value){ clothSetId.value = data[0].clothSetId.toString() }