87,990
社区成员
发帖
与我相关
我的任务
分享{
title: '核查情况',
//type: 'button',
//type: 'expand',
ellipsis:true,
width: 160,
render: (h, params) => {
return h('RadioGroup',{
props:{
},
on:{
'on-change': (status)=>{
//备注: 不要用params。row来修改数据
//table根据data来变更。当前行数据的修改不会反馈到后台script里的数据
//使用$set能够动态监测
console.log("status -- " + status)
if(status === 'false'){
//问题: 点击时第一下不会触发界面效果
//this.pagerData.data[params.row._index]._expanded = true
this.$set(this.pagerData.data[params.row._index], '_expanded', true)
}else{
this.$set(this.pagerData.data[params.row._index], '_expanded', false)
}
}
}
},[
h('Radio',{
props:{
label: 'true'
}
},'符合'),
h('Radio',{
props:{
label: 'false'
}
},'不符合')
]
);
}
},
{
ellipsis:true,
type: 'expand',
width: 0,
render: (h, params) => {
return h(HidedangerInfo, {
style:{
//padding: 0
},
props: {
row: params.row
}
});
}
}