diff --git a/src/mes/productionExec/productionExecMain/index.js b/src/mes/productionExec/productionExecMain/index.js index 5b2b8e4..e87a892 100644 --- a/src/mes/productionExec/productionExecMain/index.js +++ b/src/mes/productionExec/productionExecMain/index.js @@ -395,36 +395,36 @@ const ProductionExecMain = baseProps => { const [refreshCount, setRefreshCount] = useState(0); - useEffect(() => { - const getValue = () => { - const changeExecInfo = commonUtils.getAppData("changeExecInfo"); - if (changeExecInfo.dReplyPalletERp === 1) { - try { - const { sId } = changeExecInfo; - const url = `${commonConfig.server_host}mqtt/updateFlushmes/${sId}`; - commonServices.postValueService(null, {}, url).then(() => { - props.onRefresh(); - setRefreshCount(pre => pre + 1); - }) - } catch (error) { - console.log("=====updateFlushmes报错", { - error, changeExecInfo, - }); - props.onRefresh(); - setRefreshCount(pre => pre + 1); - } - } - }; - - getValue(); - const timer = setInterval(() => { - getValue(); - }, 1000); - - return () => { - clearInterval(timer); - }; - }, []); + // useEffect(() => { + // const getValue = () => { + // const changeExecInfo = commonUtils.getAppData("changeExecInfo"); + // if (changeExecInfo.dReplyPalletERp === 1) { + // try { + // const { sId } = changeExecInfo; + // const url = `${commonConfig.server_host}mqtt/updateFlushmes/${sId}`; + // commonServices.postValueService(null, {}, url).then(() => { + // props.onRefresh(); + // setRefreshCount(pre => pre + 1); + // }) + // } catch (error) { + // console.log("=====updateFlushmes报错", { + // error, changeExecInfo, + // }); + // props.onRefresh(); + // setRefreshCount(pre => pre + 1); + // } + // } + // }; + // + // getValue(); + // const timer = setInterval(() => { + // getValue(); + // }, 1000); + // + // return () => { + // clearInterval(timer); + // }; + // }, []); const { bFinish } = props; const [collapsed, setCollapsed] = useState(false);