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>

猜你喜欢

转载自www.cnblogs.com/DIVEY/p/11544253.html