7.chunk.js 5.32 KB
webpackJsonp([7],{1299:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o,i,l=n(479),r=a(l),d=n(9),u=a(d),c=n(1),m=a(c),f=n(4),s=a(f),p=n(2),h=a(p),w=n(3),g=a(w),v=n(8),k=a(v),b=n(0),y=a(b),D=n(12),M=n(11),_=n(480),A=n(1317),T=a(A),H=k.default.getLabel;T.default.addWindowFunc();var E={GoalMain:(0,_.asyncComponent)({resolve:function(){return n.e(13).then(n.bind(null,1540))}}),GoalMainAdvancedSearch:(0,_.asyncComponent)({resolve:function(){return n.e(15).then(n.bind(null,1546))}}),GoalAdd:(0,_.asyncComponent)({resolve:function(){return n.e(10).then(n.bind(null,1548))}}),GoalDetail:(0,_.asyncComponent)({resolve:function(){return n.e(12).then(n.bind(null,1549))}})},S=(o=(0,M.inject)("goalMainStore"))(i=(0,D.withRouter)(i=(0,M.observer)(i=function(e){function t(e){(0,m.default)(this,t);var n=(0,h.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));return n.getCondtypeTitle=function(e){var t=n.props.goalMainStore.condTypeOptions,a="";return t.forEach(function(t,n){t.key==e&&(a=t.menuname)}),a},n}return(0,g.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this,t=this.props.goalMainStore.condtype,n=[{match:/^\/goalHome\/goalMain/i,title:function(){return e.getCondtypeTitle(t)}},{match:/^\/goalHome\/mainAdvancedSearch/i,title:function(){return H(347,"\u9ad8\u7ea7\u641c\u7d22")}},{match:/^\/goalHome\/goalAdd/i,title:function(){return H(508587,"\u65b0\u5efa\u76ee\u6807")}},{match:/^\/goalHome\/goalDetail/i,title:function(){return H(507890,"\u76ee\u6807\u8be6\u60c5")}}];return y.default.createElement("div",{style:{height:"100%"}},y.default.createElement(r.default,{data:n,defaultTitle:""}),y.default.createElement(D.Switch,null,y.default.createElement(D.Route,{id:"goalMain",breadcrumbName:H(330,"\u76ee\u6807"),path:"/goalHome/goalMain/:condtype",component:E.GoalMain}),y.default.createElement(D.Route,{id:"goalAdd",breadcrumbName:H(508587,"\u65b0\u5efa\u76ee\u6807"),path:"/goalHome/goalAdd",component:E.GoalAdd}),y.default.createElement(D.Route,{id:"goalDetail",breadcrumbName:H(507890,"\u76ee\u6807\u8be6\u60c5"),path:"/goalHome/goalDetail",component:E.GoalDetail}),y.default.createElement(D.Route,{id:"goalMainAdvancedSearch",breadcrumbName:H(347,"\u9ad8\u7ea7\u641c\u7d22"),path:"/goalHome/mainAdvancedSearch",component:E.GoalMainAdvancedSearch}),y.default.createElement(D.Redirect,{exact:!0,path:"/goalHome",to:{pathname:"/goalHome/goalMain/"+t}})))}}]),t}(y.default.Component))||i)||i)||i;t.default=S},1317:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),i=a(o),l=n(0);a(l);t.default={addWindowFunc:function(){window.downloadFile=function(e,t,n,a,o){var l={method:"POST",url:"/api/workrelate/common/viewDocFiled",params:{id:e,relateId:n,type:a}};i.default.callApi(l).then(function(e){e.status&&window.openLink.getWeaverFile("/weaver/weaver.file.FileDownload?fileid="+t+"&download=1")})},window.openDoc=function(e,t,n,a){var o={method:"POST",url:"/api/workrelate/common/viewDocFiled",params:{id:e,relateId:t,type:n}};i.default.callApi(o).then(function(t){t.status&&window.openLink.openDocument(e)})},window.openAppLink=function(e,t,n,a,o){if(37==n)window.openLink.openDocument(t);else{var i={7:"/spa/crm/static4mobile/index.html/#/customerCard/",152:"/spa/workflow/static4mobileform/index.html#/req?requestid=",8:"/spa/prj/static4mobile/index.html#/ProjectDetails/0/",1:"/spa/hrm/static4mobile/index.html#/resourceInfo/",wrlgoal:"/spa/workrelate/static4mobile/index.html#/goalHome/goalDetail?id=",wrltask:"/spa/workrelate/static4mobile/index.html#/taskHome/taskDetail/"};window.openLink(i[n]+t)}},window.openLink.browserOpenLink.set({wrlgoal:function(e,t){window.openLink("/spa/workrelate/static4mobile/index.html#/goalHome/goalDetail?id="+e.id)},wrltsk:function(e,t){window.openLink("/spa/workrelate/static4mobile/index.html#/taskHome/taskDetail/"+e.id)}})}}},479:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o,i,l,r=n(9),d=a(r),u=n(1),c=a(u),m=n(4),f=a(m),s=n(2),p=a(s),h=n(3),w=a(h),g=n(0),v=a(g),k=n(12),b=n(27),y=a(b),D=(0,k.withRouter)((l=i=function(e){function t(){var e,n,a,o;(0,c.default)(this,t);for(var i=arguments.length,l=Array(i),r=0;r<i;r++)l[r]=arguments[r];return n=a=(0,p.default)(this,(e=t.__proto__||(0,d.default)(t)).call.apply(e,[this].concat(l))),a.setTitle=function(e){window.em&&"function"===typeof window.em.checkJsApi&&window.em.checkJsApi("changeTitle")&&window.em.changeTitle({title:e}),window.document.title=e},o=n,(0,p.default)(a,o)}return(0,w.default)(t,e),(0,f.default)(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.location.pathname,a=t.data,o=t.defaultTitle,i=!1;a.forEach(function(t){var a="function"===typeof t.title?t.title():"";a="string"===typeof t.title?t.title:a,("string"===typeof t.match&&n===t.match||t.match instanceof RegExp&&t.match.test(n))&&(i=!0,e.setTitle(a))}),i||this.setTitle(o)}},{key:"render",value:function(){return this.props.children||null}}]),t}(v.default.Component),i.defaultProps={data:[],defaultTitle:""},o=l))||o,M=(0,y.default)(D,"DocumentTitle");window.WeaverMobilePage&&(window.WeaverMobilePage.DocumentTitle=M),t.default=M}});
//# sourceMappingURL=7.chunk.js.map?v=106265f8