element指定表格某个单元格颜色
文章目录
<el-form-item prop="jiaose" label="学生角色" :label-width="formLabelWidth">
<template scope="scope">
<span v-if="scope.row.jiaose=== 0" style="color: red">学生</span>
<span v-else-if= "scope.row.jiaoSeId ==6" style="color: green">项目主管</span>
<span v-else ">经理</span>
</template>
</el-form-item>
效果: