Commit 0e309562209b96742bf19e2c1d191cd93d4aa8e6
Merge remote-tracking branch 'origin/release/customer/2025/五彩' into release/customer/2025/五彩
Showing
3 changed files
with
20 additions
and
7 deletions
src/mes/indexMes/index.js
| @@ -992,6 +992,8 @@ const SystemFunComponent = () => { | @@ -992,6 +992,8 @@ const SystemFunComponent = () => { | ||
| 992 | const resetDailyReport = commonFunc.showLocalMessage(props, 'resetDailyReport', '关机'); | 992 | const resetDailyReport = commonFunc.showLocalMessage(props, 'resetDailyReport', '关机'); |
| 993 | const switchToManual = commonFunc.showLocalMessage(props, 'switchToManual', '切换手动'); | 993 | const switchToManual = commonFunc.showLocalMessage(props, 'switchToManual', '切换手动'); |
| 994 | const SwitchAuto = commonFunc.showLocalMessage(props, 'SwitchAuto', '切换自动'); | 994 | const SwitchAuto = commonFunc.showLocalMessage(props, 'SwitchAuto', '切换自动'); |
| 995 | + const ClearCache = commonFunc.showLocalMessage(props, 'ClearCache', '清空缓存'); | ||
| 996 | + const sSuccess = commonFunc.showLocalMessage(props, 'sSuccess', '成功'); | ||
| 995 | 997 | ||
| 996 | 998 | ||
| 997 | const { bPlcSd } = userinfo; | 999 | const { bPlcSd } = userinfo; |
| @@ -1036,7 +1038,7 @@ const SystemFunComponent = () => { | @@ -1036,7 +1038,7 @@ const SystemFunComponent = () => { | ||
| 1036 | overlayClassName={styles.systemFun} | 1038 | overlayClassName={styles.systemFun} |
| 1037 | content={ | 1039 | content={ |
| 1038 | <div className="systemFunContent"> | 1040 | <div className="systemFunContent"> |
| 1039 | - <div | 1041 | + {/* <div |
| 1040 | className="restDailyReport" | 1042 | className="restDailyReport" |
| 1041 | onClick={() => { | 1043 | onClick={() => { |
| 1042 | handleSystemFunClick("restDailyReport"); | 1044 | handleSystemFunClick("restDailyReport"); |
| @@ -1053,6 +1055,17 @@ const SystemFunComponent = () => { | @@ -1053,6 +1055,17 @@ const SystemFunComponent = () => { | ||
| 1053 | > | 1055 | > |
| 1054 | <SwapOutlined /> | 1056 | <SwapOutlined /> |
| 1055 | <span>{bPlcSd ? SwitchAuto : switchToManual}</span> | 1057 | <span>{bPlcSd ? SwitchAuto : switchToManual}</span> |
| 1058 | + </div> */} | ||
| 1059 | + <div | ||
| 1060 | + className="restDailyReport" | ||
| 1061 | + onClick={() => { | ||
| 1062 | + setTimeout(() => { | ||
| 1063 | + message.success( ClearCache + sSuccess + '!'); | ||
| 1064 | + }, 1000); | ||
| 1065 | + }} | ||
| 1066 | + > | ||
| 1067 | + <UndoOutlined /> | ||
| 1068 | + <span>{ClearCache}</span> | ||
| 1056 | </div> | 1069 | </div> |
| 1057 | </div> | 1070 | </div> |
| 1058 | } | 1071 | } |
src/mes/login/index.js
| @@ -736,7 +736,7 @@ const FaceLoginAfterModal = props => { | @@ -736,7 +736,7 @@ const FaceLoginAfterModal = props => { | ||
| 736 | }} | 736 | }} |
| 737 | > | 737 | > |
| 738 | <div className={styles.faceLogin1}> | 738 | <div className={styles.faceLogin1}> |
| 739 | - <Form form={form} layout="vertical" size="large"> | 739 | + <Form form={form} layout="horizontal" size="large" labelCol={{ span: 6 }} wrapperCol={{ span: 18 }}> |
| 740 | {configs | 740 | {configs |
| 741 | .filter(item => item.sName !== "sPassWord") | 741 | .filter(item => item.sName !== "sPassWord") |
| 742 | .map(item => handleGetFormItem(props, item, true))} | 742 | .map(item => handleGetFormItem(props, item, true))} |
src/mes/scheduledTasks/machineTasks/index.js
| @@ -432,11 +432,11 @@ const useInfoEvent = props => { | @@ -432,11 +432,11 @@ const useInfoEvent = props => { | ||
| 432 | tempTaskId: "" | 432 | tempTaskId: "" |
| 433 | }); | 433 | }); |
| 434 | } | 434 | } |
| 435 | - // props.onChangeRouter({ | ||
| 436 | - // type: "name", | ||
| 437 | - // path: ["生产执行", "生产执行"] | ||
| 438 | - // }); | ||
| 439 | - handleRefresh(); | 435 | + props.onChangeRouter({ |
| 436 | + type: "name", | ||
| 437 | + path: ["生产执行", "生产执行"] | ||
| 438 | + }); | ||
| 439 | + // handleRefresh(); | ||
| 440 | } else if (code === -7) { | 440 | } else if (code === -7) { |
| 441 | // 如果有开工中的任务,即接口返回-7,弹出确认窗体 | 441 | // 如果有开工中的任务,即接口返回-7,弹出确认窗体 |
| 442 | itemClickRef.current = { data: item }; | 442 | itemClickRef.current = { data: item }; |