feat: 部署测试修改

develop
JINGYJ 11 months ago
parent be23bfd06c
commit 3599ba1b8a

@ -127,7 +127,7 @@ export function useKeepAliveTabs() {
}); });
} else { } else {
// 取消缓存 // 取消缓存
if(matchRoute?.pathname === '/involved-list-upload' || matchRoute?.pathname === '/involved-list') { if(matchRoute?.pathname === '/offline/involved-list-upload' || matchRoute?.pathname === '/realTime/involved-list') {
refreshTab(matchRoute?.pathname) refreshTab(matchRoute?.pathname)
} }
// 如果存在触发组件的onShow的回调 // 如果存在触发组件的onShow的回调

@ -8,9 +8,10 @@ interface ImageWithPopoverProps {
src: string; src: string;
reload: any; reload: any;
person_id: any; person_id: any;
classify: any;
} }
const ImageWithPopover: React.FC<ImageWithPopoverProps> = ({ src, person_id,reload }) => { const ImageWithPopover: React.FC<ImageWithPopoverProps> = ({ src, person_id,reload,classify }) => {
const intl = useIntl(); const intl = useIntl();
const [visible, setVisible] = useState(false); const [visible, setVisible] = useState(false);
const [open, setOpen] = useState(false); const [open, setOpen] = useState(false);
@ -78,7 +79,7 @@ const ImageWithPopover: React.FC<ImageWithPopoverProps> = ({ src, person_id,relo
onClick={handleButtonClick} onClick={handleButtonClick}
/> />
</Popover> </Popover>
{/* {involved.state && ( {classify === 1 && (
<div <div
style={{ style={{
position: 'absolute', position: 'absolute',
@ -96,7 +97,7 @@ const ImageWithPopover: React.FC<ImageWithPopoverProps> = ({ src, person_id,relo
> >
</div> </div>
)} */} )}
</div> </div>
); );
}; };

@ -153,7 +153,8 @@ const InvolvedDetails: React.FC<UpdateFormProps> = (props) => {
// onClick={handleButtonClick} // onClick={handleButtonClick}
/> />
</Popover> </Popover>
<div { props?.values?.classify?.toString() === '1' &&
<div
style={{ style={{
position: 'absolute', position: 'absolute',
top: 0, top: 0,
@ -170,7 +171,7 @@ const InvolvedDetails: React.FC<UpdateFormProps> = (props) => {
}} }}
> >
</div> </div> }
</div> </div>
<div <div
style={{ style={{

@ -176,6 +176,7 @@ const InvolvedList: React.FC = () => {
// eslint-disable-next-line @typescript-eslint/no-use-before-define // eslint-disable-next-line @typescript-eslint/no-use-before-define
reload={initList} reload={initList}
person_id={record.person_id} person_id={record.person_id}
classify={record.classify}
// handleInvolved={handleInvolved} // handleInvolved={handleInvolved}
></ImageWithPopover> ></ImageWithPopover>
<div <div

@ -8,9 +8,10 @@ interface ImageWithPopoverProps {
src: string; src: string;
reload: any; reload: any;
person_id: any; person_id: any;
classify: any;
} }
const ImageWithPopover: React.FC<ImageWithPopoverProps> = ({ src, person_id,reload }) => { const ImageWithPopover: React.FC<ImageWithPopoverProps> = ({ src, person_id,reload, classify }) => {
const intl = useIntl(); const intl = useIntl();
const [visible, setVisible] = useState(false); const [visible, setVisible] = useState(false);
const [open, setOpen] = useState(false); const [open, setOpen] = useState(false);
@ -78,7 +79,7 @@ const ImageWithPopover: React.FC<ImageWithPopoverProps> = ({ src, person_id,relo
onClick={handleButtonClick} onClick={handleButtonClick}
/> />
</Popover> </Popover>
{/* {involved.state && ( {classify === 1 && (
<div <div
style={{ style={{
position: 'absolute', position: 'absolute',
@ -96,7 +97,7 @@ const ImageWithPopover: React.FC<ImageWithPopoverProps> = ({ src, person_id,relo
> >
</div> </div>
)} */} )}
</div> </div>
); );
}; };

@ -152,7 +152,8 @@ const InvolvedDetails: React.FC<UpdateFormProps> = (props) => {
// onClick={handleButtonClick} // onClick={handleButtonClick}
/> />
</Popover> </Popover>
<div { props?.values?.classify?.toString() === '1' &&
<div
style={{ style={{
position: 'absolute', position: 'absolute',
top: 0, top: 0,
@ -170,6 +171,7 @@ const InvolvedDetails: React.FC<UpdateFormProps> = (props) => {
> >
</div> </div>
}
</div> </div>
<div <div
style={{ style={{

@ -175,6 +175,7 @@ const InvolvedUploadList: React.FC = () => {
// eslint-disable-next-line @typescript-eslint/no-use-before-define // eslint-disable-next-line @typescript-eslint/no-use-before-define
reload={initList} reload={initList}
person_id={record.person_id} person_id={record.person_id}
classify={record.classify}
// handleInvolved={handleInvolved} // handleInvolved={handleInvolved}
></ImageWithPopover> ></ImageWithPopover>
<div <div

@ -137,7 +137,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
}, },
]} ]}
/> />
<span style={{ margin: '0 6px' }}></span> <span style={{ margin: '0 6px' }}></span>
<ProFormText <ProFormText
width={100} width={100}
name="time_interval" name="time_interval"
@ -164,7 +164,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
}, },
]} ]}
/> />
<span style={{ marginRight: 6 }}></span> <span style={{ marginRight: 6 }}></span>
<ProFormText <ProFormText
width={100} width={100}
name="appear_number" name="appear_number"

@ -137,7 +137,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
}, },
]} ]}
/> />
<span style={{ margin: '0 6px' }}></span> <span style={{ margin: '0 6px' }}></span>
<ProFormText <ProFormText
width={100} width={100}
name="time_interval" name="time_interval"
@ -164,7 +164,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
}, },
]} ]}
/> />
<span style={{ marginRight: 6 }}></span> <span style={{ marginRight: 6 }}></span>
<ProFormText <ProFormText
width={100} width={100}
name="appear_number" name="appear_number"

Loading…
Cancel
Save