import TitleBox from "../../Component/TitleBox"; import ScrollBoard from "../../../Component/ScrollBoard"; // import { useAppSelector } from "../../../../store/hooks"; // import { selectOrderCompletionWO } from "../../../../store/HomePageSlice"; function RightDown2() { // const data = useAppSelector(selectOrderCompletionWO); // console.log("222222封装工单完成情况+", data); const config = { header: ["序号", "设备名称", "运行频率", "设备状态"], headerHeight: 30, rowNum: 5, headerBGC: "rgba(4, 74, 132, 0.2)", oddRowBGC: "rgba(4, 74, 132, 0.2)", evenRowBGC: "rgba(11, 84, 153, 0.36)", columnWidth: [110, 180, 120, 120], align: ["center", "left", "left", "center"], data: [ ['1','产线1的名称','未运行','正常'], ['2','产线1的名称','未运行','故障'], ['3','产线1的名称','未运行','正常'], ['4','产线1的名称','未运行','正常'], ['5','产线1的名称','未运行','故障'] ], }; // let arr: any = []; // data && // data.map((item: any, index: any) => { // let arrInner = []; // arrInner.push( // item.workOrderNo ? item.workOrderNo : "-", // item.planQuantity // ? item.planQuantity // : item.planQuantity === 0 // ? item.planQuantity // : "-", // item.actualPutIn // ? item.actualPutIn // : item.actualPutIn === 0 // ? item.actualPutIn // : "-", // item.actualQuantity // ? item.actualQuantity // : item.actualQuantity === 0 // ? item.actualQuantity // : "-", // item.completeness // ? item.completeness + "%" // : item.completeness === 0 // ? item.completeness + "%" // : "-" // ); // arr.push(arrInner); // }); // config.data = arr; return (
{/*
*/} {/* {data.length !== 0 && (
)} */}

暂无数据

); } export default RightDown2;