| @@ -153,7 +153,7 @@ export function FiDataGrid({ rows, columns, sx, autoHeight, | |||||
| <TablePagination | <TablePagination | ||||
| labelDisplayedRows={ | labelDisplayedRows={ | ||||
| ({ from, to, count }) => { | ({ from, to, count }) => { | ||||
| return '' + from + '-' + to + ' 123 ' + count | |||||
| return '' + from + '-' + to + ' ' + count | |||||
| } | } | ||||
| } | } | ||||
| /> | /> | ||||
| @@ -79,7 +79,7 @@ const Index = () => { | |||||
| <Grid container justifyContent="flex-start" alignItems="center" > | <Grid container justifyContent="flex-start" alignItems="center" > | ||||
| <center> | <center> | ||||
| <Grid item xs={12} md={12} sx={{p:2}} > | <Grid item xs={12} md={12} sx={{p:2}} > | ||||
| <Typography variant="h2" sx={{ textAlign: "left", borderBottom: "1px solid black" }}> | |||||
| <Typography variant="h3" sx={{ textAlign: "left", borderBottom: "1px solid black" }}> | |||||
| {record?.subject} | {record?.subject} | ||||
| </Typography> | </Typography> | ||||
| <Typography sx={{p:1}} align="justify">{DateUtils.datetimeStr(record?.sentDate)}</Typography> | <Typography sx={{p:1}} align="justify">{DateUtils.datetimeStr(record?.sentDate)}</Typography> | ||||
| @@ -87,7 +87,7 @@ const Index = () => { | |||||
| <div dangerouslySetInnerHTML={{__html: record?.content}}></div> | <div dangerouslySetInnerHTML={{__html: record?.content}}></div> | ||||
| </Typography> | </Typography> | ||||
| <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}> | |||||
| <Typography variant="h4" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}> | |||||
| <Button | <Button | ||||
| component="span" | component="span" | ||||
| variant="contained" | variant="contained" | ||||
| @@ -20,22 +20,18 @@ export default function UserAuthTable({setSelectedRow, userAuth,isNewRecord}) { | |||||
| const [onReady, setOnReady] = useState(false); | const [onReady, setOnReady] = useState(false); | ||||
| const [currentSelectedRow, setCurrentSelectedRow] = useState(userAuth); | const [currentSelectedRow, setCurrentSelectedRow] = useState(userAuth); | ||||
| const _sx = { | const _sx = { | ||||
| ml: 3, | |||||
| mb: 3, | |||||
| mr: 3, | |||||
| padding: "4 2 4 2", | |||||
| boxShadow: 1, | boxShadow: 1, | ||||
| border: 1, | border: 1, | ||||
| borderColor: '#DDD', | borderColor: '#DDD', | ||||
| '& .MuiDataGrid-cell': { | '& .MuiDataGrid-cell': { | ||||
| borderTop: 1, | borderTop: 1, | ||||
| borderBottom: 1, | |||||
| //borderBottom: 1, | |||||
| borderColor: "#EEE" | borderColor: "#EEE" | ||||
| }, | }, | ||||
| '& .MuiDataGrid-footerContainer': { | |||||
| border: 1, | |||||
| borderColor: "#EEE" | |||||
| } | |||||
| // '& .MuiDataGrid-footerContainer': { | |||||
| // border: 1, | |||||
| // borderColor: "#EEE" | |||||
| // } | |||||
| } | } | ||||
| useEffect(() => { | useEffect(() => { | ||||
| axios.get(`${apiPath}${GET_AUTH_LIST}`) | axios.get(`${apiPath}${GET_AUTH_LIST}`) | ||||
| @@ -49,8 +49,9 @@ const UserAuthorityCard = ({ isCollectData, updateUserAuthList, userData, isNewR | |||||
| <MainCard elevation={0} | <MainCard elevation={0} | ||||
| border={false} | border={false} | ||||
| content={false} | content={false} | ||||
| sx={{margin: 0}} | |||||
| > | > | ||||
| <Typography variant="h6" sx={{ mt: 3, ml: 3, mb: 2, mr: 3, borderBottom: "1px solid black" }}> | |||||
| <Typography variant="h6" sx={{ mt: 2, ml: 3, mr: 1, borderBottom: "1px solid black" }}> | |||||
| User Authority | User Authority | ||||
| </Typography> | </Typography> | ||||
| @@ -48,8 +48,9 @@ const UserGroupCard = ({isCollectData, updateUserGroupList,userData,isNewRecord} | |||||
| <MainCard elevation={0} | <MainCard elevation={0} | ||||
| border={false} | border={false} | ||||
| content={false} | content={false} | ||||
| sx={{margin: 0}} | |||||
| > | > | ||||
| <Typography variant="h5" sx={{mt: 3, ml: 3, mb: 2, mr: 3, borderBottom: "1px solid black"}}> | |||||
| <Typography variant="h6" sx={{mt: 2, ml: 3, mr: 1, borderBottom: "1px solid black"}}> | |||||
| Group(s) | Group(s) | ||||
| </Typography> | </Typography> | ||||
| <UserGroupTable | <UserGroupTable | ||||
| @@ -19,9 +19,6 @@ export default function UserGroupTable({setSelectedRow, userGroup,isNewRecord}) | |||||
| const [currentSelectedRow, setCurrentSelectedRow] = useState(userGroup); | const [currentSelectedRow, setCurrentSelectedRow] = useState(userGroup); | ||||
| const _sx = { | const _sx = { | ||||
| ml: 3, | |||||
| mb: 3, | |||||
| mr: 3, | |||||
| padding: "4 2 4 2", | padding: "4 2 4 2", | ||||
| boxShadow: 1, | boxShadow: 1, | ||||
| border: 1, | border: 1, | ||||
| @@ -67,8 +67,9 @@ const UserInformationCard = ({isCollectData, updateUserObject,userData,isNewReco | |||||
| <MainCard elevation={0} | <MainCard elevation={0} | ||||
| border={false} | border={false} | ||||
| content={false} | content={false} | ||||
| sx={{margin: 0}} | |||||
| > | > | ||||
| <Typography variant="h5" sx={{mt: 3, ml: 3, mr: 3, borderBottom: "1px solid black"}}> | |||||
| <Typography variant="h6" sx={{ mt: 2, ml: 3, mr: 1, borderBottom: "1px solid black"}}> | |||||
| Information | Information | ||||
| </Typography> | </Typography> | ||||
| @@ -236,10 +237,10 @@ const UserInformationCard = ({isCollectData, updateUserObject,userData,isNewReco | |||||
| </Grid> | </Grid> | ||||
| </Grid> */} | </Grid> */} | ||||
| <Grid item xs={12} s={12} md={12} lg={12} sx={{ml: 3, mr: 3, mb: 3}}> | |||||
| <Grid item xs={12} s={12} md={12} lg={12} sx={{ml: 3, mr: 3}}> | |||||
| <Grid container> | <Grid container> | ||||
| <Grid item xs={4} s={4} md={4} lg={4} | <Grid item xs={4} s={4} md={4} lg={4} | ||||
| sx={{ml: 3, mr: 3, display: 'flex', alignItems: 'center'}}> | |||||
| sx={{ml: 3, mr: 3, mb:3, display: 'flex', alignItems: 'center'}}> | |||||
| <FormLabel required>Locked:</FormLabel> | <FormLabel required>Locked:</FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -221,7 +221,7 @@ const UserMaintainPage = () => { | |||||
| <Grid item xs={12} md={5} lg={5}> | <Grid item xs={12} md={5} lg={5}> | ||||
| <Grid container> | <Grid container> | ||||
| <Grid item xs={12} md={12} lg={12}> | <Grid item xs={12} md={12} lg={12}> | ||||
| <Box xs={12} ml={4} mt={3} sx={{ p: 1, borderRadius: '10px', backgroundColor: '#fff' }}> | |||||
| <Box xs={12} ml={4} mt={2} sx={{ borderRadius: '10px', backgroundColor: '#fff' }}> | |||||
| <UserInformationCard | <UserInformationCard | ||||
| updateUserObject={updateUserObject} | updateUserObject={updateUserObject} | ||||
| userData={userData} | userData={userData} | ||||
| @@ -231,8 +231,8 @@ const UserMaintainPage = () => { | |||||
| </Box> | </Box> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={12} lg={12} sx={{ mt: 3 }}> | |||||
| <Box xs={12} ml={4} mt={2} sx={{ p: 1, borderRadius: '10px', backgroundColor: '#fff' }}> | |||||
| <Grid item xs={12} md={12} lg={12} sx={{ mt: 0.5 }}> | |||||
| <Box xs={12} ml={4} mt={2} sx={{borderRadius: '10px', backgroundColor: '#fff' }}> | |||||
| <UserGroupCard | <UserGroupCard | ||||
| updateUserGroupList={updateUserGroupList} | updateUserGroupList={updateUserGroupList} | ||||
| userData={userData} | userData={userData} | ||||
| @@ -245,7 +245,7 @@ const UserMaintainPage = () => { | |||||
| </Grid> | </Grid> | ||||
| {/*col 2*/} | {/*col 2*/} | ||||
| <Grid item xs={12} md={7} lg={7}> | <Grid item xs={12} md={7} lg={7}> | ||||
| <Box xs={12} ml={4} mt={3} mr={3} sx={{ p: 1, borderRadius: '10px', backgroundColor: '#fff' }}> | |||||
| <Box xs={12} ml={2} mt={2} mr={3} sx={{ borderRadius: '10px', backgroundColor: '#fff' }}> | |||||
| <UserAuthorityCard | <UserAuthorityCard | ||||
| updateUserAuthList={updateUserAuthList} | updateUserAuthList={updateUserAuthList} | ||||
| userData={userData} | userData={userData} | ||||
| @@ -256,7 +256,7 @@ const UserMaintainPage = () => { | |||||
| </Grid> | </Grid> | ||||
| {/*bottom button*/} | {/*bottom button*/} | ||||
| <Grid item s={12} md={12} lg={12} sx={{ mb: 3 }} alignItems={"end"} justifyContent="center"> | |||||
| <Grid item s={12} md={12} lg={12} sx={{ mt:1, mb:2 }} alignItems={"end"} justifyContent="center"> | |||||
| <Grid container maxWidth justifyContent="flex-end"> | <Grid container maxWidth justifyContent="flex-end"> | ||||
| <Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
| <Button | <Button | ||||
| @@ -355,6 +355,10 @@ | |||||
| "district": "District", | "district": "District", | ||||
| "noRecordFound": "No record found", | "noRecordFound": "No record found", | ||||
| "rowsPerPage": "Rows Per Page", | "rowsPerPage": "Rows Per Page", | ||||
| "date" : "Date", | |||||
| "keyword": "Key word", | |||||
| "dateFrom": "Date(From)", | |||||
| "dateTo": "Date(To)", | |||||
| "Dashboard": "Dashboard", | "Dashboard": "Dashboard", | ||||
| "event": "Event" | "event": "Event" | ||||
| @@ -355,6 +355,10 @@ | |||||
| "district": "区", | "district": "区", | ||||
| "noRecordFound": "找不到記錄", | "noRecordFound": "找不到記錄", | ||||
| "rowsPerPage": "每页项数", | "rowsPerPage": "每页项数", | ||||
| "date" : "日期", | |||||
| "keyword": "关键字", | |||||
| "dateFrom": "日期(从)", | |||||
| "dateTo": "日期(到)", | |||||
| "Dashboard": "仪表板", | "Dashboard": "仪表板", | ||||
| "event": "活动" | "event": "活动" | ||||
| @@ -355,6 +355,10 @@ | |||||
| "district": "區", | "district": "區", | ||||
| "noRecordFound": "找不到記錄", | "noRecordFound": "找不到記錄", | ||||
| "rowsPerPage": "每頁項數", | "rowsPerPage": "每頁項數", | ||||
| "date" : "日期", | |||||
| "keyword": "關鍵字", | |||||
| "dateFrom": "日期(從)", | |||||
| "dateTo": "日期(到)", | |||||
| "Dashboard": "儀表板", | "Dashboard": "儀表板", | ||||
| "event": "活動" | "event": "活動" | ||||