咏竹莉
where there is a will,there is a way

 

 

<el-table-column prop="is_online" label="状态">
    <template slot-scope="scope">
           <span :class="scope.row.is_online == '0' ? 'off-line' : scope.row.is_online == '1' ? 'on-line' : ''">{{scope.row.is_online == '0' ? '离线' : scope.row.is_online == '1' ? '在线' : '--'}}</span>
     </template>
</el-table-column>

 

posted on 2021-12-03 16:18  咏竹莉  阅读(287)  评论(0编辑  收藏  举报