render: (h,{column,index,row}) =>
{
returnh('div',{'class':'table-opt'},
[
h('i-button',{
props: {type:'warning',size:'small'},
on: {click: () => {this.modal1=true,this.bmw= index,this.bbb= row.uuid_sys_n,this.ccc=Number(row.is_show) }},
},Number(row.is_show) ?'隐藏':'显示'),
],
);
}
ok() {
Api.news.patch.isShowPatch(this.bbb,Number(!this.ccc)).then(({ret,msg,code}) =>
{
this.newsList[this.bmw].is_show= Number(!this.ccc)
},({ret,msg,code}) => { }
).catch(err => {console.log(err)});
// this.$Message.info('点击了确定');
},
精髓: 改变数据 即可动态获取 神奇的一批