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('點(diǎn)擊了確定');
},
精髓: 改變數(shù)據(jù) ?即可動(dòng)態(tài)獲取 ?神奇的一批