这是element写法如果用vue换一下标签用
<el-table-column prop="ismodify" label="是否修改" min-width="80" />
<el-table-column
prop="ismodify"
label="是否修改"
width="100">
<template slot-scope="scope">
<el-tag
:type="scope.row.ismodify === 1 ? 'success' : 'primary'"
disable-transitions>{{ scope.row.ismodify==1 ? '已修改' : '待修改' }}</el-tag>
</template>
</el-table-column>
vue,element三元判断
最新推荐文章于 2024-07-06 16:47:02 发布