19.chunk.js
3.83 KB
webpackJsonp([19],{1293:function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i,r,a=o(157),l=n(a),u=o(314),c=n(u),s=o(28),d=n(s),p=o(31),f=n(p),m=o(66),w=n(m),h=o(8),k=n(h),g=o(1),y=n(g),v=o(4),b=n(v),S=o(2),L=n(S),x=o(3),C=n(x),R=o(9),W=n(R),E=o(0),_=n(E),H=o(10),M=o(12),A=o(11),D=W.default.getLabel,J=(i=(0,H.inject)("viewWorkplanStore"))(r=(0,M.withRouter)(r=(0,H.observer)(r=function(e){function t(e){(0,y.default)(this,t);var o=(0,L.default)(this,(t.__proto__||(0,k.default)(t)).call(this,e));return o.onSubmit=function(e){(0,o.props.viewWorkplanStore.submitReply)(e),o.replyRef.setVisible(!1,function(){})},o.renderAt=function(e){var t=o.props.viewWorkplanStore.exchangeListStore,n={};return n={default:[{key:"col1",style:{flex:"none"},render:function(e){return _.default.createElement(w.default,{name:(0,A.toJS)(e).name,url:(0,A.toJS)(e).url})}},{key:"col2",configs:[{key:"col2-row1",configs:[{key:"name"}],style:{color:"#333"}},{key:"col2-row2",configs:[{key:"desc"}]}]}]},_.default.createElement("div",null,_.default.createElement("div",{onClick:o.goHrmList},e),_.default.createElement(f.default,{showCheck:!0,isRowClickCheck:!0,onRowClick:function(e,t){},template:n,store:t,buttonGroupData:[{key:"clear",text:"\u53d6\u6d88",onClick:function(){o.props.history.go(-1)}},{key:"submit",text:"\u786e\u5b9a",onClick:function(){o.atChange(),o.props.history.go(-1)},type:"primary"}]}))},o.atChange=function(){var e=o.props.viewWorkplanStore,t=e.reply,n=t.setState,i=t.atLists,r=e.exchangeListStore,a=r.data,l=r.selectedRowKeys,u=[];l&&l.forEach(function(e,t){a.forEach(function(t,o){t.id===e&&u.push(t)})});n({atList:[],atLists:[].concat((0,d.default)((0,A.toJS)(i)),u)}),u&&u.length>0&&u.map(function(e){e.name;o.replyRef.replyRef.changeTextValue({id:e.id,name:e.name},"html",!0)})},o.goHrmList=function(){var e=o.props.viewWorkplanStore,t=(e.reply,e.exchangeListStore);o.props.history.push(t.path)},o.getHeight=function(){return document.body.clientHeight-45*window.getThemeVars().hd},o.state={},window.openWorkplanDiscussDoc=function(e,t,o){window.openLink&&window.openLink("/spa/document/static4mobile/index.html#/attach/"+t+"?workplanid="+o+"&fromModule=workplan")},window.openWorkplanAppLink=function(e,t,o){arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("doc"==e)window.openLink("/spa/document/static4mobile/index.html#/doc/"+t+"?workplanid="+o);else{if("task"==e)return;if("crm"==e)window.openLink("/spa/crm/static4mobile/index.html/#/customerCard/"+t);else{if("workflow"!=e)return"project"==e&&void 0;window.openLink("/spa/workflow/static4mobileform/index.html#/req?fromModul=workplan&modulResourceId="+o+"&requestid="+t)}}},o}return(0,C.default)(t,e),(0,b.default)(t,[{key:"componentDidMount",value:function(){var e=this.props.location.pathname;e.indexOf("/detail/discussData")>0&&window.em&&window.em.checkJsApi("changeTitle")&&window.em.changeTitle({title:D(384902,"\u67e5\u770b\u65e5\u7a0b")});var t=this.props.viewWorkplanStore,o=t.getExchangeHrmList,n=t.workplanid;o({workplanid:n||localStorage.getItem("workid")},e)}},{key:"componentWillMount",value:function(){}},{key:"render",value:function(){var e=this,t=this.props.viewWorkplanStore,o=t.comment,n=t.reply,i=(t.submitReply,t.setPageNum),r=this.getHeight(),a=[{type:"voice"},{type:"blog-biaoqing"},{type:"tianjia"}];return i(0),_.default.createElement("div",{style:{height:r,WebkitOverflowScrolling:"touch"}},_.default.createElement(c.default,{style:{borderBottom:"1px solid #ddd",height:"100%"},store:o}),_.default.createElement(l.default,{wrappedComponentRef:function(t){return e.replyRef=t},store:n,showOutInput:!0,defaultShow:!0,showOutTabBar:!1,visible:!1,leftConfig:a,onSubmit:function(t){e.onSubmit(t)},renderAt:function(t){return e.renderAt(t)}}))}}]),t}(_.default.Component))||r)||r)||r;t.default=J}});
//# sourceMappingURL=19.chunk.js.map?v=afae0a76