Screening problems of element forms

element official data is a string. I judge whether the data is passed or not according to the status of 0, 1 and 2. Please tell me how to filter this

   
    <el-table-column prop="iwaAuditStatus" column-key="status" label="" :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>
Nov.09,2021

<el-table-column prop="iwaAuditStatus" column-key="status" label="" :filters="[{ text: '', value: 1 }, { text: '', value: 2 },{ text: '', value: 0 }]" :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>

this should be fine. The specific words of
are written on jsfiddle. I will give you a link to https://jsfiddle.net/1aydhw5k/

.
Menu