瀏覽代碼

Merge branch 'CR013B1' into CR013B2

# Conflicts:
#	src/pages/Payment/Search_GLD/DataGrid.js
#	src/pages/Payment/Search_GLD/SearchForm.js
#	src/routes/LoginRoutes.js
CR013B2
Alex Cheung 1 天之前
父節點
當前提交
2fb6afbe14
共有 25 個文件被更改,包括 192 次插入132 次删除
  1. +3
    -0
      src/components/FiDataGrid.js
  2. +45
    -6
      src/layout/MainLayout/Header/index.js
  3. +2
    -0
      src/pages/Announcement/Search/SearchForm.js
  4. +2
    -0
      src/pages/Announcement/Search_Public/SearchForm.js
  5. +2
    -0
      src/pages/AuditLog/AuditLogSearchForm.js
  6. +2
    -0
      src/pages/DemandNote/Create/SearchForm.js
  7. +2
    -0
      src/pages/DemandNote/Export/SearchForm.js
  8. +2
    -0
      src/pages/DemandNote/Search/SearchForm.js
  9. +2
    -0
      src/pages/Message/Search/SearchForm.js
  10. +7
    -13
      src/pages/Payment/FPS/FPS.js
  11. +0
    -10
      src/pages/Payment/Search_GLD/DataGrid.js
  12. +3
    -0
      src/pages/Payment/Search_GLD/SearchForm.js
  13. +2
    -0
      src/pages/Payment/Search_Public/SearchForm.js
  14. +96
    -103
      src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js
  15. +2
    -0
      src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js
  16. +3
    -0
      src/pages/PublicNotice/Search_GLD/SearchForm.js
  17. +2
    -0
      src/pages/PublicNotice/Search_Mark_As_Paid_GLD/SearchForm.js
  18. +2
    -0
      src/pages/User/SearchPage/UserSearchForm.js
  19. +1
    -0
      src/pages/User/SearchPage_Individual/UserSearchForm_Individual.js
  20. +3
    -0
      src/pages/User/SearchPage_Organization/UserSearchForm_Organization.js
  21. +1
    -0
      src/pages/authentication/auth-forms/AuthLogin.js
  22. +1
    -0
      src/pages/authentication/auth-forms/AuthLoginCustom.js
  23. +1
    -0
      src/pages/iAmSmart/AuthCallback/index.js
  24. +1
    -0
      src/pages/iAmSmart/DirectLoginCallback/index.js
  25. +5
    -0
      src/utils/Utils.js

+ 3
- 0
src/components/FiDataGrid.js 查看文件

