美文网首页
render 里面的问题 动态改变 row 内容立马执行

render 里面的问题 动态改变 row 内容立马执行

作者: 我是苏大大 | 来源:发表于2017-06-20 23:47 被阅读0次

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('点击了确定');

},

精髓: 改变数据  即可动态获取  神奇的一批

相关文章

网友评论

      本文标题:render 里面的问题 动态改变 row 内容立马执行

      本文链接:https://www.haomeiwen.com/subject/evtzqxtx.html