关于el-table的展开 选择 expand 选项
<el-dialog title="权限列表" :visible.sync="formVisible1">
<div><br></div>
<el-button @click="send()" type="primary">发送</el-button>
<el-button @click="close()" type="danger">关闭</el-button>
<div><br></div>
<el-table :data="da" border style="width: 100%">
<el-table-column type="expand">
<template slot-scope="scope">
<el-table :data="scope.row.children" border style="width: 100%">
<el-table-column label="子菜单">
<template slot-scope="scope">
<!-- 定义选中事件,以及是否选中,Column1CheckedAll 控制全选, -->
<el-checkbox @change="deal(scope.row)"
v-model="scope.row.check"></el-checkbox>
</template>
</el-table-column>
<el-table-column prop="id" label="id" width="100">
<template scope="scope">
<p>{
{scope.row.role.id}}</p>