el-table中数字转换成文字

<el-table-column label="状态" align="center" min-width="120">
    <template slot-scope="scope">
          <span v-if="scope.row.status == '0' ">正常</span>
          <span v-if="scope.row.status == '1' ">禁用</span>
    </template>
</el-table-column>
posted @ 2024-11-08 10:54  Charles博客  阅读(68)  评论(0)    收藏  举报