From cd9f74f8590fe39c617d103b7dc58bd822500360 Mon Sep 17 00:00:00 2001 From: tony <846249920@qq.com> Date: Mon, 6 Feb 2023 14:14:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E7=BF=BB=E9=A1=B5=E5=90=8E=E5=B7=B2=E9=80=89=E6=8B=A9=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/flow/User/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/components/flow/User/index.vue b/ruoyi-ui/src/components/flow/User/index.vue index 087362e7..c04d075b 100644 --- a/ruoyi-ui/src/components/flow/User/index.vue +++ b/ruoyi-ui/src/components/flow/User/index.vue @@ -53,8 +53,8 @@ 重置 - - + + @@ -216,6 +216,10 @@ export default { this.deptOptions = response.data; }); }, + // 保存选中的数据id,row-key就是要指定一个key标识这一行的数据 + getRowKey (row) { + return row.id + }, // 筛选节点 filterNode(value, data) { if (!value) return true;