diff --git a/src/mes/indexMes/index.js b/src/mes/indexMes/index.js index e06b001..3d28bab 100644 --- a/src/mes/indexMes/index.js +++ b/src/mes/indexMes/index.js @@ -992,6 +992,7 @@ const SystemFunComponent = () => { const resetDailyReport = commonFunc.showLocalMessage(props, 'resetDailyReport', '关机'); const switchToManual = commonFunc.showLocalMessage(props, 'switchToManual', '切换手动'); const SwitchAuto = commonFunc.showLocalMessage(props, 'SwitchAuto', '切换自动'); + const ClearCache = commonFunc.showLocalMessage(props, 'ClearCache', '清空缓存'); const { bPlcSd } = userinfo; @@ -1036,7 +1037,7 @@ const SystemFunComponent = () => { overlayClassName={styles.systemFun} content={
-
{ handleSystemFunClick("restDailyReport"); @@ -1053,6 +1054,17 @@ const SystemFunComponent = () => { > {bPlcSd ? SwitchAuto : switchToManual} +
*/} +
{ + setTimeout(() => { + message.success('清除缓存成功!'); + }, 1000); + }} + > + + {ClearCache}
} diff --git a/src/mes/scheduledTasks/machineTasks/index.js b/src/mes/scheduledTasks/machineTasks/index.js index 62bfb76..367417f 100644 --- a/src/mes/scheduledTasks/machineTasks/index.js +++ b/src/mes/scheduledTasks/machineTasks/index.js @@ -432,11 +432,11 @@ const useInfoEvent = props => { tempTaskId: "" }); } - // props.onChangeRouter({ - // type: "name", - // path: ["生产执行", "生产执行"] - // }); - handleRefresh(); + props.onChangeRouter({ + type: "name", + path: ["生产执行", "生产执行"] + }); + // handleRefresh(); } else if (code === -7) { // 如果有开工中的任务,即接口返回-7,弹出确认窗体 itemClickRef.current = { data: item };