美文网首页
ivew根据不同状态,改变table 字段的值

ivew根据不同状态,改变table 字段的值

作者: 落花夕拾 | 来源:发表于2019-08-22 15:10 被阅读0次
    
      {
                            title: '操作',
                            align: 'center',
                            width:200,
                            render: (h, params) => {
                                // let status = params.status;
                                let status = 1;
                                let btnName = '确认保存';
                                let typeColr = 'primary';
                                if(status != 1) {
                                    btnName = '重新上传';
                                    typeColr = 'info';
                                }
                                return h('div', [
                                    h('Button', {
                                        props: {
                                            type: 'primary',
                                            size: 'large'
                                        },
                                        style: {
                                            marginRight: '5px'
                                        },
                                        on: {
                                            click: () => {
                                                this.modal2 = true;
                                                // this.getAllTableData2(params.row.index, params.row.id)
                                            }
                                        }
                                    }, '详情'),
                                    h('Button', {
                                        props: {
                                            type: typeColr,
                                            size: 'large'
                                        },
                                        style: {
                                            marginRight: '5px'
                                        },
                                        on: {
                                            click: () => {
    
    
                                            }
                                        }
                                    },btnName),
                                ]);
                            }
                        },
    

    相关文章

      网友评论

          本文标题:ivew根据不同状态,改变table 字段的值

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