How the elementUI tree control gets the selected id?

Page

clipboard.png

when I click OK, I will send the selected id to the background.

HTML:

<el-tree
  :data="data2"
  show-checkbox
  node-key="id"
  :default-expanded-keys="[1,4]"
  :default-checked-keys="[1,6]"
  :props="defaultProps">
</el-tree>

data:

data2: [ 
    {
        id: 1,
        label: "",
        children: [
            {
                id: 2,
                label: "",
            },                    
            {
                id: 3,
                label: "",
            },
        ]
    }, 
    {
        id: 4,
        label: "",
        children: [
            {
                id: 5,
                label: ""
            }, 
            {
                id: 6,
                label: ""
            }
        ]
    }, 
],

demo


this.$refs.roles.getCheckedKeys ()

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e851c7-46b08.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e851c7-46b08.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?