@@ -57,12 +57,15 @@ export function FiDataGrid({ rows, columns, sx, autoHeight,
if(applySearch!=undefined){
if (Object.keys(getSearchCriteria(window.location.pathname)).length>0){
const localStorageSearchCriteria = getSearchCriteria(window.location.pathname)
console.log(localStorageSearchCriteria)
if(localStorageSearchCriteria.start!=undefined){
console.log(localStorageSearchCriteria)
setPage(localStorageSearchCriteria.start/pageSize);
}
}
}else{
setPage(0);
setPageSize(parseInt(event.target.value, 10));
}
set_doLoad(doLoad);
setLoading(true)


+ 45
- 6
src/layout/MainLayout/Header/index.js 查看文件

@@ -50,6 +50,7 @@ import {
isINDLoggedIn,
isPasswordExpiry,
haveOrgPaymentRecord,
haveOrgDnRecord,
isORGLoggedIn,
checkSysEnv
// getUserId
@@ -401,17 +402,55 @@ function Header(props) {
:
isORGLoggedIn() ?
haveOrgPaymentRecord() ?
<Link className="manageOrgUser" to='/paymentPage/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>
<FormattedMessage id="onlinePaymentHistory" />
</Typography></Link>
<>
<Link className="paymentRecord">
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>
<FormattedMessage id="paymentHistory" />
</Typography>
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} />
</Link>
<ul className='dropdown'>
<li>
<Link className="manageOrgUser" to='/paymentPage/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>
<FormattedMessage id="onlinePaymentHistory" />
</Typography></Link>
</li>
{haveOrgDnRecord()?
<li>
<Link className="manageOrgUser" to='/paymentPage/demandNote'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>
<FormattedMessage id="paymentInfoRecord" />
</Typography></Link>
</li>:null
}
</ul>
</>
:
<Link className="manageOrgUser" to='/paymentPage/demandNote'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>
<FormattedMessage id="paymentInfoRecord" />
</Typography></Link>
:
<Link className="manageOrgUser" to='/paymentPage/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>
<FormattedMessage id="onlinePaymentHistory" />
</Typography></Link>
<>
<Link className="paymentRecord">
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>
<FormattedMessage id="paymentHistory" />
</Typography>
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} />
</Link>
<ul className='dropdown'>
<li>
<Link className="manageOrgUser" to='/paymentPage/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>
<FormattedMessage id="onlinePaymentHistory" />
</Typography></Link>
</li>
{haveOrgDnRecord()?
<li>
<Link className="manageOrgUser" to='/paymentPage/demandNote'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>
<FormattedMessage id="paymentInfoRecord" />
</Typography></Link>
</li>:null
}
</ul>
</>
}
</li>
<li>


+ 2
- 0
src/pages/Announcement/Search/SearchForm.js 查看文件

@@ -51,6 +51,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady}) =>
key: data.key,
dateFrom: sentDateFrom,
dateTo: sentDateTo,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/Announcement/Search_Public/SearchForm.js 查看文件

@@ -68,6 +68,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady }) =>
key: data.key,
dateFrom: sentDateFrom,
dateTo: sentDateTo,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/AuditLog/AuditLogSearchForm.js 查看文件

@@ -66,6 +66,8 @@ const AuditLogSearchForm = ({ applySearch, searchCriteria, onGridReady}) => {
username: data.userName,
modifiedTo: sentDateTo,
modifiedFrom: sentDateFrom,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/DemandNote/Create/SearchForm.js 查看文件

@@ -136,6 +136,8 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p
}
const temp = {
issueId: issueSelected.id,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/DemandNote/Export/SearchForm.js 查看文件

@@ -137,6 +137,8 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData }) => {
}
const temp = {
issueId: issueSelected.id,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/DemandNote/Search/SearchForm.js 查看文件

@@ -115,6 +115,8 @@ const SearchDemandNoteForm = ({ applySearch, orgComboData, searchCriteria, issue
dueDateFrom: sentDueDateFrom,
dueDateTo: sentDueDateTo,
status: (data?.status === '' || data?.status?.includes("all")) ? "" : data.status,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/Message/Search/SearchForm.js 查看文件

@@ -67,6 +67,8 @@ const SearchForm = ({ applySearch, searchCriteria, onGridReady }) => {
keyword: data.keyword,
dateFrom: sentDateFrom,
dateTo: sentDateTo,
start:0,
limit:10
};
applySearch(temp);
};


+ 7
- 13
src/pages/Payment/FPS/FPS.js 查看文件

@@ -81,20 +81,14 @@ const Index = () => {
setLocationData(location.state)
setBrowserType(desktopBrowser)

if (localStorage.getItem('userData') != null){
const userId = JSON.parse(localStorage.getItem('userData')).id
if (userId === 13){
if (/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(navigator.userAgent)) {
// console.log('Mobile web browser');
setBrowserType(mobileBrowser)
// setFpsqrcodeurl(openPASGUrl)
} else {
// console.log('Desktop web browser');
setBrowserType(desktopBrowser)
}
}
if (/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(navigator.userAgent)) {
// console.log('Mobile web browser');
setBrowserType(mobileBrowser)
// setFpsqrcodeurl(openPASGUrl)
} else {
// console.log('Desktop web browser');
setBrowserType(desktopBrowser)
}

}
}, []);



+ 0
- 10
src/pages/Payment/Search_GLD/DataGrid.js 查看文件

@@ -91,16 +91,6 @@ export default function SearchPaymentTable({ searchCriteria, applyGridOnReady, a
return clickableLink('/paymentPage/details/' + params.row.id, params.row.transNo);
},
},
{
id: 'payMethod',
field: 'payMethod',
headerName: 'Payment means',
flex: 1,
minWidth: 150,
renderCell: (params) => {
return <div style={{ marginTop: 2, marginBottom: 2 }}>{params.row.payMethod}</div>
}
},
{
id: 'transDateTime',
field: 'transDateTime',


+ 3
- 0
src/pages/Payment/Search_GLD/SearchForm.js 查看文件

@@ -68,6 +68,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady }) =>
dateTo: sentDateTo,
status : (status?.type && status?.type != 'all') ? status?.type : "",
payMethod : (payMethod?.type && payMethod?.type != 'all') ? payMethod?.type : "",
start:0,
limit:10
};
applySearch(temp);
};
@@ -80,6 +82,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady }) =>
code:"",
transNo:""
});
localStorage.setItem('searchCriteria',"")
}




+ 2
- 0
src/pages/Payment/Search_Public/SearchForm.js 查看文件

@@ -70,6 +70,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady }) =>
dateFrom: sentDateFrom,
dateTo: sentDateTo,
status : (status?.type && status?.type != 'all') ? status?.type : "",
start:0,
limit:10
};
applySearch(temp);
};


+ 96
- 103
src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js 查看文件

@@ -19,7 +19,7 @@ import ForwardIcon from '@mui/icons-material/Forward';
import {
isORGLoggedIn,
isDummyLoggedIn,
isCreditorLoggedIn,
// isCreditorLoggedIn,
checkIsOnlyOnlinePaymentByIssueDate
} from "utils/Utils";

@@ -353,106 +353,101 @@ const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList }) =>
</Grid>
</Grid>
</Grid>

{!isCreditorLoggedIn() ?
<Grid item xs={12} alignItems={"center"} sx={{ p: 2 }}>
<table style={tabelStyle}>
<tbody>
<tr style={tabelStyle}>
<th style={tabelStyle} width="400" align="left"><FormattedMessage id="paymentMeans" /></th>
<th style={tabelStyle} width="300" align="left"><FormattedMessage id="confirmingDealine" /></th>
<th style={tabelStyle} width="300" align="left"><FormattedMessage id="PaymentCoonpletDealine" /></th>
</tr>
<tr>
<td style={tabelStyle}>
<FormattedMessage id="payOnline" />
<br /><a href="#payOnlineDetails" color='#fff' onClick={() => {
setWarningTitle(intl.formatMessage({ id: "paymentMeans" }) + ": " + intl.formatMessage({ id: "payOnline" }))
setWarningText(
<><FormattedMessage id="paymentMethodMeans" />:
<ul>
<li><FormattedMessage id="fps" /></li>
<li><FormattedMessage id="card" /></li>
<li><FormattedMessage id="pps" /></li>
</ul>
</>
);
setIsWarningPopUp(true);
}}><u><FormattedMessage id="viewDetail" /></u></a>
</td>
<td style={tabelStyle}>{DateUtils.dateFormat(closeDate, dft)} {locale==='en'?"2:00 p.m.":"下午2時"}</td>
<td style={tabelStyle}>
<FormattedMessage id="payOnlineRemark" values={{
date: DateUtils.dateFormat(closeDate, dft)
}} />
</td>
</tr>
{!isOnlyOnlinePayment?
<>
<tr>
<td style={tabelStyle}><FormattedMessage id="payDn" />
<br /><a href="#payDnDetails" onClick={() => {
setWarningTitle(intl.formatMessage({ id: "paymentMeans" }) + ": " + intl.formatMessage({ id: "payDn" }))
setWarningText(
<><FormattedMessage id="paymentMethodMeans" />:
<ul>
<li><FormattedMessage id="atm" /></li>
<li><FormattedMessage id="pps" /></li>
<li><FormattedMessage id="eBank" /></li>
<li><FormattedMessage id="phoneBank" /></li>
<li><FormattedMessage id="eCheque" /></li>
<li><FormattedMessage id="fps" /></li>
<li><FormattedMessage id="hkpo" /></li>
<li><FormattedMessage id="store" /></li>
<li><FormattedMessage id="post" /></li>
</ul>
<Typography variant="h6">
<div style={{ padding: 12 }} dangerouslySetInnerHTML={{ __html: intl.formatMessage({ id: "proofNote" }) }} />
</Typography>
</>
);
setIsWarningPopUp(true);
}}><u><FormattedMessage id="viewDetail" /></u></a>
</td>
<td style={tabelStyle}>{DateUtils.dateFormat(closingDateOff, dft)} {locale==='en'?"5:00 p.m.":"下午5時"}</td>
<td style={tabelStyle}>
<FormattedMessage id="payDnRemark" values={{
date: DateUtils.dateFormat(closeDate, dft)
}} />
</td>
</tr>
<tr>
<td style={tabelStyle}><FormattedMessage id="payNPGO" />
<br /><a href="#payNPGODetails" onClick={() => {
setWarningTitle(intl.formatMessage({ id: "paymentMeans" }) + ": " + intl.formatMessage({ id: "payNPGOPopUpTitle" }))
setWarningText(
<><FormattedMessage id="paymentMethodMeans" />:
<ul>
<li><FormattedMessage id="cheque" /></li>
<li><FormattedMessage id="drafts" /></li>
<li><FormattedMessage id="cashierOrders" /></li>
<li><FormattedMessage id="cash" /></li>
</ul>
</>
);
setIsWarningPopUp(true);
}}><u><FormattedMessage id="viewDetail" /></u></a>
</td>
<td style={tabelStyle}>{DateUtils.dateFormat(closeDate, dft)} {locale==='en'?"12:00 p.m.":"下午12時"}</td>
<td style={tabelStyle}>
<FormattedMessage id="payNPGORemark" values={{
date: DateUtils.dateFormat(closeDate, dft)
}} />
</td>
</tr>
</>:null
}
</tbody>
</table>

</Grid> : null
}

<Grid item xs={12} alignItems={"center"} sx={{ p: 2 }}>
<table style={tabelStyle}>
<tbody>
<tr style={tabelStyle}>
<th style={tabelStyle} width="400" align="left"><FormattedMessage id="paymentMeans" /></th>
<th style={tabelStyle} width="300" align="left"><FormattedMessage id="confirmingDealine" /></th>
<th style={tabelStyle} width="300" align="left"><FormattedMessage id="PaymentCoonpletDealine" /></th>
</tr>
<tr>
<td style={tabelStyle}>
<FormattedMessage id="payOnline" />
<br /><a href="#payOnlineDetails" color='#fff' onClick={() => {
setWarningTitle(intl.formatMessage({ id: "paymentMeans" }) + ": " + intl.formatMessage({ id: "payOnline" }))
setWarningText(
<><FormattedMessage id="paymentMethodMeans" />:
<ul>
<li><FormattedMessage id="fps" /></li>
<li><FormattedMessage id="card" /></li>
<li><FormattedMessage id="pps" /></li>
</ul>
</>
);
setIsWarningPopUp(true);
}}><u><FormattedMessage id="viewDetail" /></u></a>
</td>
<td style={tabelStyle}>{DateUtils.dateFormat(closeDate, dft)} {locale==='en'?"2:00 p.m.":"下午2時"}</td>
<td style={tabelStyle}>
<FormattedMessage id="payOnlineRemark" values={{
date: DateUtils.dateFormat(closeDate, dft)
}} />
</td>
</tr>
{!isOnlyOnlinePayment?
<>
<tr>
<td style={tabelStyle}><FormattedMessage id="payDn" />
<br /><a href="#payDnDetails" onClick={() => {
setWarningTitle(intl.formatMessage({ id: "paymentMeans" }) + ": " + intl.formatMessage({ id: "payDn" }))
setWarningText(
<><FormattedMessage id="paymentMethodMeans" />:
<ul>
<li><FormattedMessage id="atm" /></li>
<li><FormattedMessage id="pps" /></li>
<li><FormattedMessage id="eBank" /></li>
<li><FormattedMessage id="phoneBank" /></li>
<li><FormattedMessage id="eCheque" /></li>
<li><FormattedMessage id="fps" /></li>
<li><FormattedMessage id="hkpo" /></li>
<li><FormattedMessage id="store" /></li>
<li><FormattedMessage id="post" /></li>
</ul>
<Typography variant="h6">
<div style={{ padding: 12 }} dangerouslySetInnerHTML={{ __html: intl.formatMessage({ id: "proofNote" }) }} />
</Typography>
</>
);
setIsWarningPopUp(true);
}}><u><FormattedMessage id="viewDetail" /></u></a>
</td>
<td style={tabelStyle}>{DateUtils.dateFormat(closingDateOff, dft)} {locale==='en'?"5:00 p.m.":"下午5時"}</td>
<td style={tabelStyle}>
<FormattedMessage id="payDnRemark" values={{
date: DateUtils.dateFormat(closeDate, dft)
}} />
</td>
</tr>
<tr>
<td style={tabelStyle}><FormattedMessage id="payNPGO" />
<br /><a href="#payNPGODetails" onClick={() => {
setWarningTitle(intl.formatMessage({ id: "paymentMeans" }) + ": " + intl.formatMessage({ id: "payNPGOPopUpTitle" }))
setWarningText(
<><FormattedMessage id="paymentMethodMeans" />:
<ul>
<li><FormattedMessage id="cheque" /></li>
<li><FormattedMessage id="drafts" /></li>
<li><FormattedMessage id="cashierOrders" /></li>
<li><FormattedMessage id="cash" /></li>
</ul>
</>
);
setIsWarningPopUp(true);
}}><u><FormattedMessage id="viewDetail" /></u></a>
</td>
<td style={tabelStyle}>{DateUtils.dateFormat(closeDate, dft)} {locale==='en'?"12:00 p.m.":"下午12時"}</td>
<td style={tabelStyle}>
<FormattedMessage id="payNPGORemark" values={{
date: DateUtils.dateFormat(closeDate, dft)
}} />
</td>
</tr>
</>:null
}
</tbody>
</table>
</Grid>
<Grid item xs={12} md={12} lg={12}>
<Grid container direction="row" justifyContent="flex-start" alignItems="center">
<Grid item xs={12} md={3} lg={3}
@@ -528,9 +523,7 @@ const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList }) =>
</>
:
null

}

{
isDummyLoggedIn() ?
<Grid item xs={12} md={12} lg={12}>


+ 2
- 0
src/pages/PublicNotice/ListPanel/SearchPublicNoticeForm.js 查看文件

@@ -92,6 +92,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, onGridReady }) =>
contact: data.contact,
careOf: data.careOf?data.careOf:"",
status: (data.status === "" || data.status.includes('all')) ? "" : data.status,
start:0,
limit:10
};
applySearch(temp);
};


+ 3
- 0
src/pages/PublicNotice/Search_GLD/SearchForm.js 查看文件

@@ -64,6 +64,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss
const marginBottom = 2.5;
const { reset, register, handleSubmit } = useForm()
const onSubmit = (data) => {
// localStorage.setItem('searchCriteria',"")
data.status = selectedStatus?.type
let typeArray = [];
let sentDateFrom = "";
@@ -88,6 +89,8 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss
issueId: issueSelected?.id,
groupNo: data.groupNo,
gazettGroup: groupSelected?.code,
start:0,
limit:10
};
applySearch(temp);
// setSearchReady(true)


+ 2
- 0
src/pages/PublicNotice/Search_Mark_As_Paid_GLD/SearchForm.js 查看文件

@@ -86,6 +86,8 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss
orgId: (orgSelected?.key && orgSelected?.key > 0) ? orgSelected?.key : "",
issueId: issueSelected?.id,
groupNo: data.groupNo,
start:0,
limit:10
};
applySearch(temp);
};


