|
@@ -166,16 +166,16 @@ export default {
|
|
|
setCellClassName({ column }) {
|
|
|
const { label } = column;
|
|
|
// if (label === "营业收入(净)" || label === '当月成本合计') return "pure__cell";
|
|
|
- if (label === "营收目标") return "bg__success"
|
|
|
- if (label.indexOf('营业') !== -1 || label.indexOf('营收') !== -1) return "bg__success_1"
|
|
|
+ if (label === "当月营收目标") return "bg__success"
|
|
|
+ if ((label.indexOf('营业') !== -1 || label.indexOf('营收') !== -1) && label !== '当日营业收入') return "bg__success_1"
|
|
|
if (label === "毛利目标") return "bg__primary"
|
|
|
if (label.indexOf('毛利') !== -1) return "bg__primary_1"
|
|
|
if (label.indexOf('成本') !== -1) return "bg__warning_1"
|
|
|
},
|
|
|
setHeaderClassName({ column }) {
|
|
|
const { label } = column;
|
|
|
- if (label === "营收目标") return "bg__success"
|
|
|
- if (label.indexOf('营业') !== -1 || label.indexOf('营收') !== -1) return "bg__success_1"
|
|
|
+ if (label === "当月营收目标") return "bg__success"
|
|
|
+ if ((label.indexOf('营业') !== -1 || label.indexOf('营收') !== -1) && label !== '当日营业收入') return "bg__success_1"
|
|
|
if (label === "毛利目标") return "bg__primary"
|
|
|
if (label.indexOf('毛利') !== -1) return "bg__primary_1"
|
|
|
if (label.indexOf('成本') !== -1) return "bg__warning_1"
|