页面中展示的
<el-table-column label="是否在册" min-width="150px" align="center">
<template slot-scope="{row}">
<span>
<el-tag :type="statusColor[row.isRegistered]">{{ row.isRegistered | dictLabel('sf') }}</el-tag>
</span>
</template>
</el-table-column>
return 中定义数据
statusColor: {
1: 'success',
0: 'info'
}