+ 2
- 0
src/pages/User/SearchPage/UserSearchForm.js 查看文件

@@ -42,6 +42,8 @@ const UserSearchForm = ({ applySearch, onGridReady, searchCriteria }) => {
post: data.post,
email: data.email,
locked: locked,
start:0,
limit:10
};
applySearch(temp);
};


+ 1
- 0
src/pages/User/SearchPage_Individual/UserSearchForm_Individual.js 查看文件

@@ -61,6 +61,7 @@ const UserSearchForm_Individual = ({ applySearch, onGridReady, searchCriteria })
email:"",
phone:"",
});
localStorage.setItem('searchCriteria',"")
}

return (


+ 3
- 0
src/pages/User/SearchPage_Organization/UserSearchForm_Organization.js 查看文件

@@ -52,6 +52,8 @@ const UserSearchForm_Organization = ({applySearch, orgComboData, onGridReady, se
brNoStr: data.brNoStr,
orgName: orgSelected?.name ? orgSelected?.name : "",
accountFilter: accountFilter=="All"?null:accountFilter,
start:0,
limit:10
};
applySearch(temp);
};
@@ -77,6 +79,7 @@ const UserSearchForm_Organization = ({applySearch, orgComboData, onGridReady, se
contactPerson:"",
brNoStr:"",
});
localStorage.setItem('searchCriteria',"")
}

return (


+ 1
- 0
src/pages/authentication/auth-forms/AuthLogin.js 查看文件

@@ -76,6 +76,7 @@ const AuthLogin = () => {
abilities: response.data.abilities,
passwordExpiryDate: response.data.passwordExpiryDate,
orgPaymentRecord: response.data.orgPaymentRecord,
orgDnRecord: response.data.orgDnRecord,
//avatar: require('src/assets/images/users/avatar-3.png').default,
}
// const abilities = response.data.abilities


+ 1
- 0
src/pages/authentication/auth-forms/AuthLoginCustom.js 查看文件

@@ -92,6 +92,7 @@ const AuthLoginCustom = () => {
locale: response.data.preferLocale,
passwordExpiryDate: response.data.passwordExpiryDate,
orgPaymentRecord: response.data.orgPaymentRecord,
orgDnRecord: response.data.orgDnRecord,
//avatar: require('src/assets/images/users/avatar-3.png').default,
}
const data = { ...userData, accessToken: response.data.accessToken, refreshToken: response.data.refreshToken }


+ 1
- 0
src/pages/iAmSmart/AuthCallback/index.js 查看文件

@@ -47,6 +47,7 @@ const Index = () => {
creditor: responseData.creditor,
passwordExpiryDate: responseData.passwordExpiryDate,
orgPaymentRecord: responseData.orgPaymentRecord,
orgDnRecord: responseData.orgDnRecord,
//locale: responseData.preferLocale,
//avatar: require('src/assets/images/users/avatar-3.png').default,
}


+ 1
- 0
src/pages/iAmSmart/DirectLoginCallback/index.js 查看文件

@@ -47,6 +47,7 @@ const Index = () => {
creditor: responseData.creditor,
passwordExpiryDate: responseData.passwordExpiryDate,
orgPaymentRecord: responseData.orgPaymentRecord,
orgDnRecord: responseData.orgDnRecord,
//avatar: require('src/assets/images/users/avatar-3.png').default,
}
const data = { ...userData, accessToken: responseData.accessToken, refreshToken: responseData.refreshToken }


+ 5
- 0
src/utils/Utils.js 查看文件

@@ -100,6 +100,11 @@ export const haveOrgPaymentRecord = () =>{
return JSON.parse(localStorage.getItem('userData')).orgPaymentRecord
}
}
export const haveOrgDnRecord = () =>{
if (localStorage.getItem('userData') != null){
return JSON.parse(localStorage.getItem('userData')).orgDnRecord
}
}
export const checkSysEnv = () =>{
if (localStorage.getItem('sysEnv') != null){
// console.log(localStorage.getItem('sysEnv'))


Loading…
取消
儲存