<el-table-column prop="state" Tabel="状态"> <template slot-scope="scope"> <el-tag type="success" effect="dark" v-if="scope.row.state == 1">已入库</el-tag> <el-tag type="warning"effect="dark" v-if="scope.row.state == 0">待审批</el-tag> <el-tag type="warning"effect="warning" v-if="scope.row.state == -1">被驳回</el-tag> </template> </el-table-column>
elementui 状态管理
最新推荐文章于 2024-07-25 21:13:00 发布