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

debug

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