13.chunk.js 2.66 KB
webpackJsonp([13],{1321:function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,n,i=r(27),u=a(i),s=r(47),l=a(s),c=r(13),d=a(c),m=r(15),f=a(m),p=r(145),h=a(p),v=r(5),y=a(v),E=r(7),g=a(E),C=r(1),S=a(C),L=r(4),b=a(L),k=r(2),w=a(k),_=r(3),R=a(_),M=r(9),I=a(M),N=r(0),F=a(N),P=r(10),A=r(12),K=r(124),j=a(K);new RegExp("\\biPhone\\b|\\biPod\\b","i").test(window.navigator.userAgent);var x=I.default.getLabel,B=(o=(0,P.inject)("customerListStore"))(n=(0,A.withRouter)(n=(0,P.observer)(n=function(e){function t(e){(0,S.default)(this,t);var r=(0,w.default)(this,(t.__proto__||(0,g.default)(t)).call(this,e));return r.onSearch=function(){r.props.customerListStore.doSearch()},r.state={curCustomerId:""},r}return(0,R.default)(t,e),(0,b.default)(t,[{key:"componentWillMount",value:function(){var e=this.props,t=e.customerListStore,r=e.match,a=e.params,o=a||r.params;t.doNew(this,(0,y.default)({type:"crm_list"},o))}},{key:"componentDidMount",value:function(){this.props.customerListStore.doInit()}},{key:"componentWillUnmount",value:function(){this.props.customerListStore.doClear()}},{key:"render",value:function(){var e=this.props.customerListStore,t=e.initResponsed,r=e.initSuccessed,a=e.initFailedMsg;if(t){if(r){var o=e.listAd,n=e.customerCardLayout,i=this.state.curCustomerId;return F.default.createElement("div",null,F.default.createElement("div",{className:"crm-list-content"},F.default.createElement(h.default,{store:o,hasAdvanceSerach:!0,rowKey:"id",searchKey:"searchKey",onSearch:this.onSearch,onRowClick:this.onRowClick.bind(this),conditionFetchOptions:{url:"/api/crm/mobile/getCustomerCondition?opt=my",method:"GET"},searchBarProps:{placeholder:x("391028","\u540d\u79f0\u6216\u5730\u5740")}})),F.default.createElement(A.Route,{key:n.id,path:n.path,render:function(){var e=F.default.createElement(j.default,{params:{id:i}});return F.default.createElement(f.default,{getContainer:function(){return document.getElementById("root")}},F.default.createElement("div",{key:"customerCardLayout",className:"wm-route-layout"},e))}}))}return F.default.createElement("div",null,F.default.createElement(l.default,{img:F.default.createElement(d.default,{type:"cross-circle-o",className:"crm_commerce_initFailedMsg",style:{fill:"#F13642"}}),title:"",message:a}))}return F.default.createElement("div",{className:"crm-bg-loading"},F.default.createElement(u.default,{text:"Loading..."}))}},{key:"onRowClick",value:function(e){var t=this.props.customerListStore,r=t.customerCardLayout;this.setState({curCustomerId:e.id}),this.props.history.push(r.path)}}]),t}(N.Component))||n)||n)||n;t.default=B}});
//# sourceMappingURL=13.chunk.js.map?v=16bb51ca