"use strict";(self.webpackChunkboluo_admin=self.webpackChunkboluo_admin||[]).push([[880],{90620:function(N,m,e){e.r(m);var R=e(90228),E=e.n(R),b=e(87999),h=e.n(b),C=e(48305),c=e.n(C),U=e(93218),x=e(19191),A=e(90103),L=e(49973),Z=e(67929),v=e(4481),B=e(16483),T=e.n(B),s=e(75271),f=e(11039),p=e(55603),O=e(29078),l=e(52676),u=[{label:"\u6B63\u5E38",value:0},{label:"\u5C01\u7981",value:1}],y=function(){var g=(0,s.useState)(!1),D=c()(g,2),K=D[0],d=D[1],W=(0,s.useState)(),M=c()(W,2),j=M[0],S=M[1],P=(0,s.useRef)(),I=(0,s.useRef)(),F=[{title:"\u4E3B\u64AD\u6635\u79F0",dataIndex:"nickName",valueType:"textarea"},{title:"\u4E3B\u64ADID",dataIndex:"userId",valueType:"textarea",copyable:!0},{title:"\u4E3B\u64AD\u624B\u673A\u53F7",dataIndex:"userPhone",valueType:"textarea",copyable:!0},{title:"\u6CE8\u518C\u65F6\u95F4",dataIndex:"created",valueType:"dateTime",renderText:function(n){return T()(Number(n)).format(p.T)},search:!1},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"lastLoginDate",valueType:"textarea",search:!1,renderText:function(n){return T()(Number(n)).format(p.T)}},{title:"\u8D26\u53F7\u72B6\u6001",dataIndex:"status",valueType:"textarea",renderText:function(n){var _;return(_=u.find(function(a){return a.value===n}))===null||_===void 0?void 0:_.label},renderFormItem:function(){return(0,l.jsx)(v.Z,{showSearch:!0,allowClear:!0,options:u})}},{title:"\u57CE\u5E02",dataIndex:"city",valueType:"textarea",renderText:function(n){return f.JO.get(n)},renderFormItem:function(){return(0,l.jsx)(v.Z,{showSearch:!0,allowClear:!0,options:f.ZD,filterOption:function(_,a){var o;return((o=a==null?void 0:a.label)!==null&&o!==void 0?o:"").toLowerCase().includes(_.toLowerCase())}})}},{title:"\u64CD\u4F5C",valueType:"option",render:function(n,_){return(0,l.jsx)("a",{onClick:function(){d(!0),S(_)},children:"\u4FEE\u6539"},"config")}}];return(0,l.jsxs)(U._z,{children:[(0,l.jsx)(x.Z,{headerTitle:"\u67E5\u8BE2\u8868\u683C",actionRef:P,rowKey:"key",search:{labelWidth:120,collapsed:!1,collapseRender:!1},request:O.q4,columns:F}),(0,l.jsx)(A.Y,{title:"\u66F4\u65B0\u4E3B\u64AD\u4FE1\u606F",width:"400px",formRef:I,open:K,onOpenChange:d,onFinish:function(){var r=h()(E()().mark(function n(_){var a,o,i;return E()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a={userId:j.userId,status:_.status},console.log("update confirm",_,a),t.prev=2,t.next=5,(0,O.FM)(a);case 5:(o=P.current)===null||o===void 0||o.reload(),(i=I.current)===null||i===void 0||i.resetFields(),t.next=11;break;case 9:t.prev=9,t.t0=t.catch(2);case 11:d(!1);case 12:case"end":return t.stop()}},n,null,[[2,9]])}));return function(n){return r.apply(this,arguments)}}(),children:(0,l.jsx)(L.Z,{name:"status",label:"\u8D26\u53F7\u72B6\u6001",options:u,rules:[{required:!0,message:"\u5FC5\u586B\u9879"}]})})]})};m.default=y}}]);