Explorar el Código

fix bug

master
Alex Cheung hace 1 año
padre
commit
acb7436ae4
Se han modificado 4 ficheros con 50 adiciones y 10 borrados
  1. +23
    -3
      src/pages/PublicNotice/Details_GLD/ApplicationDetailCard.js
  2. +23
    -3
      src/pages/User/DetailPage/index.js
  3. +2
    -2
      src/pages/User/DetailsPage_Individual/index.js
  4. +2
    -2
      src/pages/User/DetailsPage_Organization/index.js

+ 23
- 3
src/pages/PublicNotice/Details_GLD/ApplicationDetailCard.js Ver fichero

@@ -352,19 +352,39 @@ const ApplicationDetailCard = (
</Grid>
</Grid>
</Grid>
<Grid item xs={12} sm={12} md={5.5} lg={5.5} sx={{ mb: 1, ml: { md: 1, lg: 3 } }}>
<Grid item xs={12} sm={12} md={5.5} lg={5} sx={{ mb: 1}}>
<Grid container alignItems={"center"}>
<Grid item xs={12} md={4} lg={4}
<Grid item xs={12} md={3} lg={3}
sx={{ display: 'flex', alignItems: 'center' }}>
<FormLabel><Typography variant="h5">Status:</Typography></FormLabel>
</Grid>

<Grid item xs={12} md={8} lg={8}>
<Grid item xs={12} md={9} lg={9}>
<FormControl variant="outlined">
{StatusUtils.getStatusByTextEng(currentApplicationDetailData.status, currentApplicationDetailData.creditor)}
</FormControl>
</Grid>
</Grid>
{
currentApplicationDetailData.reason ?
<Grid item xs={12} md={12} lg={12}>
<Grid container alignItems={"center"} direction="row" >

<Grid item xs={12} md={3} lg={3}>
<FormLabel><Typography variant="h5">Reason:</Typography></FormLabel>
</Grid>
<Grid item xs={12} md={9} lg={9}>
<FormLabel>
<Typography id='reason' variant="pnspsFormParagraph">
{currentApplicationDetailData.reason}
</Typography>
</FormLabel>
</Grid>

</Grid>
</Grid>
: ""
}
</Grid>
</Grid>
<Grid container direction="row" justifyContent="flex-start"


+ 23
- 3
src/pages/User/DetailPage/index.js Ver fichero

@@ -5,7 +5,11 @@ import {
Typography,
Stack,
Box,
Tab
} from '@mui/material';
import { TabPanel, TabContext, TabList } from '@mui/lab';
import MainCard from "components/MainCard";

import { useEffect, useState, lazy } from "react";
import axios from "axios";
import { useNavigate, useParams } from "react-router-dom";
@@ -56,6 +60,7 @@ const UserMaintainPage = () => {
const [refUserData, setRefUserData] = useState({});
const [editMode, setEditMode] = useState(false);
const [createMode, setCreateMode] = useState(false);
const [selectedTab, setSelectedTab] = useState("1");

function updateUserObject(userData) {
setEditedCustomerData(userData);
@@ -74,6 +79,10 @@ const UserMaintainPage = () => {
setIsCollectData(!isCollectData);
}

const handleChange = (event, newValue) => {
setSelectedTab(newValue);
}

// ==============================|| DELETE WINDOW RELATED ||============================== //
const [isWindowOpen, setIsWindowOpen] = useState(false);
const handleClose = () => {
@@ -390,9 +399,20 @@ const UserMaintainPage = () => {
</Grid>
<Grid item xs={12} md={12} lg={12}>
<Box xs={12} ml={2} mt={2} mr={3} sx={{ borderRadius: '10px', backgroundColor: '#fff' }}>
<LoginGrid
userId={params.id}
/>
<MainCard elevation={0} border={false} content={false} sx={{maxWidth: '100%', mr:2, width: "-webkit-fill-available"}}>
<TabContext value={selectedTab}>
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
<TabList variant="scrollable" onChange={handleChange} aria-label="lab API tabs example">
<Tab label="Login Log" value="1" />
</TabList>
</Box>
<TabPanel value="1">
<LoginGrid
userId = {params.id}
/>
</TabPanel>
</TabContext>
</MainCard>
</Box>
</Grid>
</Grid>


+ 2
- 2
src/pages/User/DetailsPage_Individual/index.js Ver fichero

@@ -180,8 +180,8 @@ const UserMaintainPage_Individual = () => {
<TabContext value={selectedTab}>
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
<TabList variant="scrollable" onChange={handleChange} aria-label="lab API tabs example">
<Tab label="Files" value="1" />
<Tab label="Login" value="2" />
<Tab label="Attachments" value="1" />
<Tab label="Login Log" value="2" />
</TabList>
</Box>
<TabPanel value="1">


+ 2
- 2
src/pages/User/DetailsPage_Organization/index.js Ver fichero

@@ -249,8 +249,8 @@ const UserMaintainPage_Organization = () => {
<TabContext value={selectedTab}>
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
<TabList variant="scrollable" onChange={handleChange} aria-label="lab API tabs example">
<Tab label="Files" value="1" />
<Tab label="Login" value="2" />
<Tab label="Attachments" value="1" />
<Tab label="Login Log" value="2" />
</TabList>
</Box>
<TabPanel value="1">


Cargando…
Cancelar
Guardar