瀏覽代碼

fix layout

master
Alex Cheung 2 年之前
父節點
當前提交
ee12b84d28
共有 5 個檔案被更改,包括 34 行新增13 行删除
  1. +1
    -1
      src/layout/MainLayout/Header/index.js
  2. +9
    -0
      src/pages/authentication/auth-forms/BusCustomFormWizard.js
  3. +12
    -2
      src/pages/authentication/auth-forms/CustomFormWizard.js
  4. +8
    -8
      src/pages/pnspsUserSearchPage/UserTable.js
  5. +4
    -2
      src/pages/publicDashboard/index.js

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

@@ -115,7 +115,7 @@ function Header(props) {
<Link className="dashboard" to='/dashboard'>主頁</Link> <Link className="dashboard" to='/dashboard'>主頁</Link>
</li> </li>
<li> <li>
<Link className="myDocumet" to='/dashboard'>我的公共啟</Link>
<Link className="myDocumet" to='/dashboard'>我的公共啟</Link>
</li> </li>
<li> <li>
<Link className="documentRecord" to='/dashboard'>校對記錄</Link> <Link className="documentRecord" to='/dashboard'>校對記錄</Link>


+ 9
- 0
src/pages/authentication/auth-forms/BusCustomFormWizard.js 查看文件

@@ -81,6 +81,7 @@ const BusCustomFormWizard = (props) => {
const [termsAndConAccept, setTermsAndConAccept] = useState(false); const [termsAndConAccept, setTermsAndConAccept] = useState(false);
const [termsAndConNotAccept, setTermsAndConNotAccept] = useState(false); const [termsAndConNotAccept, setTermsAndConNotAccept] = useState(false);
const [isValid, setisValid] = useState(false); const [isValid, setisValid] = useState(false);
const [checkCountry, setCheckCountry] = useState(false);
const address4ComboList = const address4ComboList =
["北區","長洲區","大埔區","大嶼山區","東區","觀塘區","黃大仙區","九龍城區","葵青區","南區","南丫島區", ["北區","長洲區","大埔區","大嶼山區","東區","觀塘區","黃大仙區","九龍城區","葵青區","南區","南丫島區",
@@ -745,6 +746,7 @@ const BusCustomFormWizard = (props) => {
id="address4-combo" id="address4-combo"
value={selectedAddress4 === null ? null : selectedAddress4} value={selectedAddress4 === null ? null : selectedAddress4}
options={address4ComboList} options={address4ComboList}
disabled={checkCountry}
onChange={(event, newValue) => { onChange={(event, newValue) => {
if (newValue !== null){ if (newValue !== null){
setSelectedAddress4(newValue); setSelectedAddress4(newValue);
@@ -762,6 +764,13 @@ const BusCustomFormWizard = (props) => {
onChange={(event, newValue) => { onChange={(event, newValue) => {
if (newValue !== null){ if (newValue !== null){
setSelectedAddress5(newValue); setSelectedAddress5(newValue);
if(newValue=='香港'){
setCheckCountry(false)
}else{
setCheckCountry(true)
}
}else{
setCheckCountry(true)
} }
}} }}


+ 12
- 2
src/pages/authentication/auth-forms/CustomFormWizard.js 查看文件

@@ -86,6 +86,7 @@ const CustomFormWizard = (props) => {
const [termsAndConAccept, setTermsAndConAccept] = useState(false); const [termsAndConAccept, setTermsAndConAccept] = useState(false);
const [termsAndConNotAccept, setTermsAndConNotAccept] = useState(false); const [termsAndConNotAccept, setTermsAndConNotAccept] = useState(false);
const [isValid, setisValid] = useState(false); const [isValid, setisValid] = useState(false);
const [checkCountry, setCheckCountry] = useState(false);


const idDocTypeComboList = ComboData.idDocType; const idDocTypeComboList = ComboData.idDocType;
const address4ComboList = ComboData.district; const address4ComboList = ComboData.district;
@@ -852,6 +853,7 @@ const CustomFormWizard = (props) => {
id="address4-combo" id="address4-combo"
value={selectedAddress4} value={selectedAddress4}
options={address4ComboList} options={address4ComboList}
disabled={checkCountry}
onChange={(event, newValue) => { onChange={(event, newValue) => {
setSelectedAddress4(newValue); setSelectedAddress4(newValue);
}} }}
@@ -865,8 +867,16 @@ const CustomFormWizard = (props) => {
value={selectedAddress5} value={selectedAddress5}
options={address5ComboList} options={address5ComboList}
onChange={(event, newValue) => { onChange={(event, newValue) => {
setSelectedAddress5(newValue);
// if()
if (newValue !== null){
setSelectedAddress5(newValue);
if(newValue=='香港'){
setCheckCountry(false)
}else{
setCheckCountry(true)
}
}else{
setCheckCountry(true)
}
}} }}
sx={{"& .MuiInputBase-root": { height: "41px" },"#address5-combo":{padding: "0px 0px 0px 0px"}, "& .MuiAutocomplete-endAdornment": { top: "auto" },}} sx={{"& .MuiInputBase-root": { height: "41px" },"#address5-combo":{padding: "0px 0px 0px 0px"}, "& .MuiAutocomplete-endAdornment": { top: "auto" },}}


+ 8
- 8
src/pages/pnspsUserSearchPage/UserTable.js 查看文件

@@ -69,14 +69,14 @@ export default function UserTable({recordList}) {
headerName: 'Email', headerName: 'Email',
flex: 1, flex: 1,
}, },
{
id: 'subDivisionId',
field: 'subDivisionId',
//type: 'date',
//sortable: false,
headerName: 'Sub-Division',
flex: 1,
},
// {
// id: 'subDivisionId',
// field: 'subDivisionId',
// //type: 'date',
// //sortable: false,
// headerName: 'Sub-Division',
// flex: 1,
// },


// { // {
// id: 'subDivisionId', // id: 'subDivisionId',


+ 4
- 2
src/pages/publicDashboard/index.js 查看文件

@@ -6,7 +6,9 @@ import {
Typography, Typography,
Stack Stack
} from '@mui/material'; } from '@mui/material';

import {
isORGLoggedIn,
} from "utils/Utils";




// ==============================|| DASHBOARD - DEFAULT ||============================== // // ==============================|| DASHBOARD - DEFAULT ||============================== //
@@ -25,7 +27,7 @@ const DashboardDefault = () => {
<Grid item xs={12} height='60px'> <Grid item xs={12} height='60px'>
<Stack direction="row" height='100%' justifyContent="flex-start" alignItems="center"> <Stack direction="row" height='100%' justifyContent="flex-start" alignItems="center">
{/* <Typography variant="h5">我的公共啟事</Typography> */} {/* <Typography variant="h5">我的公共啟事</Typography> */}
<Typography ml={10} color='#FFF' variant="h4">{userData.fullchName}, 午安! 請選擇所需服務。</Typography>
<Typography ml={10} color='#FFF' variant="h4">{isORGLoggedIn() ?userData.fullenName:userData.fullchName}, 午安! 請選擇所需服務。</Typography>
</Stack> </Stack>
</Grid> </Grid>
</div> </div>


Loading…
取消
儲存