element UI table 状态显示:禁用-启用 上架-下架

vue2.0+elementUI 解决表单上架下架状态的切换

https://blog.csdn.net/weixin_42507803/article/details/81910297

<el-table-column label="状态" prop="userState" width="100">
                <template scope="scope">
                    <div>
<!--                        {{ scope.row.userState | userState }}-->
                        {{scope.row.userState == 0 ? "启用" : scope.row.userState == 1 ? "禁用" : "解锁"}}
                    </div>
                </template>
            </el-table-column>

 

posted @ 2020-06-26 13:36  张艳涛&java  阅读(945)  评论(0编辑  收藏  举报