标签:rop ice serve handle 编号 代码 dev str select
1.获取表格checkbox的行的数据,绑定事件selection-change,回调返回值为:devicesGridData,和下面代码对应
<el-table :data="devicesGridData" ref="multipleTable" @selection-change="handleSelectionChange" :row-key="getRowKey"> <el-table-column type="selection" width="55" :reserve-selection="true"> </el-table-column> <el-table-column property="code" label="设备编号" width="100"></el-table-column> <el-table-column property="name" label="设备名称" width="100"></el-table-column> <el-table-column property="modelType" label="设备规格"></el-table-column> </el-table>
handleSelectionChange(val) {
//alert(JSON.stringify(val));
this.multipleSelection = val;
},
标签:rop ice serve handle 编号 代码 dev str select
原文地址:https://www.cnblogs.com/longsanshi/p/13212931.html