以下是 选择复选框 讲所选的行 的select多选 发送到后台,注意发送的参数类型
//选择
selectList(selection){
let that =this;
that.selectIds=[]; // return 定义的空数组
if(selection.length>0){
this.disabled=false;
for(let i=0; i<selection.length; i++){
that.selectIds.push(selection[i].id) // 获取到所选行的id
}
}else{
this.disabled=true;
}
},
这是 select 多选
{
title: '巡检员',
tooltip:true,
key: 'checkerName',
align:'center',
minWidth:140,
render: (h, params) => {
return h('Select', {
style: {
width:"100%",
},
props:{
multiple :true, /多选
label: params.row.checkerName,
value:params.row.checkerId,