element官方數(shù)據(jù)是字符串,我這邊是根據(jù)0、1、2狀態(tài)來判斷數(shù)據(jù)是通過未通過...的,請教一下這種怎么篩選
<el-table-column prop="iwaAuditStatus" column-key="status" label="狀態(tài)" :filters="[{ text: '通過', value: '通過' }, { text: '未通過', value: '未通過' },{ text: '審核中', value: '審核中' }]" :filter-method="filterTag" filter-placement="bottom-end">
<template slot-scope="scope">
<el-tag type="success" v-if="scope.row.iwaAuditStatus == 1">通過</el-tag>
<el-tag v-else-if="scope.row.iwaAuditStatus == 0">審核中</el-tag>
<el-tag type="danger" v-else-if="scope.row.iwaAuditStatus == 2">未通過</el-tag>
</template>
</el-table-column>
添加回答
舉報
0/150
提交
取消