"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[597],{8214:function(re,U,e){var p=e(1413),f=e(45987),i=e(62435),C=e(66758),P=e(49994),W=e(86074),y=["fieldProps","request","params","proFieldProps"],E=function(x,Z){var S=x.fieldProps,a=x.request,T=x.params,m=x.proFieldProps,u=(0,f.Z)(x,y),g=(0,i.useContext)(C.Z);return(0,W.jsx)(P.Z,(0,p.Z)({valueType:"cascader",fieldProps:(0,p.Z)({getPopupContainer:g.getPopupContainer},S),ref:Z,request:a,params:T,filedConfig:{customLightMode:!0},proFieldProps:m},u))};U.Z=i.forwardRef(E)},64317:function(re,U,e){var p=e(1413),f=e(45987),i=e(22270),C=e(62435),P=e(66758),W=e(49994),y=e(86074),E=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],O=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],x=function(u,g){var A=u.fieldProps,B=u.children,V=u.params,H=u.proFieldProps,J=u.mode,w=u.valueEnum,X=u.request,z=u.showSearch,K=u.options,t=(0,f.Z)(u,E),n=(0,C.useContext)(P.Z);return(0,y.jsx)(W.Z,(0,p.Z)((0,p.Z)({valueEnum:(0,i.h)(w),request:X,params:V,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,p.Z)({options:K,mode:J,showSearch:z,getPopupContainer:n.getPopupContainer},A),ref:g,proFieldProps:H},t),{},{children:B}))},Z=C.forwardRef(function(m,u){var g=m.fieldProps,A=m.children,B=m.params,V=m.proFieldProps,H=m.mode,J=m.valueEnum,w=m.request,X=m.options,z=(0,f.Z)(m,O),K=(0,p.Z)({options:X,mode:H||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},g),t=(0,C.useContext)(P.Z);return(0,y.jsx)(W.Z,(0,p.Z)((0,p.Z)({valueEnum:(0,i.h)(J),request:w,params:B,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,p.Z)({getPopupContainer:t.getPopupContainer},K),ref:u,proFieldProps:V},z),{},{children:A}))}),S=C.forwardRef(x),a=Z,T=S;T.SearchSelect=a,T.displayName="ProFormComponent",U.Z=T},67119:function(re,U,e){var p=e(59530),f=e(55375),i=e(68872),C=e(32443),P=e(86074),W=function(E){var O=E.onUploadComplete,x=E.uploadTxt,Z=E.image_type,S=E.form_name,a=E.image_length,T=E.multiple,m=function(g){O&&O(g)};return(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(C.Z,{label:x,name:S,icon:null,title:x,fieldProps:{maxCount:a,multiple:T,fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(g){var A=new FormData;A.append("image",g.file),console.log(A),(0,p.request)(f.FH+"/common/image/upload?imgtype="+Z,{method:"post",data:A,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(B){m(B.data.filename)}).catch(function(B){console.log(B),i.ZP.error("\u4E0A\u4F20\u5931\u8D25")})}}})})};U.Z=W},22271:function(re,U,e){e.r(U),e.d(U,{default:function(){return Q}});var p=e(5574),f=e.n(p),i=e(62435),C=e(59530),P=e(28459),W=e(15009),y=e.n(W),E=e(99289),O=e.n(E),x=e(67211),Z=e(14726),S=e(39680),a=e(86074),T=function(d){var F=d.dispatch,N=d.openModel,v=d.getId,j=(0,i.useRef)(),Y=(0,i.useState)([]),M=f()(Y,2),G=M[0],_=M[1],k=(0,i.useState)(0),ee=f()(k,2),te=ee[0],$=ee[1],se=(0,i.useState)(1),ie=f()(se,2),ne=ie[0],q=ie[1],ue=(0,i.useState)(10),oe=f()(ue,2),R=oe[0],s=oe[1],o=function(D){v(D)};return(0,i.useEffect)(function(){N.openModal||j.current.reload()},[N.openModal]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(P.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,a.jsx)(x.Z,{size:"small",bordered:!0,scroll:{x:1300},actionRef:j,dataSource:G,columns:[{title:"\u624B\u673A\u53F7\u7801",dataIndex:"mobile"},{title:"\u6635\u79F0",dataIndex:"nickname",search:!1},{title:"\u5934\u50CF",dataIndex:"avatar",search:!1},{title:"\u7535\u5B50\u90AE\u7BB1",dataIndex:"email",search:!1},{title:"\u89D2\u8272ID",dataIndex:"roleids",search:!1},{title:"\u64CD\u4F5C",width:300,key:"option",valueType:"option",fixed:"right",render:function(D,b,L){return[(0,a.jsx)(Z.ZP,{type:"link",onClick:function(){o(b.id),F({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,a.jsx)(Z.ZP,{type:"link",onClick:function(){},children:"\u5220\u9664"},"2")]}}],rowKey:"id",pagination:{current:ne,pageSize:R,showSizeChanger:!0,total:te,pageSizeOptions:[9,18,27,99],onChange:function(D,b){q(D),s(b)},onShowSizeChange:function(D,b){q(D),s(b)}},request:O()(y()().mark(function c(){var D,b=arguments;return y()().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return D=b.length>0&&b[0]!==void 0?b[0]:{},ae.abrupt("return",(0,S.D05)({page:ne,pagesize:R,sort:"id",sortby:"desc",keyword:D.mobile}).then(function(ce){_(ce.data.users),$(ce.data.total)}));case 2:case"end":return ae.stop()}},c)})),headerTitle:"\u8D26\u53F7\u5217\u8868",toolBarRender:function(){return[(0,a.jsx)(Z.ZP,{type:"primary",onClick:function(){F({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u8D26\u53F7"})]}})})})},m=(0,C.connect)(function(I){var d=I.openModel;return{openModel:d}})(T),u=e(97269),g=e(5966),A=e(64317),B=e(8214),V=e(17788),H=e(86250),J=e(42075),w=e(68872),X=e(71230),z=e(15746),K=e(98163),t=e(55375),n=e(67119),l={label:"name",value:"id"},r={label:"name",value:"id",children:"children"},h=function(d){var F=d.dispatch,N=d.dictModel,v=d.openModel,j=d.id,Y=(0,i.useRef)(),M=(0,i.useState)(!1),G=f()(M,2),_=G[0],k=G[1],ee=(0,i.useState)(null),te=f()(ee,2),$=te[0],se=te[1];(0,i.useEffect)(function(){k(v.openModal)},[v.openModal]);var ie=(0,i.useState)(""),ne=f()(ie,2),q=ne[0],ue=ne[1],oe=function(s){ue(s)};return(0,i.useEffect)(function(){F({type:"dictModel/getList",payload:{code:2009,type:"setAreaList"}})},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(P.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,a.jsx)(V.Z,{open:_,title:j?"\u7F16\u8F91\u8D26\u53F7":"\u6DFB\u52A0\u8D26\u53F7",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){F({type:"openModel/getOpenModal",payload:!1})},children:(0,a.jsxs)(u.A,{formRef:Y,request:O()(y()().mark(function R(){var s;return y()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!j){c.next=10;break}return c.next=3,(0,S.nEl)({id:j});case 3:return s=c.sent,s.data.location_arr=[s.data.province?s.data.province:0,s.data.city?s.data.city:0,s.data.district?s.data.district:0,s.data.street?s.data.street:0],s.data.roleids=s.data.roleids.length>0?s.data.roleids.split(",").map(Number):[],se(s.data),c.abrupt("return",s.data);case 10:return c.abrupt("return",{mobile:"",password:"",repassword:"",nickname:"",avatar:"",email:"",roleids:[]});case 11:case"end":return c.stop()}},R)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(s,o){return(0,a.jsxs)(H.Z,{justify:"flex-end",children:[" ",(0,a.jsx)(J.Z,{children:o})]})},onReset:function(){se(null),F({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var R=O()(y()().mark(function s(o){var c,D;return y()().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(o.province=o.location_arr&&o.location_arr.length>0&&o.location_arr[0]?o.location_arr[0]:0,o.city=o.location_arr&&o.location_arr.length>0&&o.location_arr[1]?o.location_arr[1]:0,o.district=o.location_arr&&o.location_arr.length>0&&o.location_arr[2]?o.location_arr[2]:0,o.street=o.location_arr&&o.location_arr.length>0&&o.location_arr[3]?o.location_arr[3]:0,delete o.location_arr,o.roleids=o.roleids.join(","),console.log(o.roleids),!j){L.next=16;break}return o.id=j,L.next=11,(0,S.sGo)(o);case 11:c=L.sent,w.ZP.success("\u63D0\u4EA4\u6210\u529F"),F({type:"openModel/getOpenModal",payload:!1}),L.next=21;break;case 16:return L.next=18,(0,S.jF5)(o);case 18:D=L.sent,w.ZP.success("\u63D0\u4EA4\u6210\u529F"),F({type:"openModel/getOpenModal",payload:!1});case 21:case"end":return L.stop()}},s)}));return function(s){return R.apply(this,arguments)}}(),children:[(0,a.jsx)(g.Z,{label:"\u624B\u673A\u53F7",name:"mobile",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"}]}),(0,a.jsx)(g.Z.Password,{label:"\u5BC6\u7801",name:"password",placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801"}]}),(0,a.jsx)(g.Z.Password,{label:"\u786E\u8BA4\u5BC6\u7801",name:"repassword",placeholder:"\u8BF7\u8F93\u5165\u786E\u8BA4\u5BC6\u7801",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u786E\u8BA4\u5BC6\u7801"}]}),(0,a.jsx)(g.Z,{label:"\u6635\u79F0",name:"nickname",placeholder:"\u8BF7\u8F93\u5165\u6635\u79F0"}),(0,a.jsx)(X.Z,{gutter:[16,16],children:$?(0,a.jsxs)(z.Z,{span:24,style:{display:"flex"},children:[(0,a.jsx)(n.Z,{multiple:!1,form_name:"cover_img",image_length:1,uploadTxt:"\u4E0A\u4F20\u5C01\u9762\u56FE",image_type:3,onUploadComplete:oe}),q?(0,a.jsx)(K.Z,{src:"".concat(t.VO).concat(q),style:{marginLeft:"16px",marginTop:"32px",width:"100px",height:"100px"}}):(0,a.jsx)(K.Z,{src:"".concat(t.VO).concat($==null?void 0:$.cover_img),style:{marginLeft:"16px",marginTop:"32px",width:"100px",height:"100px"}})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(z.Z,{span:24,style:{display:"flex"},children:[(0,a.jsx)(n.Z,{multiple:!1,form_name:"cover_img",image_length:1,uploadTxt:"\u4E0A\u4F20\u5C01\u9762\u56FE",image_type:3,onUploadComplete:oe}),q?(0,a.jsxs)(z.Z,{span:8,children:[" ",(0,a.jsx)(K.Z,{src:"".concat(t.VO).concat(q),style:{marginTop:"32px",width:"100px",height:"100px"}})," "]}):""]})})}),(0,a.jsx)(g.Z,{label:"\u90AE\u7BB1",name:"email",placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"}),(0,a.jsx)(A.Z,{showSearch:!0,name:"roleids",label:"\u9009\u62E9\u89D2\u8272",placeholder:"\u8BF7\u9009\u62E9\u89D2\u8272",fieldProps:{fieldNames:l,mode:"multiple"},request:function(s){return(0,S.ccM)({page:1,pagesize:100,keyword:s.keyWords}).then(function(o){return o.data.roles.filter(function(c){return c.id!==3})})},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u786E\u8BA4\u5BC6\u7801"}]}),(0,a.jsx)(B.Z,{label:"\u9009\u62E9\u793E\u533A",name:"location_arr",fieldProps:{fieldNames:r,options:N.areaList,changeOnSelect:!0},placeholder:"\u4F01\u4E1A\u6240\u5728\u5730\u533A"})]})})})})},de=(0,C.connect)(function(I){var d=I.dictModel,F=I.openModel;return{dictModel:d,openModel:F}})(h),le=function(d){var F=d.dispatch,N=d.openModel,v=(0,i.useState)(0),j=f()(v,2),Y=j[0],M=j[1],G=function(k){M(k)};return(0,i.useEffect)(function(){N.openModal||M(0)},[N.openModal]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(P.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,a.jsx)(m,{getId:G}),(0,a.jsx)(de,{id:Y})]})})},Q=(0,C.connect)(function(I){var d=I.openModel;return{openModel:d}})(le)},86250:function(re,U,e){e.d(U,{Z:function(){return K}});var p=e(62435),f=e(93967),i=e.n(f),C=e(98423),P=e(98065),W=e(53124),y=e(92030),E=e(45503);const O=["wrap","nowrap","wrap-reverse"],x=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Z=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],S=(t,n)=>{const l=n.wrap===!0?"wrap":n.wrap;return{[`${t}-wrap-${l}`]:l&&O.includes(l)}},a=(t,n)=>{const l={};return Z.forEach(r=>{l[`${t}-align-${r}`]=n.align===r}),l[`${t}-align-stretch`]=!n.align&&!!n.vertical,l},T=(t,n)=>{const l={};return x.forEach(r=>{l[`${t}-justify-${r}`]=n.justify===r}),l};function m(t,n){return i()(Object.assign(Object.assign(Object.assign({},S(t,n)),a(t,n)),T(t,n)))}var u=m;const g=t=>{const{componentCls:n}=t;return{[n]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},A=t=>{const{componentCls:n}=t;return{[n]:{"&-gap-small":{gap:t.flexGapSM},"&-gap-middle":{gap:t.flexGap},"&-gap-large":{gap:t.flexGapLG}}}},B=t=>{const{componentCls:n}=t,l={};return O.forEach(r=>{l[`${n}-wrap-${r}`]={flexWrap:r}}),l},V=t=>{const{componentCls:n}=t,l={};return Z.forEach(r=>{l[`${n}-align-${r}`]={alignItems:r}}),l},H=t=>{const{componentCls:n}=t,l={};return x.forEach(r=>{l[`${n}-justify-${r}`]={justifyContent:r}}),l},J=()=>({});var w=(0,y.I$)("Flex",t=>{const{paddingXS:n,padding:l,paddingLG:r}=t,h=(0,E.TS)(t,{flexGapSM:n,flexGap:l,flexGapLG:r});return[g(h),A(h),B(h),V(h),H(h)]},J,{resetStyle:!1}),X=function(t,n){var l={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(l[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,r=Object.getOwnPropertySymbols(t);h{const{prefixCls:l,rootClassName:r,className:h,style:de,flex:le,gap:Q,children:I,vertical:d=!1,component:F="div"}=t,N=X(t,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:j,getPrefixCls:Y}=p.useContext(W.E_),M=Y("flex",l),[G,_,k]=w(M),ee=d!=null?d:v==null?void 0:v.vertical,te=i()(h,r,v==null?void 0:v.className,M,_,k,u(M,t),{[`${M}-rtl`]:j==="rtl",[`${M}-gap-${Q}`]:(0,P.n)(Q),[`${M}-vertical`]:ee}),$=Object.assign(Object.assign({},v==null?void 0:v.style),de);return le&&($.flex=le),Q&&!(0,P.n)(Q)&&($.gap=Q),G(p.createElement(F,Object.assign({ref:n,className:te,style:$},(0,C.Z)(N,["justify","wrap","align"])),I))})}}]);