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

debug

parent 4de9e616
Pipeline #16441 passed with stages
in 1 minute
...@@ -26,6 +26,7 @@ const Process = (props) => { ...@@ -26,6 +26,7 @@ const Process = (props) => {
window.scrollTo(0, 0) window.scrollTo(0, 0)
}, []); }, []);
const [deal, setDeal] = useState()
useEffect(() => { useEffect(() => {
const {id} = props.match.params; const {id} = props.match.params;
setFlowTbId(FLOWTBID); setFlowTbId(FLOWTBID);
...@@ -46,6 +47,7 @@ const Process = (props) => { ...@@ -46,6 +47,7 @@ const Process = (props) => {
setTableId(res.table && res.table.tableId); setTableId(res.table && res.table.tableId);
setTemplateId(res.property && res.property.templateId); setTemplateId(res.property && res.property.templateId);
setNodeId(res.property && res.property.curNodeId); setNodeId(res.property && res.property.curNodeId);
setDeal(res.deal)
// setOperateId(res.property && res.property.operateId); // setOperateId(res.property && res.property.operateId);
}); });
...@@ -250,7 +252,7 @@ const Process = (props) => { ...@@ -250,7 +252,7 @@ const Process = (props) => {
{resultLoading ? <Flow data={flowData}/> : <Skeleton/>} {resultLoading ? <Flow data={flowData}/> : <Skeleton/>}
<div id="event-option"/> <div id="event-option"/>
<WhiteSpace/> <WhiteSpace/>
{resultLoading ? <Option onChange={optionChange}/> : <Skeleton/>} {resultLoading ? <Option deal={deal} onChange={optionChange}/> : <Skeleton/>}
</WingBlank> </WingBlank>
</div> </div>
......
...@@ -28,7 +28,7 @@ const Option = (props) => { ...@@ -28,7 +28,7 @@ const Option = (props) => {
{/*常用阅办意见<img alt="" src="/img/option-icon.png" className="option-icon"/>*/} {/*常用阅办意见<img alt="" src="/img/option-icon.png" className="option-icon"/>*/}
{/*</a>*/} {/*</a>*/}
</div> </div>
<textarea className="option-text" onChange={onChange}/> <textarea defaultValue={props.deal && props.deal['办理意见']} className="option-text" onChange={onChange}/>
</div> </div>
</div> </div>
); );
......
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