diff --git a/src/components/Common/TodayGood/components/TodayTableData/index.jsx b/src/components/Common/TodayGood/components/TodayTableData/index.jsx index e3ead31..74dad5c 100644 --- a/src/components/Common/TodayGood/components/TodayTableData/index.jsx +++ b/src/components/Common/TodayGood/components/TodayTableData/index.jsx @@ -8,20 +8,35 @@ function getRate(decimal) { } const TodayTableData = (props) => { - const cutting = useSelector((state) => state.cutting); + // const cutting = useSelector((state) => state.cutting); + let cutting = { + table: [ + { + lineName: "Y61", + first: 0.37, + second: 0.03, + product: 0.99, + waste: 0.01, + }, + ], + chart: {}, + }; const config = { // headerBGC: 'rgba(4, 44, 76, 0.3)', - headerBGC: "rgba(4, 44, 76, .8)", + // headerBGC: "rgba(4, 44, 76, .8)", + headerBGC: "#044A8460", header: [ - '产线', - '一等率', - '二等率', - '成品率', - '废品率', + '产线', + '一等率', + '二等率', + '成品率', + '废品率', ], - oddRowBGC: "#042444", - evenRowBGC: "#042c4c", + // oddRowBGC: "#042444", + // evenRowBGC: "#042c4c", + oddRowBGC: "#044A8460", + evenRowBGC: "#0b549970", columnWidth: [90], headerHeight: 40, hoverPause: false, @@ -42,7 +57,7 @@ const TodayTableData = (props) => { }; return (
- +
); }; diff --git a/src/index.css b/src/index.css index a1e8af2..96a31ee 100644 --- a/src/index.css +++ b/src/index.css @@ -125,3 +125,17 @@ body { .xc-chart-tooltip * { color: #fff !important; } + +/* 重写 数据表格ceil样式 */ +.dv-scroll-board .rows .ceil { + color: #fffc; + padding-left: 20px !important; +} + +.dv-scroll-board .rows .ceil:not(:first-child) { + border-left: 1px solid #0004; +} + +.dv-scroll-board .header .header-item:not(:first-child) { + border-left: 1px solid #0004; +}