指标值超30%标红
<el-table-column
label="较日常">
<template slot-scope="scope">
<div :class="{'red': scope.row.valueOver}">
<span>{{ scope.row.compare }}</span>
</div>
</template>
</el-table-column>
// 标红处理
if(jrc > 30 || jrc < -30) {
indacator[i].valueOver = true;
}else {
indacator[i].valueOver = false;
}
console.log(jrc, indacator[i].valueOver, '较日常是否过30%');