"use strict";(self.webpackChunkboluo_admin=self.webpackChunkboluo_admin||[]).push([[583],{85687:function(F,c,e){e.r(c);var P=e(90228),E=e.n(P),h=e(87999),C=e.n(h),R=e(48305),p=e.n(R),x=e(93218),U=e(19191),y=e(90103),v=e(49973),S=e(67929),O=e(4481),s=e(75271),u=e(11039),f=e(29078),_=e(52676),T=[{label:"\u6B63\u5E38",value:0},{label:"\u6682\u505C",value:1}],A=function(){var L=(0,s.useState)(!1),b=p()(L,2),B=b[0],d=b[1],g=(0,s.useState)(),D=p()(g,2),K=D[0],W=D[1],I=(0,s.useRef)(),M=(0,s.useRef)(),j=[{title:"\u7FA4\u540D\u79F0",dataIndex:"imGroupNick",valueType:"textarea",copyable:!0},{title:"\u7FA4ID",dataIndex:"id",valueType:"textarea",copyable:!0},{title:"\u6240\u5C5E\u57CE\u5E02",dataIndex:"city",valueType:"textarea",renderText:function(a){return u.JO.get(a)},renderFormItem:function(){return(0,_.jsx)(O.Z,{showSearch:!0,allowClear:!0,options:u.ZD,filterOption:function(r,t){var o;return((o=t==null?void 0:t.label)!==null&&o!==void 0?o:"").toLowerCase().includes(r.toLowerCase())}})}},{title:"\u7FA4\u72B6\u6001",dataIndex:"disable",valueType:"textarea",renderText:function(a){return a?"\u6682\u505C":"\u6B63\u5E38"},renderFormItem:function(){return(0,_.jsx)(O.Z,{showSearch:!0,allowClear:!0,options:T})}},{title:"\u673A\u5668\u4EBAID",dataIndex:"robotId",valueType:"textarea"},{title:"\u673A\u5668\u4EBA\u5FAE\u4FE1\u6635\u79F0",dataIndex:"robotImNick",valueType:"textarea"},{title:"\u673A\u5668\u4EBA\u5FAE\u4FE1\u8D26\u53F7",dataIndex:"robotImNo",valueType:"textarea"},{title:"\u64CD\u4F5C",valueType:"option",render:function(a,r){return(0,_.jsx)("a",{onClick:function(){d(!0),W(r)},children:"\u4FEE\u6539"},"config")}}];return(0,_.jsxs)(x._z,{children:[(0,_.jsx)(U.Z,{headerTitle:"\u67E5\u8BE2\u8868\u683C",actionRef:I,rowKey:"key",search:{labelWidth:120,collapsed:!1,collapseRender:!1},request:f.hI,columns:j}),(0,_.jsxs)(y.Y,{title:"\u66F4\u65B0\u7FA4\u4FE1\u606F",width:"400px",formRef:M,open:B,onOpenChange:d,onFinish:function(){var l=C()(E()().mark(function a(r){var t,o,i,m;return E()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return o={id:K.id,city:(t=r.city)===null||t===void 0?void 0:t.value,disable:r.disable},console.log("update confirm",r,o),n.prev=2,n.next=5,(0,f.tF)(o);case 5:(i=I.current)===null||i===void 0||i.reload(),(m=M.current)===null||m===void 0||m.resetFields(),n.next=11;break;case 9:n.prev=9,n.t0=n.catch(2);case 11:d(!1);case 12:case"end":return n.stop()}},a,null,[[2,9]])}));return function(a){return l.apply(this,arguments)}}(),children:[(0,_.jsx)(v.Z.SearchSelect,{name:"city",mode:"single",label:"\u6240\u5C5E\u57CE\u5E02",options:u.ZD}),(0,_.jsx)(v.Z,{name:"disable",label:"\u7FA4\u72B6\u6001",options:T})]})]})};c.default=A}}]);
