Commit c1497f57dad073ef660c08e01b665a3def301eb5

Authored by Min
1 parent 1213124c

1.存储登录缓存,不要记住密码

src/components/Common/CommonTable/index.js
... ... @@ -4376,8 +4376,8 @@ class CommonTableRc extends React.Component {
4376 4376 search = false;
4377 4377 }
4378 4378 }
4379   - console.log(props, 'props.data');
4380   -
  4379 +
  4380 +
4381 4381 if (
4382 4382 column.dataIndex === "spicture" ||
4383 4383 column.dataIndex === "tableLastEmpty" ||
... ... @@ -6982,7 +6982,7 @@ class CommonTableRc extends React.Component {
6982 6982 this.props.onSelectCommonPopup(name, selectConfig, selectData, tb?.name, tb?.config, { index: this.rowClickRef.current });
6983 6983 return;
6984 6984 }
6985   -
  6985 +
6986 6986 this.props.onSelectCommonPopup(name, selectConfig, selectData, tb?.name, commonPopupShowConfig);
6987 6987 }
6988 6988 };
... ... @@ -12209,7 +12209,7 @@ const useGetTableBtnOprSetting = props => {
12209 12209 return parts[parts.length - 1].replace(/^btn/i, ''); // 取最后一部分
12210 12210 };
12211 12211 if (sDefault === '') {
12212   - // sDefault =
  12212 + // sDefault =
12213 12213 const btnList = gdsconfigformslave.filter(item => item.bVisible && item.sControlName.includes('Btn'))
12214 12214 sDefault = btnList?.map(item => {
12215 12215 return getButtonName(item.sControlName.toLowerCase())
... ...
src/mes/login/index.js
... ... @@ -318,9 +318,11 @@ const useLoginEvent = props => {
318 318 JSON.stringify(statusData)
319 319 );
320 320 const { masterData = {} } = props;
  321 + const storeMasterData = JSON.parse(JSON.stringify(masterNewData));
  322 + delete storeMasterData?.sPassWord;
321 323 localStorage.setItem(
322 324 `${commonConfig.prefix}masterData`,
323   - JSON.stringify(masterNewData)
  325 + JSON.stringify(storeMasterData)
324 326 )
325 327  
326 328 handleUserlogin({
... ... @@ -398,7 +400,7 @@ const handleGetFormItem = (props, item) => {
398 400 } else if (item.iTag === 3) {
399 401 enabledNew = true;
400 402 }
401   -
  403 +
402 404 const showTypeProps = {
403 405 bNewForm: true,
404 406 iColValue: 24,
... ... @@ -436,7 +438,7 @@ const handleGetFormItem = (props, item) => {
436 438 style: { backgroundColor: "#eaeaea" }
437 439 };
438 440 console.log(showTypeProps, 'showTypeProps');
439   -
  441 +
440 442 const showName = sLanguage === 'sChinese' ? item.sChinese : sLanguage === 'sEnglish' ? item.sEnglish
441 443 : item.sBig5;
442 444 return (
... ...