|  | @ -14,7 +14,7 @@ import './index.less' | 
			
		
	
		
		
			
				
					|  |  | const { confirm } = Modal; |  |  | const { confirm } = Modal; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | const WorkFlowModal = (props) => { |  |  | const WorkFlowModal = (props) => { | 
			
		
	
		
		
			
				
					
					|  |  |    const { successCallBack = () => { }, title, visible, clientHeight, postData, processId, user, dispatch } = props; |  |  |    const { successCallBack = () => { }, title, visible, clientHeight, postData, processId, user, dispatch, webEmis } = props; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |    const [loading, setLoading] = useState(true); |  |  |    const [loading, setLoading] = useState(true); | 
			
		
	
		
		
			
				
					|  |  |    const [ifShowMessage, setIfShowMessage] = useState(true); |  |  |    const [ifShowMessage, setIfShowMessage] = useState(true); | 
			
		
	
		
		
			
				
					|  |  |    const [webUrl, setWebUrl] = useState(null); |  |  |    const [webUrl, setWebUrl] = useState(null); | 
			
		
	
	
		
		
			
				
					|  | @ -65,14 +65,14 @@ const WorkFlowModal = (props) => { | 
			
		
	
		
		
			
				
					|  |  |    const handelDeny = () => { |  |  |    const handelDeny = () => { | 
			
		
	
		
		
			
				
					|  |  |       // dispatch(delDraft(draftId)).then(res => { |  |  |       // dispatch(delDraft(draftId)).then(res => { | 
			
		
	
		
		
			
				
					|  |  |       //    if (res.success) { |  |  |       //    if (res.success) { | 
			
		
	
		
		
			
				
					
					|  |  |       //       Notification.success('删除草稿成功'); |  |  |       //       Notification.success({title:'删除草稿成功'}); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |       //       const { onCancel } = props; |  |  |       //       const { onCancel } = props; | 
			
		
	
		
		
			
				
					|  |  |       //       onCancel && onCancel(); |  |  |       //       onCancel && onCancel(); | 
			
		
	
		
		
			
				
					|  |  |       //       setLoading(false); |  |  |       //       setLoading(false); | 
			
		
	
		
		
			
				
					|  |  |       //       setCustomVisible(false); |  |  |       //       setCustomVisible(false); | 
			
		
	
		
		
			
				
					|  |  |       //       setDraftId(null); |  |  |       //       setDraftId(null); | 
			
		
	
		
		
			
				
					|  |  |       //    } else { |  |  |       //    } else { | 
			
		
	
		
		
			
				
					
					|  |  |       //       Notification.error('删除草稿失败,请联系管理员'); |  |  |       //       Notification.error({title:'删除草稿失败,请联系管理员'}); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |       //    } |  |  |       //    } | 
			
		
	
		
		
			
				
					|  |  |       // }) |  |  |       // }) | 
			
		
	
		
		
			
				
					|  |  |    } |  |  |    } | 
			
		
	
	
		
		
			
				
					|  | @ -87,19 +87,19 @@ const WorkFlowModal = (props) => { | 
			
		
	
		
		
			
				
					|  |  |             let data = JSON.parse(event.data); |  |  |             let data = JSON.parse(event.data); | 
			
		
	
		
		
			
				
					|  |  |             const { type, isSaveDraft, setIntervalSave, draftId, msg } = data; |  |  |             const { type, isSaveDraft, setIntervalSave, draftId, msg } = data; | 
			
		
	
		
		
			
				
					|  |  |             if (msg) { |  |  |             if (msg) { | 
			
		
	
		
		
			
				
					
					|  |  |                Notification.success(msg) |  |  |                Notification.success({ title: msg }) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |             } |  |  |             } | 
			
		
	
		
		
			
				
					|  |  |             setDraftId(draftId); |  |  |             setDraftId(draftId); | 
			
		
	
		
		
			
				
					|  |  |             if (type == 'saveSuccess' && successCallBack) { |  |  |             if (type == 'saveSuccess' && successCallBack) { | 
			
		
	
		
		
			
				
					|  |  |                if (ifShowMessage) { |  |  |                if (ifShowMessage) { | 
			
		
	
		
		
			
				
					|  |  |                   if (isSaveDraft) { |  |  |                   if (isSaveDraft) { | 
			
		
	
		
		
			
				
					|  |  |                      if (setIntervalSave) { |  |  |                      if (setIntervalSave) { | 
			
		
	
		
		
			
				
					
					|  |  |                         Notification.success('60秒,表单暂存草稿成功'); |  |  |                         Notification.success({ title: '60秒,表单暂存草稿成功' }); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |                      } else { |  |  |                      } else { | 
			
		
	
		
		
			
				
					|  |  |                         Notification.success(<span>保存草稿成功,可在<a onClick={() => handelApprovalCenter("save")}>【审批中心/保存待发】</a>查看详情</span>, 10); |  |  |                         Notification.success(<span>保存草稿成功,可在<a onClick={() => handelApprovalCenter("save")}>【审批中心/保存待发】</a>查看详情</span>, 10); | 
			
		
	
		
		
			
				
					|  |  |                      } |  |  |                      } | 
			
		
	
		
		
			
				
					|  |  |                   } else { |  |  |                   } else { | 
			
		
	
		
		
			
				
					
					|  |  |                      Notification.success('提交成功,可在【审批中心/由我发起】查看详情'); |  |  |                      Notification.success({ title: '提交成功,可在【审批中心/由我发起】查看详情' }); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |                      successCallBack(); |  |  |                      successCallBack(); | 
			
		
	
		
		
			
				
					|  |  |                   } |  |  |                   } | 
			
		
	
		
		
			
				
					|  |  |                   //防止提示多次 |  |  |                   //防止提示多次 | 
			
		
	
	
		
		
			
				
					|  | @ -189,9 +189,11 @@ const WorkFlowModal = (props) => { | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | function mapStateToProps (state) { |  |  | function mapStateToProps (state) { | 
			
		
	
		
		
			
				
					|  |  |    const { auth, global } = state; |  |  |    const { auth, global } = state; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |    console.log(global); | 
			
		
	
		
		
			
				
					|  |  |    return { |  |  |    return { | 
			
		
	
		
		
			
				
					|  |  |       user: auth.user, |  |  |       user: auth.user, | 
			
		
	
		
		
			
				
					|  |  |       clientHeight: global.clientHeight, |  |  |       clientHeight: global.clientHeight, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       webEmis: global.webEmis | 
			
		
	
		
		
			
				
					|  |  |    } |  |  |    } | 
			
		
	
		
		
			
				
					|  |  | } |  |  | } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 |