From 79ff886603d6b440793753c6058eacea0eb5ded4 Mon Sep 17 00:00:00 2001 From: chenxt <10125295+chen-xintao97@user.noreply.gitee.com> Date: Thu, 22 Jan 2026 11:21:35 +0800 Subject: [PATCH] 清空缓存和回滚暂停跳转功能 --- src/mes/indexMes/index.js | 14 +++++++++++++- src/mes/scheduledTasks/machineTasks/index.js | 10 +++++----- 2 files changed, 18 insertions(+), 6 deletions(-) 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 }; -- libgit2 0.22.2