"use strict";(self.webpackChunkboluo_admin=self.webpackChunkboluo_admin||[]).push([[209],{7690:function(N,i,e){e.r(i);var M=e(90228),m=e.n(M),P=e(87999),y=e.n(P),C=e(48305),c=e.n(C),R=e(93218),U=e(19191),A=e(90103),L=e(49973),G=e(67929),p=e(4481),B=e(16483),E=e.n(B),d=e(75271),v=e(11039),T=e(55603),I=e(29078),_=e(52676),f=[{label:"\u6B63\u5E38",value:0},{label:"\u6682\u505C",value:1}],g=function(){var j=(0,d.useState)(!1),b=c()(j,2),K=b[0],u=b[1],W=(0,d.useState)(),x=c()(W,2),O=x[0],S=x[1],D=(0,d.useRef)(),h=(0,d.useRef)(),F=[{title:"\u804C\u4F4D\u540D\u79F0",dataIndex:"title",valueType:"textarea"},{title:"\u804C\u4F4D\u63CF\u8FF0",dataIndex:"sourceText",valueType:"textarea",colSize:2,search:!1,copyable:!0,renderText:function(a){return a==null?void 0:a.substring(0,30)}},{title:"\u804C\u4F4DID",dataIndex:"jobId",valueType:"textarea",copyable:!0},{title:"\u57CE\u5E02",dataIndex:"cityCode",valueType:"textarea",renderText:function(a){return v.JO.get(a)},renderFormItem:function(){return(0,_.jsx)(p.Z,{showSearch:!0,allowClear:!0,options:v.ZD,filterOption:function(o,r){var l;return((l=r==null?void 0:r.label)!==null&&l!==void 0?l:"").toLowerCase().includes(o.toLowerCase())}})}},{title:"\u6240\u5728\u7FA4\u540D\u79F0",dataIndex:"imGroupNick",valueType:"textarea",copyable:!0},{title:"\u7FA4ID",dataIndex:"blGroupId",valueType:"textarea",search:!1,copyable:!0},{title:"\u53D1\u5E03\u4EBA\u6635\u79F0",dataIndex:"publisher",valueType:"textarea",copyable:!0},{title:"\u53D1\u5E03\u4EBAID",dataIndex:"blPublisherId",valueType:"textarea",copyable:!0},{title:"\u53D1\u5E03\u4EBA\u5FAE\u4FE1\u8D26\u53F7",dataIndex:"publisherAcctNo",valueType:"textarea",copyable:!0},{title:"\u53D1\u5E03\u7FA4\u6570\u91CF",dataIndex:"relateGroupCount",valueType:"textarea",search:!1},{title:"\u673A\u5668\u4EBAID",dataIndex:"robotId",valueType:"textarea"},{title:"\u673A\u5668\u4EBA\u5FAE\u4FE1\u6635\u79F0",dataIndex:"robotImNick",valueType:"textarea",search:!1},{title:"\u673A\u5668\u4EBA\u5FAE\u4FE1\u8D26\u53F7",dataIndex:"robotImNo",valueType:"textarea",search:!1},{title:"\u901A\u544A\u72B6\u6001",dataIndex:"disable",valueType:"textarea",renderText:function(a){return a?"\u6682\u505C":"\u6B63\u5E38"},renderFormItem:function(){return(0,_.jsx)(p.Z,{showSearch:!0,allowClear:!0,options:f})}},{title:"\u5C0F\u7A0B\u5E8F\u7528\u6237 id",dataIndex:"appUid",valueType:"textarea",search:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created",valueType:"dateTime",renderText:function(a){return E()(Number(a)).format(T.T)},search:!1},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated",valueType:"dateTime",renderText:function(a){return E()(Number(a)).format(T.T)},search:!1},{title:"\u64CD\u4F5C",valueType:"option",fixed:"right",width:100,align:"center",render:function(a,o){return(0,_.jsx)("a",{onClick:function(){u(!0),S(o)},children:"\u4FEE\u6539"},"config")}}];return(0,_.jsxs)(R._z,{children:[(0,_.jsx)(U.Z,{headerTitle:"\u67E5\u8BE2\u8868\u683C",actionRef:D,rowKey:"key",search:{labelWidth:120,collapsed:!1,collapseRender:!1},request:I.Go,columns:F,scroll:{x:"max-content"}}),(0,_.jsx)(A.Y,{title:"\u66F4\u65B0\u901A\u544A\u4FE1\u606F",width:"400px",formRef:h,open:K,onOpenChange:u,onFinish:function(){var t=y()(m()().mark(function a(o){var r,l,s;return m()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r={id:O.id,jobId:O.jobId,disable:Number(o.disable)!==0},console.log("update confirm",o,r),n.prev=2,n.next=5,(0,I.$y)(r);case 5:(l=D.current)===null||l===void 0||l.reload(),(s=h.current)===null||s===void 0||s.resetFields(),n.next=11;break;case 9:n.prev=9,n.t0=n.catch(2);case 11:u(!1);case 12:case"end":return n.stop()}},a,null,[[2,9]])}));return function(a){return t.apply(this,arguments)}}(),children:(0,_.jsx)(L.Z,{name:"disable",label:"\u901A\u544A\u72B6\u6001",options:f})})]})};i.default=g}}]);
