<el-table-column prop="dfZt" label="标题标题" width="120px">
<template slot-scope="scope">
<span :class="Zt(scope.row.dfZt)">{{scope.row.dfZt}}</span>
</template>
</el-table-column>
//状态
Zt(value) {
return {
red: value === "未开始",
green: value === "已提交"
};
}
注:red、blue样式需提前写好