From c1497f57dad073ef660c08e01b665a3def301eb5 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Mon, 29 Dec 2025 13:56:22 +0800 Subject: [PATCH] 1.存储登录缓存,不要记住密码 --- src/components/Common/CommonTable/index.js | 8 ++++---- src/mes/login/index.js | 8 +++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/Common/CommonTable/index.js b/src/components/Common/CommonTable/index.js index 9d9b894..9b80a00 100644 --- a/src/components/Common/CommonTable/index.js +++ b/src/components/Common/CommonTable/index.js @@ -4376,8 +4376,8 @@ class CommonTableRc extends React.Component { search = false; } } - console.log(props, 'props.data'); - + + if ( column.dataIndex === "spicture" || column.dataIndex === "tableLastEmpty" || @@ -6982,7 +6982,7 @@ class CommonTableRc extends React.Component { this.props.onSelectCommonPopup(name, selectConfig, selectData, tb?.name, tb?.config, { index: this.rowClickRef.current }); return; } - + this.props.onSelectCommonPopup(name, selectConfig, selectData, tb?.name, commonPopupShowConfig); } }; @@ -12209,7 +12209,7 @@ const useGetTableBtnOprSetting = props => { return parts[parts.length - 1].replace(/^btn/i, ''); // 取最后一部分 }; if (sDefault === '') { - // sDefault = + // sDefault = const btnList = gdsconfigformslave.filter(item => item.bVisible && item.sControlName.includes('Btn')) sDefault = btnList?.map(item => { return getButtonName(item.sControlName.toLowerCase()) diff --git a/src/mes/login/index.js b/src/mes/login/index.js index a8a83b5..23eb75a 100644 --- a/src/mes/login/index.js +++ b/src/mes/login/index.js @@ -318,9 +318,11 @@ const useLoginEvent = props => { JSON.stringify(statusData) ); const { masterData = {} } = props; + const storeMasterData = JSON.parse(JSON.stringify(masterNewData)); + delete storeMasterData?.sPassWord; localStorage.setItem( `${commonConfig.prefix}masterData`, - JSON.stringify(masterNewData) + JSON.stringify(storeMasterData) ) handleUserlogin({ @@ -398,7 +400,7 @@ const handleGetFormItem = (props, item) => { } else if (item.iTag === 3) { enabledNew = true; } - + const showTypeProps = { bNewForm: true, iColValue: 24, @@ -436,7 +438,7 @@ const handleGetFormItem = (props, item) => { style: { backgroundColor: "#eaeaea" } }; console.log(showTypeProps, 'showTypeProps'); - + const showName = sLanguage === 'sChinese' ? item.sChinese : sLanguage === 'sEnglish' ? item.sEnglish : item.sBig5; return ( -- libgit2 0.22.2