From a1ce9eda2a7d707df6e2d4757e0b3010f8adf20f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B2=81=E6=9C=88=E4=B8=8D=E7=BB=8F=E8=B0=88?= <473831241@qq.com> Date: Tue, 5 Sep 2023 10:14:42 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/views/system/user/DeptTree.vue=20?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E6=A0=91=E8=8A=82=E7=82=B9=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88=20=E9=83=A8=E9=97=A8=E6=A0=91?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E8=BF=87=E6=BB=A4=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 岁月不经谈 <473831241@qq.com> --- src/views/system/user/DeptTree.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/system/user/DeptTree.vue b/src/views/system/user/DeptTree.vue index bd8cc575..ab8ba06f 100644 --- a/src/views/system/user/DeptTree.vue +++ b/src/views/system/user/DeptTree.vue @@ -51,6 +51,11 @@ const handleNodeClick = async (row: { [key: string]: any }) => { } const emits = defineEmits(['node-click']) +/** 监听deptName */ +watch(deptName, (val) => { + treeRef.value!.filter(val) +}) + /** 初始化 */ onMounted(async () => { await getTree()