From a3ec4a5dfbcb1356d6532d2925d16f70010dad37 Mon Sep 17 00:00:00 2001 From: liuyongli <1598631486@qq.com> Date: Fri, 26 Nov 2021 11:46:42 +0800 Subject: [PATCH] no message --- src/views/Employee/index.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/views/Employee/index.vue b/src/views/Employee/index.vue index 68f6e0b..e6a6913 100644 --- a/src/views/Employee/index.vue +++ b/src/views/Employee/index.vue @@ -143,11 +143,23 @@ const treeData = [ ], }, ]; +const rowSelection = { + onChange: (selectedRowKeys, selectedRows) => { + console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows); + }, + onSelect: (record, selected, selectedRows) => { + console.log(record, selected, selectedRows); + }, + onSelectAll: (selected, selectedRows, changeRows) => { + console.log(selected, selectedRows, changeRows); + }, +}; const options = []; export default { name: "Employee", //员工管理 data() { return { + rowSelection, value: undefined, treeData, expandedKeys: ["0-0-0", "0-0-1"],