Browse Source

update layout

master
jason.lam 1 year ago
parent
commit
88d2fe8ae4
5 changed files with 54 additions and 17 deletions
  1. +3
    -2
      src/pages/PublicNotice/Details_Public/ApplicationDetailCard.js
  2. +27
    -6
      src/pages/PublicNotice/ListPanel/PendingPaymentTab.js
  3. +3
    -2
      src/pages/PublicNotice/ListPanel/SearchPublicNoticeTab.js
  4. +3
    -1
      src/pages/PublicNotice/ListPanel/index.js
  5. +18
    -6
      src/themes/buttonConst.js

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

@@ -168,8 +168,9 @@ const ApplicationDetailCard = (
color="edit" color="edit"
disabled={currentApplicationDetailData.status !== "submitted"} disabled={currentApplicationDetailData.status !== "submitted"}
title={"取消"} title={"取消"}
startIcon={<CloseIcon />}
> >
<CloseIcon sx={{mr:1}} />
取消 取消
</Button> </Button>
</ThemeProvider> </ThemeProvider>
@@ -526,8 +527,8 @@ const ApplicationDetailCard = (
onClick={onDownloadClick()} onClick={onDownloadClick()}
title="下載" title="下載"
color="save" color="save"
startIcon={<DownloadIcon sx={{alignItems:"center"}}/>}
> >
<DownloadIcon sx={{ mr:1 }} />
下載 下載
</Button> </Button>
</ThemeProvider> </ThemeProvider>


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

@@ -19,7 +19,8 @@ import { useNavigate } from "react-router-dom";
import { import {
isORGLoggedIn, isORGLoggedIn,
} from "utils/Utils"; } from "utils/Utils";
import {useTheme} from "@emotion/react";
import {ThemeProvider, useTheme} from "@emotion/react";
import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst";
// ==============================|| EVENT TABLE ||============================== // // ==============================|| EVENT TABLE ||============================== //


export default function SubmittedTab({ rows }) { export default function SubmittedTab({ rows }) {
@@ -306,14 +307,34 @@ export default function SubmittedTab({ rows }) {
onRowDoubleClick={handleRowDoubleClick} onRowDoubleClick={handleRowDoubleClick}
getRowHeight={() => 'auto'} getRowHeight={() => 'auto'}
/> />
<br />
<Button variant="contained" onClick={() => { handlePaymentBtn() }}><Typography variant="h5">付款</Typography></Button>

<ThemeProvider theme={PNSPS_BUTTON_THEME}>
<Button
color="create"
variant="contained"
onClick={() => { handlePaymentBtn() }}
sx={{mt:2, ml:1}}
>
付款
</Button>
</ThemeProvider>
</div> </div>


<div> <div>
<Dialog open={isPopUp} onClose={() => setIsPopUp(false)} >
<DialogTitle></DialogTitle>
<Typography variant="h2" style={{ padding: '16px' }}>確認付款</Typography>
<Dialog
open={isPopUp}
onClose={() => setIsPopUp(false)}
PaperProps={{
sx: {
minWidth: '40vw',
maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '30vw' },
maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '50vh' }
}
}}
>
<DialogTitle>
<Typography variant="h3" >確認付款</Typography>
</DialogTitle>
<DialogContent style={{ display: 'flex', }}> <DialogContent style={{ display: 'flex', }}>
<Stack direction="column" justifyContent="space-between"> <Stack direction="column" justifyContent="space-between">
{getWindowContent()} {getWindowContent()}


+ 3
- 2
src/pages/PublicNotice/ListPanel/SearchPublicNoticeTab.js View File

@@ -47,17 +47,18 @@ const UserSearchPage_Individual = () => {
return ( return (
<Grid container> <Grid container>
{/*row 1*/} {/*row 1*/}
<Grid item xs={12} md={12} lg={12} sx={{mb:-4}}>
<Grid item xs={12} md={12} lg={12} sx={{mb:-3}}>
<SearchForm <SearchForm
applySearch={applySearch} applySearch={applySearch}
searchCriteria={searchCriteria} searchCriteria={searchCriteria}
/> />
</Grid> </Grid>
{/*row 2*/} {/*row 2*/}
<Grid item xs={12} md={12} lg={12}>
<Grid item xs={12} md={12} lg={12} >
<MainCard elevation={0} <MainCard elevation={0}
border={false} border={false}
content={false} content={false}
sx={{width: "-webkit-fill-available"}}
> >
<EventTable <EventTable
recordList={record} recordList={record}


+ 3
- 1
src/pages/PublicNotice/ListPanel/index.js View File

@@ -114,7 +114,9 @@ const PublicNotice = () => {
<Stack direction="row" justifyContent="flex-end" alignItems="center"> <Stack direction="row" justifyContent="flex-end" alignItems="center">
<ThemeProvider theme={PNSPS_LONG_BUTTON_THEME}> <ThemeProvider theme={PNSPS_LONG_BUTTON_THEME}>
<Box sx={{ mr: { md: "47px" } }}> <Box sx={{ mr: { md: "47px" } }}>
<Button variant="contained" onClick={() => { onBtnClick() }}><Typography variant="pnspsButtonText">申請公共啟事</Typography></Button>
<Button variant="contained" onClick={() => { onBtnClick() }}>
申請公共啟事
</Button>
</Box> </Box>
</ThemeProvider> </ThemeProvider>
</Stack> </Stack>


+ 18
- 6
src/themes/buttonConst.js View File

@@ -52,6 +52,14 @@ export const PNSPS_BUTTON_THEME = createTheme({
}, },
MuiButton: { MuiButton: {
styleOverrides: { styleOverrides: {
startIcon:{
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
'& > *:nth-of-type(1)': {
fontSize: '28px',
},
},
root: { root: {
fontSize: '1.2rem', fontSize: '1.2rem',
fontWeight: '600', fontWeight: '600',
@@ -67,9 +75,7 @@ export const PNSPS_BUTTON_THEME = createTheme({
width: '9vw', width: '9vw',
}, },
textTransform: "none", textTransform: "none",
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
alignItems: 'normal',
}, },
}, },
}, },
@@ -128,6 +134,14 @@ export const PNSPS_LONG_BUTTON_THEME = createTheme({
}, },
MuiButton: { MuiButton: {
styleOverrides: { styleOverrides: {
startIcon:{
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
'& > *:nth-of-type(1)': {
fontSize: '28px',
},
},
root: { root: {
fontSize: '1.2rem', fontSize: '1.2rem',
fontWeight: '600', fontWeight: '600',
@@ -143,9 +157,7 @@ export const PNSPS_LONG_BUTTON_THEME = createTheme({
width: '16vw', width: '16vw',
}, },
textTransform: "none", textTransform: "none",
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
alignItems: 'normal',
}, },
}, },
}, },


Loading…
Cancel
Save