vdi/web-fe/serve/dist/p__userList__index.async.js

2 lines
24 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[407],{16711:function(Ce,K,r){r.d(K,{AA:function(){return f},Bq:function(){return Q},DE:function(){return p},Dx:function(){return g},Jk:function(){return c},OQ:function(){return h},UO:function(){return X},Wf:function(){return o},iI:function(){return S},uz:function(){return U}});var Q="200",o={1:"VDI",3:"VOI"},ne={1:"\u5168\u76D8\u8FD8\u539F",2:"\u6570\u636E\u76D8\u8FD8\u539F",3:"\u5B9A\u65F6\u8FD8\u539F",0:"\u4E0D\u8FD8\u539F"},f={1:"\u57DF\u7528\u6237",0:"\u672C\u5730\u7528\u6237"},S={1:"\u5973",2:"\u7537"},p={1:"\u4E00\u7EA7",2:"\u4E8C\u7EA7",3:"\u4E09\u7EA7"},X={1:"\u542F\u7528",2:"\u7981\u7528"},h=[{value:1,label:"\u57DF\u7528\u6237"},{value:0,label:"\u672C\u5730\u7528\u6237"}],c=[{value:1,label:"VDI"},{value:3,label:"VOI"}],U=[{value:1,label:"\u5973"},{value:2,label:"\u7537"}],g=[{value:1,label:"\u4E00\u7EA7"},{value:2,label:"\u4E8C\u7EA7"},{value:3,label:"\u4E09\u7EA7"}]},72915:function(Ce,K,r){var Q=r(97857),o=r.n(Q),ne=r(13769),f=r.n(ne),S=r(67294),p=r(31673),X=r(85893),h=["treeData","titleField","keyField","childrenField","onCheck"],c=function(g){var W=g.treeData,ie=g.titleField,G=g.keyField,q=g.childrenField,d=q===void 0?"children":q,y=g.onCheck,b=f()(g,h),T=function R(n){return n.map(function(l){var i=o()({title:l[ie],key:l[G]},l);return l[d]&&Array.isArray(l[d])&&(i.children=R(l[d])),i})},P=T(W),oe=function(n,l){var i=[];Array.isArray(n)?i=n:i=n.checked,y==null||y(i,l.checkedNodes,l)};return(0,X.jsx)(p.Z,o()({treeData:P,onCheck:oe},b))};K.Z=c},84718:function(Ce,K,r){r.r(K),r.d(K,{default:function(){return De}});var Q=r(97857),o=r.n(Q),ne=r(15009),f=r.n(ne),S=r(99289),p=r.n(S),X=r(5574),h=r.n(X),c=r(16711),U=r(72915),g=r(39231),W=r(87740),ie=r(24969),G=r(48689),q=r(55355),d=r(68872),y=r(83062),b=r(77683),T=r(86738),P=r(31800),oe=r(74330),R=r(65128),n=r(67294),l={user_content:"user_content___n6dbD",left_content:"left_content___CkwkA",search:"search___HoQbf",tree_box:"tree_box___x56Nb",right_content:"right_content___JtLdU",teble_content:"teble_content___kLIoM",teble_box:"teble_box___Gk7lM"},i=r(86587),a=r(2975),Ae=r(56558),_e=r(78045),me=r(74656),Me=r(73908),ge=r(30381),ye=r.n(ge),e=r(85893),ee=function(B){var w=B.orgTreeData,A=B.onCancel,ae=B.onOk,z=B.confirmLoading,re=z===void 0?!1:z,j=B.currentUserInfo,D=j||{},pe=D.recordData,N=D.visible,ue=D.selectedOrg,Ee=pe||{},L=Ee.id,se=i.Z.useForm(),M=h()(se,1),I=M[0];(0,n.useEffect)(function(){if(L)(0,g.GA)({id:L}).then(function(ce){var Z=ce.data,k=Z||{},Y=k.birthday,V=o()({},Z);delete V.birthday,Y&&(V.birthday=ye()(Y)),I.setFieldsValue(V)});else{var le={user_group_id:ue||null,status:1};I.setFieldsValue(le)}},[N,I,pe,ue]);var O=function(){var le=p()(f()().mark(function ce(){var Z,k,Y,V,fe,Oe,je,Be;return f()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,I.validateFields();case 2:if(Z=E.sent,k=Z||{},Y=k.birthday,V=o()({},Z),delete V.birthday,Y&&(V.birthday=ye()(Y).format("YYYY-MM-DD")),E.prev=7,fe=o()({},V),L&&(fe.id=L),!L){E.next=16;break}return E.next=13,(0,g.uz)(fe);case 13:E.t0=E.sent,E.next=19;break;case 16:return E.next=18,(0,g.cn)(fe);case 18:E.t0=E.sent;case 19:Oe=E.t0,je=Oe||{},Be=je.code,Be===c.Bq?ae():d.ZP.error("\u4FDD\u5B58\u5931\u8D25"),E.next=27;break;case 24:E.prev=24,E.t1=E.catch(7),d.ZP.error("\u8BF7\u68C0\u67E5\u8868\u5355\u5B57\u6BB5");case 27:case"end":return E.stop()}},ce,null,[[7,24]])}));return function(){return le.apply(this,arguments)}}(),Pe={required:"${label} is required!",types:{email:"${label} is not a valid email!",number:"${label} is not a valid number!"},number:{range:"${label} must be between ${min} and ${max}"}},Le=function(ce,Z){if(!Z)return Promise.reject("\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801");if(Z.length<6)return Promise.reject("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D");var k=/\d/.test(Z),Y=/[a-zA-Z]/.test(Z);return k?Y?Promise.resolve():Promise.reject("\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5B57\u6BCD"):Promise.reject("\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u6570\u5B57")};return(0,e.jsx)(a.Z,{title:L?"\u7F16\u8F91\u7528\u6237\u4FE1\u606F":"\u65B0\u589E\u7528\u6237",open:N,onCancel:A,onOk:O,confirmLoading:re,width:600,maskClosable:!1,centered:!0,destroyOnHidden:!0,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",footer:null,children:(0,e.jsxs)(i.Z,{form:I,labelCol:{span:5},onFinish:O,wrapperCol:{span:18},layout:"horizontal",style:{paddingTop:"20px",paddingBottom:"20px"},validateMessages:Pe,children:[(0,e.jsx)(i.Z.Item,{name:"user_name",label:"\u7528\u6237\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u59D3\u540D"}],children:(0,e.jsx)(P.Z,{placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u59D3\u540D"})}),(0,e.jsx)(i.Z.Item,{name:"password",label:"\u5BC6\u7801",rules:[{required:!0,validator:Le}],help:"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u6570\u5B57\u548C\u5B57\u6BCD,\u5B57\u6BCD\u533A\u5206\u5927\u5C0F\u5199,\u4E14\u81F3\u5C116\u4F4D",style:{marginBottom:"30px"},children:(0,e.jsx)(P.Z.Password,{placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801"})}),(0,e.jsx)(i.Z.Item,{name:"user_group_id",label:"\u7528\u6237\u5206\u7EC4",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7528\u6237\u5206\u7EC4"}],children:(0,e.jsx)(Ae.Z,{showSearch:!0,allowClear:!1,treeDefaultExpandAll:!0,placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u5206\u7EC4",treeData:w,fieldNames:{label:"name",value:"id",children:"children"}})}),(0,e.jsx)(i.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsxs)(_e.ZP.Group,{children:[(0,e.jsx)(_e.ZP,{value:1,children:"\u542F\u7528"}),(0,e.jsx)(_e.ZP,{value:2,children:"\u7981\u7528"})]})}),(0,e.jsx)(i.Z.Item,{name:"user_type",label:"\u7528\u6237\u7C7B\u522B",rules:[{required:!1,message:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u522B"}],children:(0,e.jsx)(me.Z,{placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u522B",options:c.OQ})}),(0,e.jsx)(i.Z.Item,{name:"birthday",label:"\u51FA\u751F\u65E5\u671F",children:(0,e.jsx)(Me.Z,{format:"YYYY-MM-DD",style:{width:"414px"}})}),(0,e.jsx)(i.Z.Item,{name:"priority",label:"\u4F18\u5148\u7EA7",rules:[{required:!1,message:"\u8BF7\u9009\u62E9\u7528\u6237\u4F18\u5148\u7EA7"}],children:(0,e.jsx)(me.Z,{placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u522B",options:c.Dx})}),(0,e.jsx)(i.Z.Item,{name:"gender",label:"\u6027\u522B",rules:[{required:!1,message:"\u8BF7\u9009\u62E9\u6027\u522B"}],children:(0,e.jsx)(me.Z,{placeholder:"\u8BF7\u9009\u62E9\u6027\u522B",options:c.uz})}),(0,e.jsx)(i.Z.Item,{name:"identity_no",label:"\u8EAB\u4EFD\u8BC1\u53F7",rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7"},{pattern:/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[\dXx]$/,message:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u53F7"}],children:(0,e.jsx)(P.Z,{placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7"})}),(0,e.jsx)(i.Z.Item,{name:"cell_phone",label:"\u7535\u8BDD\u53F7\u7801",rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u7535\u8BDD\u53F7\u7801"},{pattern:/^1[3-9]\d{9}$/,message:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u624B\u673A\u53F7\u7801"}],children:(0,e.jsx)(P.Z,{placeholder:"\u8BF7\u8F93\u5165\u7535\u8BDD\u53F7\u7801"})}),(0,e.jsx)(i.Z.Item,{name:"email",label:"\u90AE\u7BB1",rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1"},{type:"email",message:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u90AE\u7BB1\u5730\u5740"}],children:(0,e.jsx)(P.Z,{placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"})}),(0,e.jsxs)(i.Z.Item,{label:null,children:[(0,e.jsx)(b.ZP,{type:"primary",htmlType:"submit",style:{marginRight:"20px"},children:"\u786E\u5B9A"}),(0,e.jsx)(b.ZP,{onClick:A,children:"\u53D6\u6D88"})]})]})})},Ue=ee,Re=r(86231),we=function(B){var w=B.visible,A=B.onCancel,ae=B.onOk,z=B.confirmLoading,re=z===void 0?!1:z,j=B.username,D=i.Z.useForm(),pe=h()(D,1),N=pe[0];(0,n.useEffect)(function(){w||N.resetFields()},[w,N]);var ue=function(){var L=p()(f()().mark(function se(){var M;return f()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.prev=0,O.next=3,N.validateFields();case 3:M=O.sent,ae(M),O.next=10;break;case 7:O.prev=7,O.t0=O.catch(0),d.ZP.error("\u8BF7\u68C0\u67E5\u8868\u5355\u5B57\u6BB5");case 10:case"end":return O.stop()}},se,null,[[0,7]])}));return function(){return L.apply(this,arguments)}}(),Ee=function(se,M){if(!M)return Promise.reject("\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801");if(M.length<6)return Promise.reject("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D");var I=/\d/.test(M),O=/[a-zA-Z]/.test(M);return I?O?Promise.resolve():Promise.reject("\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5B57\u6BCD"):Promise.reject("\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u6570\u5B57")};return(0,e.jsx)(a.Z,{title:j?"\u91CD\u7F6E\u5BC6\u7801 - ".concat(j):"\u91CD\u7F6E\u5BC6\u7801",open:w,onCancel:A,onOk:ue,confirmLoading:re,width:600,maskClosable:!1,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnHidden:!0,footer:(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"right"},children:[(0,e.jsx)(b.ZP,{type:"primary",onClick:ue,style:{marginRight:"20px"},children:"\u786E\u5B9A"}),(0,e.jsx)(b.ZP,{onClick:A,style:{marginRight:"20px"},children:"\u53D6\u6D88"})]}),children:(0,e.jsx)(i.Z,{form:N,labelCol:{span:5},wrapperCol:{span:18},layout:"horizontal",style:{paddingTop:"20px",paddingBottom:"20px"},children:(0,e.jsx)(i.Z.Item,{name:"password",label:"\u5BC6\u7801\u91CD\u7F6E\u4E3A",rules:[{required:!0,validator:Ee}],help:"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u6570\u5B57\u548C\u5B57\u6BCD\uFF0C\u5B57\u6BCD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u4E14\u81F3\u5C116\u4F4D",children:(0,e.jsx)(P.Z.Password,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801"})})})})},de=we,be=function(){var B=(0,n.useState)([]),w=h()(B,2),A=w[0],ae=w[1],z=(0,n.useState)(),re=h()(z,2),j=re[0],D=re[1],pe=(0,n.useState)([]),N=h()(pe,2),ue=N[0],Ee=N[1],L=(0,n.useState)(!1),se=h()(L,2),M=se[0],I=se[1],O=(0,n.useState)(!1),Pe=h()(O,2),Le=Pe[0],le=Pe[1],ce=(0,n.useState)(""),Z=h()(ce,2),k=Z[0],Y=Z[1],V=(0,n.useState)([]),fe=h()(V,2),Oe=fe[0],je=fe[1],Be=(0,n.useState)(""),ke=h()(Be,2),E=ke[0],$e=ke[1],qe=(0,n.useState)(1),Ke=h()(qe,2),Se=Ke[0],xe=Ke[1],er=(0,n.useState)(10),We=h()(er,2),Fe=We[0],Ge=We[1],rr=(0,n.useState)(0),ze=h()(rr,2),tr=ze[0],nr=ze[1],ar=(0,n.useState)({visible:!1}),Ne=h()(ar,2),Ye=Ne[0],Te=Ne[1],ur=(0,n.useState)({visible:!1}),Ve=h()(ur,2),sr=Ve[0],Je=Ve[1],lr=(0,n.useState)(!1),He=h()(lr,2),Qe=He[0],Xe=He[1];(0,n.useEffect)(function(){Ze()},[]),(0,n.useEffect)(function(){Ie()},[k,j,Se,Fe]);var Ze=function(){var u=p()(f()().mark(function t(){var s,m,_,C,x,v,J,te,he;return f()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return le(!0),s={type:1},$.prev=2,$.next=5,(0,g.ib)(s);case 5:m=$.sent,console.log("result=====",m),_=m||{},C=_.code,x=_.data,v=x===void 0?[]:x,le(!1),C===c.Bq?v.length>0&&(J=v[0]||{},te=J.children,he=te===void 0?[]:te,ae(he)):d.ZP.error(m.message||"\u83B7\u53D6\u7528\u6237\u5206\u7EC4\u5931\u8D25"),$.next=16;break;case 12:$.prev=12,$.t0=$.catch(2),d.ZP.error("\u83B7\u53D6\u7528\u6237\u5206\u7EC4\u5931\u8D25"),le(!1);case 16:case"end":return $.stop()}},t,null,[[2,12]])}));return function(){return u.apply(this,arguments)}}(),ir=function u(t,s){return s?t.reduce(function(m,_){var C,x=(C=_.name)===null||C===void 0?void 0:C.toLowerCase().includes(s.toLowerCase());if(x)m.push(o()({},_));else if(_.children&&_.children.length>0){var v=u(_.children,s);v.length>0&&m.push(o()(o()({},_),{},{children:v}))}return m},[]):t},or=ir(A,E),Ie=function(){var u=p()(f()().mark(function t(){var s,m,_,C,x,v,J,te,he,F;return f()().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return s={page_size:Fe,page_num:Se},j&&(s.user_group_id=j),k&&(s.user_name=k),I(!0),H.prev=4,H.next=7,(0,g.lE)(s);case 7:m=H.sent,console.log("res======",m),_=m||{},C=_.code,x=_.data,v=x===void 0?{}:x,J=v||{},te=J.data,he=J.total,F=he===void 0?0:he,C===c.Bq?(Ee(te||[]),nr(F),I(!1)):(d.ZP.error(m.message||"\u83B7\u53D6\u7528\u6237\u5217\u8868\u5931\u8D25"),I(!1)),H.next=18;break;case 14:H.prev=14,H.t0=H.catch(4),d.ZP.error("\u83B7\u53D6\u7528\u6237\u5217\u8868\u5931\u8D25"),I(!1);case 18:case"end":return H.stop()}},t,null,[[4,14]])}));return function(){return u.apply(this,arguments)}}(),dr=function(t){var s=t||{},m=s.id,_={id:m||Oe};(0,g.h8)(_).then(function(C){console.log("res=====",C);var x=C||{},v=x.code;v===c.Bq&&(d.ZP.success("\u5220\u9664\u6210\u529F"),je([]),Ie())})},jr=function(t){Je({recordData:o()({},t),visible:!0})},cr=function(){Te({visible:!0})},fr=function(t){Te({recordData:o()({},t),visible:!0})},hr=[{title:"\u5E8F\u53F7",dataIndex:"order",key:"order",width:80,align:"center",render:function(t,s,m){return(0,e.jsx)("span",{children:m+1})}},{title:"\u7528\u6237\u540D",dataIndex:"user_name",key:"user_name",width:150,align:"center",ellipsis:!0,render:function(t){return(0,e.jsx)(y.Z,{title:t||"",children:t||"--"})}},{title:"\u7528\u6237\u5206\u7EC4",dataIndex:"user_group_name",key:"user_group_name",width:150,align:"center",ellipsis:!0,render:function(t){return(0,e.jsx)(y.Z,{title:t||"",children:t||"--"})}},{title:"\u72B6\u6001",dataIndex:"status",key:"status",width:150,align:"center",ellipsis:!0,render:function(t){var s=t;return(0,e.jsx)(y.Z,{title:c.UO[s]||"",children:c.UO[s]||"--"})}},{title:"\u7528\u6237\u7C7B\u522B",dataIndex:"user_type",key:"user_type",width:150,align:"center",ellipsis:!0,render:function(t){var s=t;return(0,e.jsx)(y.Z,{title:c.AA[s]||"",children:c.AA[s]||"--"})}},{title:"\u4F18\u5148\u7EA7",dataIndex:"priority",key:"priority",width:150,align:"center",ellipsis:!0,render:function(t){var s=t;return(0,e.jsx)(y.Z,{title:c.DE[s]||"",children:c.DE[s]||"--"})}},{title:"\u6027\u522B",dataIndex:"gender",key:"gender",width:150,align:"center",ellipsis:!0,render:function(t){var s=t;return(0,e.jsx)(y.Z,{title:c.iI[s]||"",children:c.iI[s]||"--"})}},{title:"\u7535\u8BDD",dataIndex:"cell_phone",key:"cell_phone",width:180,align:"center",ellipsis:!0,render:function(t){return(0,e.jsx)(y.Z,{title:t||"",children:t||"--"})}},{title:"\u51FA\u751F\u65E5\u671F",dataIndex:"birthday",key:"birthday",width:180,align:"center",ellipsis:!0,render:function(t){return(0,e.jsx)(y.Z,{title:t||"",children:t||"--"})}},{title:"\u8EAB\u4EFD\u8BC1\u53F7",dataIndex:"identity_no",key:"identity_no",width:230,ellipsis:!0,align:"center",render:function(t){return(0,e.jsx)(y.Z,{title:t||"",children:t||"--"})}},{title:"\u90AE\u7BB1",dataIndex:"email",key:"email",width:150,align:"center",ellipsis:!0,render:function(t){return(0,e.jsx)(y.Z,{title:t||"",children:t||"--"})}},{title:"\u64CD\u4F5C",key:"actions",align:"center",width:160,fixed:"right",render:function(t,s){return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(b.ZP,{type:"link",onClick:function(){return fr(s)},children:"\u7F16\u8F91"}),(0,e.jsx)(T.Z,{title:"",description:"\u5220\u9664\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664?",onConfirm:function(){return dr(s)},okText:"\u5220\u9664",cancelText:"\u53D6\u6D88",children:(0,e.jsx)(b.ZP,{type:"link",children:"\u5220\u9664"})})]})}}],mr=function(t){t.length>0&&(D(t[0]),xe(1))},vr=function(t,s){xe(t),Ge(s)},pr=function(t,s){xe(1),Ge(s)},Cr=function(t){console.log("selectedRowKeys changed: ",t),je(t)},_r=function(){Ze()},gr=function(){Te({recordData:{},visible:!1}),Ie()},Dr=function(){var u=p()(f()().mark(function t(){var s,m,_,C,x,v,J,te;return f()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(!j){F.next=14;break}return s={page_size:Fe,page_num:Se},j&&(s.user_group_id=j),F.prev=3,F.next=6,(0,g.lE)(s);case 6:m=F.sent,_=m||{},C=_.data,x=C===void 0?{}:C,v=x||{},J=v.total,te=J===void 0?0:J,te>0?d.ZP.info("\u5F53\u524D\u5206\u7EC4\u4E0B\u6709\u7528\u6237\uFF0C\u8BF7\u5148\u5220\u9664\u7528\u6237",5):Er(),F.next=14;break;case 12:F.prev=12,F.t0=F.catch(3);case 14:case"end":return F.stop()}},t,null,[[3,12]])}));return function(){return u.apply(this,arguments)}}(),Er=function(){var u=p()(f()().mark(function t(){var s,m,_,C;return f()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.prev=0,s={id:j},v.next=4,(0,g.FU)(s);case 4:m=v.sent,_=m||{},C=_.code,C===c.Bq&&(d.ZP.success("\u5206\u7EC4\u5220\u9664\u6210\u529F"),D(null),Ze()),v.next=12;break;case 9:v.prev=9,v.t0=v.catch(0),d.ZP.error("\u5206\u7EC4\u5220\u9664\u5931\u8D25");case 12:case"end":return v.stop()}},t,null,[[0,9]])}));return function(){return u.apply(this,arguments)}}();return(0,e.jsxs)("div",{className:l.user_content,children:[(0,e.jsxs)("div",{className:l.left_content,children:[(0,e.jsxs)("div",{className:l.search,children:[(0,e.jsxs)("div",{style:{paddingBottom:"5px"},children:[(0,e.jsx)(b.ZP,{type:"text",style:{marginRight:"8px",fontSize:"16px"},icon:(0,e.jsx)(W.Z,{}),onClick:function(){return Ze()},title:"\u5237\u65B0"}),(0,e.jsx)(b.ZP,{type:"text",style:{marginRight:"8px",fontSize:"16px"},icon:(0,e.jsx)(ie.Z,{}),onClick:function(){return Xe(!0)},title:"\u65B0\u589E"}),(0,e.jsx)(T.Z,{title:"",description:"\u5220\u9664\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664?",onConfirm:function(){return Dr()},okText:"\u5220\u9664",cancelText:"\u53D6\u6D88",disabled:!j,children:(0,e.jsx)(b.ZP,{type:"text",style:{fontSize:"16px"},icon:(0,e.jsx)(G.Z,{}),title:"\u5220\u9664",disabled:!j})})]}),(0,e.jsx)(P.Z.Search,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",style:{marginBottom:6},onSearch:function(t){return $e(t)},onChange:function(t){return $e(t.target.value)}})]}),(0,e.jsx)("div",{className:l.tree_box,children:(0,e.jsx)(oe.Z,{spinning:Le,delay:100,children:(0,e.jsx)(U.Z,{treeData:or,titleField:"name",keyField:"id",childrenField:"children",defaultExpandAll:!0,onSelect:mr,selectedKeys:j?[j]:[],showIcon:!0,icon:(0,e.jsx)(q.Z,{style:{fontSize:"15px"}})})})})]}),(0,e.jsx)("div",{className:l.right_content,children:(0,e.jsxs)("div",{className:l.teble_content,children:[(0,e.jsxs)("div",{style:{marginBottom:16,display:"flex",justifyContent:"space-between"},children:[(0,e.jsx)("div",{children:(0,e.jsx)(b.ZP,{style:{marginRight:"8px"},onClick:function(){return cr()},children:"\u65B0\u5EFA\u7528\u6237"})}),(0,e.jsx)("div",{children:(0,e.jsxs)("div",{children:[(0,e.jsx)(P.Z.Search,{placeholder:"\u7528\u6237\u540D",value:k,onChange:function(t){return Y(t.target.value)},style:{width:300},onSearch:function(t){console.log("Search user:",t),xe(1)}}),(0,e.jsx)(b.ZP,{style:{marginRight:"8px",marginLeft:"8px"},icon:(0,e.jsx)(W.Z,{}),onClick:Ie,loading:M,title:"\u5237\u65B0"})]})})]}),(0,e.jsx)("div",{className:l.teble_box,children:(0,e.jsx)("div",{className:"images-list-table",children:(0,e.jsx)(R.Z,{columns:hr,dataSource:ue,loading:M,rowKey:"id",pagination:{current:Se,pageSize:Fe,total:tr,onChange:vr,onShowSizeChange:pr,showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:["10","20","50","100"],showTotal:function(t){return"\u5171".concat(t,"\u6761\u6570\u636E")}},scroll:{y:"max-content"},style:{height:"100%",display:"flex",flexDirection:"column"}})})})]})}),Qe&&(0,e.jsx)(Re.Z,{visible:Qe,type:1,title:"\u65B0\u589E\u7528\u6237\u5206\u7EC4",selectedOrg:j,onCancel:function(){Xe(!1)},onOk:_r,orgTreeData:A}),Ye.visible&&(0,e.jsx)(Ue,{selectedOrg:j,orgTreeData:A,currentUserInfo:Ye,onCancel:function(){Te({recordData:{},visible:!1})},onOk:function(){gr()}}),(0,e.jsx)(de,{visible:sr.visible,onCancel:function(){Je({recordData:{},visible:!1})},onOk:function(){}})]})},De=be},86231:function(Ce,K,r){var Q=r(15009),o=r.n(Q),ne=r(99289),f=r.n(ne),S=r(5574),p=r.n(S),X=r(16711),h=r(39231),c=r(86587),U=r(68872),g=r(2975),W=r(31800),ie=r(56558),G=r(77683),q=r(67294),d=r(85893),y=function(T){var P=T.title,oe=P===void 0?"\u65B0\u589E\u5206\u7EC4":P,R=T.visible,n=T.onCancel,l=T.onOk,i=T.orgTreeData,a=T.selectedOrg,Ae=T.type,_e=(0,q.useState)(!1),me=p()(_e,2),Me=me[0],ge=me[1],ye=c.Z.useForm(),e=p()(ye,1),ee=e[0];(0,q.useEffect)(function(){if(a){var de={parent_id:a};ee.setFieldsValue(de)}},[R,ee,a]);var Ue=function(){ee.submit()},Re=function(){ee.resetFields(),n()},we=function(){var de=f()(o()().mark(function be(){var De,ve,B,w,A,ae,z,re;return o()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,ee.validateFields();case 2:return De=D.sent,ge(!0),D.prev=4,console.log("values=====",De),ve=De||{},B=ve.name,w=ve.parent_id,A={name:B,type:Ae,parent_id:w},D.next=10,(0,h.EJ)(A);case 10:ae=D.sent,ge(!1),z=ae||{},re=z.code,re===X.Bq&&(U.ZP.success("\u6DFB\u52A0\u6210\u529F"),ee.resetFields(),n(),l()),D.next=20;break;case 16:D.prev=16,D.t0=D.catch(4),ge(!1),U.ZP.error("\u521B\u5EFA\u7528\u6237\u5206\u7EC4\u5931\u8D25");case 20:case"end":return D.stop()}},be,null,[[4,16]])}));return function(){return de.apply(this,arguments)}}();return(0,d.jsx)(g.Z,{title:oe,open:R,onOk:Ue,onCancel:Re,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",centered:!0,destroyOnHidden:!0,width:600,footer:null,children:(0,d.jsx)("div",{style:{height:"300px"},children:(0,d.jsxs)(c.Z,{form:ee,labelCol:{span:5},wrapperCol:{span:18},layout:"horizontal",onFinish:we,style:{paddingTop:"20px",paddingBottom:"20px"},children:[(0,d.jsx)(c.Z.Item,{name:"name",label:"\u5206\u7EC4\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u7EC4\u540D!"}],children:(0,d.jsx)(W.Z,{placeholder:"\u8BF7\u8F93\u5165\u5206\u7EC4\u540D"})}),(0,d.jsx)(c.Z.Item,{name:"parent_id",label:"\u7236\u5206\u7EC4\u540D",children:(0,d.jsx)(ie.Z,{showSearch:!0,allowClear:!0,treeDefaultExpandAll:!0,placeholder:"\u8BF7\u9009\u62E9\u7236\u5206\u7EC4\u540D",treeData:i,fieldNames:{label:"name",value:"id",children:"children"}})}),(0,d.jsxs)(c.Z.Item,{label:null,children:[(0,d.jsx)(G.ZP,{type:"primary",htmlType:"submit",style:{marginRight:"20px"},loading:Me,children:"\u786E\u5B9A"}),(0,d.jsx)(G.ZP,{onClick:n,children:"\u53D6\u6D88"})]})]})})})};K.Z=y},39231:function(Ce,K,r){r.d(K,{EJ:function(){return X},FU:function(){return g},GA:function(){return T},cn:function(){return q},h8:function(){return oe},ib:function(){return c},lE:function(){return ie},uz:function(){return y}});var Q=r(15009),o=r.n(Q),ne=r(99289),f=r.n(ne),S=r(6510),p="/api/nex/v1";function X(n){return h.apply(this,arguments)}function h(){return h=f()(o()().mark(function n(l){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.request)("".concat(p,"/user/device/group/add"),{method:"POST",data:l}));case 1:case"end":return a.stop()}},n)})),h.apply(this,arguments)}function c(n){return U.apply(this,arguments)}function U(){return U=f()(o()().mark(function n(l){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.request)("".concat(p,"/user/device/group/query"),{method:"POST",data:l}));case 1:case"end":return a.stop()}},n)})),U.apply(this,arguments)}function g(n){return W.apply(this,arguments)}function W(){return W=f()(o()().mark(function n(l){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.request)("".concat(p,"/user/device/group/delete"),{method:"POST",data:l}));case 1:case"end":return a.stop()}},n)})),W.apply(this,arguments)}function ie(n){return G.apply(this,arguments)}function G(){return G=f()(o()().mark(function n(l){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.request)("".concat(p,"/user/select/page"),{method:"POST",data:l}));case 1:case"end":return a.stop()}},n)})),G.apply(this,arguments)}function q(n){return d.apply(this,arguments)}function d(){return d=f()(o()().mark(function n(l){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.request)("".concat(p,"/user/add"),{method:"POST",data:l}));case 1:case"end":return a.stop()}},n)})),d.apply(this,arguments)}function y(n){return b.apply(this,arguments)}function b(){return b=f()(o()().mark(function n(l){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.request)("".concat(p,"/user/update"),{method:"POST",data:l}));case 1:case"end":return a.stop()}},n)})),b.apply(this,arguments)}function T(n){return P.apply(this,arguments)}function P(){return P=f()(o()().mark(function n(l){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.request)("".concat(p,"/user/query"),{method:"POST",data:l}));case 1:case"end":return a.stop()}},n)})),P.apply(this,arguments)}function oe(n){return R.apply(this,arguments)}function R(){return R=f()(o()().mark(function n(l){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.request)("".concat(p,"/user/delete"),{method:"POST",data:l}));case 1:case"end":return a.stop()}},n)})),R.apply(this,arguments)}}}]);