Commit bc5d57c3 authored by 熊成伟's avatar 熊成伟

debug

parent 2bd3197f
Pipeline #15548 passed with stages
in 1 minute and 1 second
...@@ -229,6 +229,7 @@ const Process = (props) => { ...@@ -229,6 +229,7 @@ const Process = (props) => {
return () => window.removeEventListener('scroll', handleScroll, true); return () => window.removeEventListener('scroll', handleScroll, true);
}, []); }, []);
const resultLoading = basicLoading && adjunctLoading && flowLoading;
return ( return (
<Document title="待办详情"> <Document title="待办详情">
<div> <div>
...@@ -237,21 +238,21 @@ const Process = (props) => { ...@@ -237,21 +238,21 @@ const Process = (props) => {
<WingBlank> <WingBlank>
<div id="event-basic"/> <div id="event-basic"/>
<WhiteSpace/> <WhiteSpace/>
{basicLoading ? <Basic data={basic}/> : <Skeleton/>} {resultLoading ? <Basic data={basic}/> : <Skeleton/>}
<div id="event-adjunct"/> <div id="event-adjunct"/>
<WhiteSpace/> <WhiteSpace/>
{adjunctLoading ? <Adjunct data={adjunctData}/> : <Skeleton/>} {resultLoading ? <Adjunct data={adjunctData}/> : <Skeleton/>}
<div id="event-flow"/> <div id="event-flow"/>
<WhiteSpace/> <WhiteSpace/>
{flowLoading ? <Flow data={flowData}/> : <Skeleton/>} {resultLoading ? <Flow data={flowData}/> : <Skeleton/>}
<div id="event-option"/> <div id="event-option"/>
<WhiteSpace/> <WhiteSpace/>
{basicLoading ? <Option onChange={optionChange}/> : <Skeleton/>} {resultLoading ? <Option onChange={optionChange}/> : <Skeleton/>}
</WingBlank> </WingBlank>
</div> </div>
<div className="event-footer"> <div className="event-footer">
{(basicLoading && adjunctLoading && flowLoading && basicLoading) && ( { resultLoading && (
<div className={`event-footer-button ${(footStatus && disabled) ? 'button-disabled' : '' }`} onClick={footStatus && !disabled ? showActionSheet: textClick}> <div className={`event-footer-button ${(footStatus && disabled) ? 'button-disabled' : '' }`} onClick={footStatus && !disabled ? showActionSheet: textClick}>
{!footStatus && ( {!footStatus && (
<img alt="" src="/img/process-edit.png" className="process-edit"/> <img alt="" src="/img/process-edit.png" className="process-edit"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment