text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[8],{DWat:function(e,t,a){"use strict";var r=a("TqRt"),n=a("284h");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("IzEo");var l=r(a("bx4M"));a("14J3");var d=r(a("BMrR"));a("+L6B");var u=r(a("2/Rp"));a("OaEy");var s=r(a("2fM7"));a("jCWc");var i=r(a("kPKH"));a("5NDa");var o=r(a("5rEg")),f=r(a("MVZn")),c=r(a("lwsE")),m=r(a("W8MJ")),p=r(a("a1gu")),h=r(a("Nsbk")),b=r(a("7W2i"));a("y8nQ");var v,y,g,E,x=r(a("Vl3Y")),I=n(a("q1tI")),k=a("MuoO"),w=r(a("wd/R")),F=r(a("CkN6")),L=r(a("zHco")),M=r(a("b2Yc")),S=x.default.Item,N=(v=x.default.create(),y=(0,k.connect)(function(e){var t=e.users,a=e.loading;return{users:t,loading:a.models.users}}),g=x.default.create(),v(E=y(E=g(E=function(e){function t(){var e,a;(0,c.default)(this,t);for(var r=arguments.length,n=new Array(r),l=0;l<r;l++)n[l]=arguments[l];return a=(0,p.default)(this,(e=(0,h.default)(t)).call.apply(e,[this].concat(n))),a.state={formValues:{}},a.columns=[{title:"\u771f\u5b9e\u59d3\u540d",dataIndex:"realname",render:function(e){return e||"\u6682\u65e0"}},{title:"\u6635\u79f0",dataIndex:"nickname",render:function(e){return e||"\u6682\u65e0"}},{title:"\u6027\u522b",dataIndex:"gender",render:function(e){return"MALE"===e?"\u7537":"\u5973"}},{title:"\u5934\u50cf",dataIndex:"headerImage",render:function(e){return e?I.default.createElement("img",{style:{width:"40px",height:"40px",borderRadius:"50%"},src:e,alt:""}):"\u6682\u65e0"}},{title:"\u4f1a\u5458\u5361\u53f7",dataIndex:"cardNo",render:function(e){return e||"\u6682\u65e0"}},{title:"\u6240\u5728\u5730\u533a",dataIndex:"city",render:function(e){return e||"\u6682\u65e0"}},{title:"\u624b\u673a\u53f7",dataIndex:"mobileNo",render:function(e){return e||"\u6682\u65e0"}},{title:"\u751f\u65e5",dataIndex:"birthday",render:function(e){return e||"\u6682\u65e0"}},{title:"\u662f\u5426\u8ba2\u9605",dataIndex:"subscribe",render:function(e){return e?"\u662f":"\u5426"}},{title:"\u8ba2\u9605\u65f6\u95f4",dataIndex:"subscribeTime",render:function(e){return e?I.default.createElement("span",null,(0,w.default)(e).format("YYYY-MM-DD HH:mm:ss")):"\u6682\u65e0"}}],a.handleStandardTableChange=function(e){var t=a.props.dispatch,r=a.state.formValues,n=(0,f.default)({page:e.current,pageSize:e.pageSize},r);t({type:"users/fetch",payload:n})},a.handleFormReset=function(){var e=a.props,t=e.form,r=e.dispatch;t.resetFields(),a.setState({formValues:{}}),r({type:"users/fetch",payload:{}})},a.handleSearch=function(e){e.preventDefault();var t=a.props,r=t.dispatch,n=t.form;n.validateFields(function(e,t){if(!e){var n=(0,f.default)({},t);a.setState({formValues:n}),r({type:"users/fetch",payload:n})}})},a}return(0,b.default)(t,e),(0,m.default)(t,[{key:"componentDidMount",value:function(){var e=this.props.dispatch;e({type:"users/fetch"})}},{key:"renderSimpleForm",value:function(){var e=this.props.form.getFieldDecorator;return I.default.createElement(x.default,{onSubmit:this.handleSearch,layout:"inline"},I.default.createElement(d.default,{gutter:{md:8,lg:24,xl:48}},I.default.createElement(i.default,{md:8,sm:24},I.default.createElement(S,{label:"\u6635\u79f0"},e("nickname")(I.default.createElement(o.default,{placeholder:"\u8bf7\u8f93\u5165"})))),I.default.createElement(i.default,{md:8,sm:24},I.default.createElement(S,{label:"\u89d2\u8272"},e("status")(I.default.createElement(s.default,{placeholder:"\u8bf7\u9009\u62e9",style:{width:"100%"}})))),I.default.createElement(i.default,{md:8,sm:24},I.default.createElement("span",{className:M.default.submitButtons},I.default.createElement(u.default,{type:"primary",htmlType:"submit"},"\u67e5\u8be2"),I.default.createElement(u.default,{style:{marginLeft:8},onClick:this.handleFormReset},"\u91cd\u7f6e")))))}},{key:"renderForm",value:function(){return this.renderSimpleForm()}},{key:"render",value:function(){var e=this.props,t=e.users.data,a=e.loading;return I.default.createElement(L.default,{title:"\u7528\u6237\u5217\u8868"},I.default.createElement(l.default,{bordered:!1},I.default.createElement("div",{className:M.default.tableList},I.default.createElement("div",{className:M.default.tableListForm},this.renderForm()),I.default.createElement(F.default,{loading:a,data:t,rowKey:function(e){return e.id},columns:this.columns,onChange:this.handleStandardTableChange,scroll:{x:1200}}))))}}]),t}(I.PureComponent))||E)||E)||E),C=N;t.default=C},b2Yc:function(e,t,a){e.exports={tableList:"antd-pro-pages-user-index-tableList",tableListOperator:"antd-pro-pages-user-index-tableListOperator",tableListForm:"antd-pro-pages-user-index-tableListForm",submitButtons:"antd-pro-pages-user-index-submitButtons"}}}]);