vue+element实现表格v-if判断

<el-table-column prop="businessState"   label="当前状态" width="250px" show-overflow-tooltip align="center">
                <template scope="scope">                    
                    <p v-if="scope.row.businessState=='0'">配置中</p>
                    <p v-if="scope.row.businessState=='1'">发布</p>
                    <p v-if="scope.row.businessState=='2'">失效</p>               
                </template>
            </el-table-column>
posted @ 2019-09-18 18:11  Mr、DIVE  阅读(21157)  评论(0编辑  收藏  举报