<el-table-column prop="status" label="状态"> <template slot-scope="scope"> <span :style="{color: scope.row.status === '正常' ? 'green' : 'red'}">{{ scope.row.status }}</span> </template> </el-table-column>