Browse Source

fix orgid null

master
Alex Cheung 1 year ago
parent
commit
473d360628
4 changed files with 17 additions and 14 deletions
  1. +5
    -2
      src/pages/PublicNotice/Details_Public/ApplicationDetailCard.js
  2. +4
    -4
      src/pages/PublicNotice/ListPanel/BaseGrid.js
  3. +4
    -4
      src/pages/PublicNotice/ListPanel/PendingPaymentTab.js
  4. +4
    -4
      src/pages/PublicNotice/ListPanel/SearchPublicNoticeTable.js

+ 5
- 2
src/pages/PublicNotice/Details_Public/ApplicationDetailCard.js View File

@@ -27,6 +27,9 @@ import * as HttpUtils from "utils/HttpUtils"
import * as StatusUtils from "utils/statusUtils/PublicNoteStatusUtils"; import * as StatusUtils from "utils/statusUtils/PublicNoteStatusUtils";
import * as DateUtils from "utils/DateUtils"; import * as DateUtils from "utils/DateUtils";
import * as FormatUtils from "utils/FormatUtils"; import * as FormatUtils from "utils/FormatUtils";
import {
isORGLoggedIn,
} from "utils/Utils";


// import BorderColorOutlinedIcon from '@mui/icons-material/BorderColorOutlined'; // import BorderColorOutlinedIcon from '@mui/icons-material/BorderColorOutlined';
// import DoneIcon from '@mui/icons-material/Done'; // import DoneIcon from '@mui/icons-material/Done';
@@ -513,7 +516,7 @@ const ApplicationDetailCard = (
</Grid> </Grid>
</Grid> </Grid>
</Grid> </Grid>
{currentApplicationDetailData.orgId === null ? null:
{isORGLoggedIn() ?
<Grid item xs={12} md={6} lg={6} sx={{ mb: 1, paddingTop: 2 }}> <Grid item xs={12} md={6} lg={6} sx={{ mb: 1, paddingTop: 2 }}>
<Grid container alignItems={"center"}> <Grid container alignItems={"center"}>
<Grid item xs={12} md={3} lg={3} <Grid item xs={12} md={3} lg={3}
@@ -524,7 +527,7 @@ const ApplicationDetailCard = (
<Typography variant="h5">{currentApplicationDetailData.careOf}</Typography> <Typography variant="h5">{currentApplicationDetailData.careOf}</Typography>
</Grid> </Grid>
</Grid> </Grid>
</Grid>
</Grid>: null
} }
<Grid item xs={12} md={6} lg={6} sx={{ mb: 1, paddingTop: 2 }}> <Grid item xs={12} md={6} lg={6} sx={{ mb: 1, paddingTop: 2 }}>
<Grid container alignItems={"center"}> <Grid container alignItems={"center"}>


+ 4
- 4
src/pages/PublicNotice/ListPanel/BaseGrid.js View File

@@ -70,13 +70,13 @@ export default function BaseGrid({rows}) {
headerName: isORGLoggedIn()?"Care Of / 我的備註":"我的備註", headerName: isORGLoggedIn()?"Care Of / 我的備註":"我的備註",
flex: 3, flex: 3,
renderCell: (params) => ( renderCell: (params) => (
params.row.orgId === null?
<div>
<Typography>{params.row.remarks}</Typography>
</div>:
isORGLoggedIn()?
<div> <div>
<Typography>Care Of: {params.row.careOf}</Typography> <Typography>Care Of: {params.row.careOf}</Typography>
<Typography>我的備註: {params.row.remarks}</Typography> <Typography>我的備註: {params.row.remarks}</Typography>
</div>:
<div>
<Typography>{params.row.remarks}</Typography>
</div> </div>
) )
}, },


+ 4
- 4
src/pages/PublicNotice/ListPanel/PendingPaymentTab.js View File

@@ -112,13 +112,13 @@ export default function SubmittedTab({ rows }) {
headerName: isORGLoggedIn()?"Care Of / 我的備註":"我的備註", headerName: isORGLoggedIn()?"Care Of / 我的備註":"我的備註",
flex: 3, flex: 3,
renderCell: (params) => ( renderCell: (params) => (
params.row.orgId === null?
<div>
<Typography>{params.row.remarks}</Typography>
</div>:
isORGLoggedIn()?
<div> <div>
<Typography>Care Of: {params.row.careOf}</Typography> <Typography>Care Of: {params.row.careOf}</Typography>
<Typography>我的備註: {params.row.remarks}</Typography> <Typography>我的備註: {params.row.remarks}</Typography>
</div>:
<div>
<Typography>{params.row.remarks}</Typography>
</div> </div>
) )
}, },


+ 4
- 4
src/pages/PublicNotice/ListPanel/SearchPublicNoticeTable.js View File

@@ -73,13 +73,13 @@ export default function SearchPublicNoticeTable({ recordList }) {
headerName: isORGLoggedIn()?"Care Of / 我的備註":"我的備註", headerName: isORGLoggedIn()?"Care Of / 我的備註":"我的備註",
flex: 3, flex: 3,
renderCell: (params) => ( renderCell: (params) => (
params.row.orgId === null?
<div>
<Typography>{params.row.remarks}</Typography>
</div>:
isORGLoggedIn()?
<div> <div>
<Typography>Care Of: {params.row.careOf}</Typography> <Typography>Care Of: {params.row.careOf}</Typography>
<Typography>我的備註: {params.row.remarks}</Typography> <Typography>我的備註: {params.row.remarks}</Typography>
</div>:
<div>
<Typography>{params.row.remarks}</Typography>
</div> </div>
) )
}, },


Loading…
Cancel
Save