"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1418],{68161:function(f,v,n){n.r(v);var x=n(26068),u=n.n(x),T=n(67825),c=n.n(T),j=n(90228),m=n.n(j),A=n(87999),h=n.n(A),M=n(48305),E=n.n(M),b=n(19869),p=n(50959),P=n(98984),R=n(16030),B=n(35384),D=n(49523),C=n(52495),d=n(11527),L=["type","defaultRender","formItemProps","fieldProps"],W=["type","defaultRender","formItemProps","fieldProps"],K=function(){var U=(0,p.useRef)(),g=(0,p.useState)([]),y=E()(g,2),S=y[0],F=y[1],G=(0,p.useState)(null),I=E()(G,2),J=I[0],N=I[1],$=function(){var a=h()(m()().mark(function _(e){var r,o,s;return m()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,C.rb)({userId:e});case 2:r=l.sent,o=r.success,s=r.data,s.records.map(function(t){t.userName=t.userName+" "+t.phone}),F(s.records);case 7:case"end":return l.stop()}},_)}));return function(e){return a.apply(this,arguments)}}(),Z=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u7528\u6237\u4FE1\u606F",dataIndex:"userId",valueType:"text",render:function(_,e){return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{children:["\u7528\u6237ID:",e==null?void 0:e.userId]}),(0,d.jsxs)("div",{children:["\u7528\u6237\u540D\uFF1A",e==null?void 0:e.userName]}),(0,d.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",e==null?void 0:e.phone]}),(0,d.jsxs)("div",{children:["\u7B49\u7EA7\uFF1A",e==null?void 0:e.level]})]})},renderFormItem:function(_,e,r){var o=e.type,s=e.defaultRender,i=e.formItemProps,l=e.fieldProps,t=c()(e,L);return(0,d.jsx)(P.Z,u()(u()({},l),{},{allowClear:!0,showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u6216\u624B\u673A\u53F7",style:{width:"100%"},filterOption:!1,onSearch:function(O){O&&$(O)},fieldNames:{label:"userName",value:"id"},options:S}))}},{title:"\u8BB0\u5F55\u540D\u79F0",dataIndex:"recordName",valueType:"text",search:!1},{title:"\u51BB\u7ED3\u4F59\u989D",dataIndex:"freezePoints",valueType:"text",search:!1},{title:"\u7C7B\u578B",dataIndex:"pointType",valueType:"text",search:!1,render:function(_,e){return _==1?"\u6536\u76CA":"\u4F59\u989D"}},{title:"\u8BB0\u5F55\u7C7B\u578B",dataIndex:"type",valueType:"text",search:!0,render:function(_,e){var r,o=D;return(r=o.find(function(s){return s.id==e.type}))===null||r===void 0?void 0:r.name},renderFormItem:function(_,e,r){var o=e.type,s=e.defaultRender,i=e.formItemProps,l=e.fieldProps,t=c()(e,W);return(0,d.jsx)(P.Z,u()(u()({},l),{},{allowClear:!0,style:{width:"100%"},filterOption:!1,fieldNames:{label:"name",value:"id"},options:D}))}},{title:"\u5907\u6CE8",dataIndex:"remarks",valueType:"text",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",valueType:"dateRange",search:{transform:function(_){return{createTimeBegin:_[0],createTimeEnd:_[1]}}},render:function(_,e){return e==null?void 0:e.createTime}}];return(0,d.jsx)(R._z,{children:(0,d.jsx)("div",{style:{width:"100%",float:"right"},children:(0,d.jsx)(B.Z,{actionRef:U,rowKey:"id",search:{labelWidth:120,defaultCollapsed:!1},toolBarRender:function(){return[]},request:function(){var a=h()(m()().mark(function _(e,r,o){var s,i;return m()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return N(e),t.next=3,(0,b.xQ)(e);case 3:return s=t.sent,i=s.data,t.abrupt("return",{data:(i==null?void 0:i.records)||[],total:i==null?void 0:i.total});case 6:case"end":return t.stop()}},_)}));return function(_,e,r){return a.apply(this,arguments)}}(),columns:Z},"logList")})})};v.default=K},49523:function(f){f.exports=JSON.parse('[{"name":"\u5145\u503C","id":1100},{"name":"\u540E\u53F0\u5145\u503C","id":1200},{"name":"\u540E\u53F0\u5212\u6263","id":1201},{"name":"\u8D2D\u4E70\u5546\u54C1","id":2100},{"name":"\u5546\u54C1\u63A8\u5E7F","id":2110},{"name":"\u5546\u54C1\u57F9\u80B2\u6D25\u8D34","id":2120},{"name":"\u5546\u54C1\u670D\u52A1\u6D25\u8D34","id":2130},{"name":"\u8D2D\u4E70\u5546\u54C1-\u9000\u5355","id":2200},{"name":"\u5546\u54C1\u63A8\u5E7F-\u9000\u5355","id":2210},{"name":"\u5546\u54C1\u57F9\u80B2\u6D25\u8D34-\u9000\u5355","id":2220},{"name":"\u5546\u54C1\u670D\u52A1\u6D25\u8D34-\u9000\u5355","id":2230},{"name":"\u5145\u7535\u6869\u6536\u76CA","id":3100},{"name":"\u5145\u7535\u6869\u63A8\u5E7F","id":3110},{"name":"\u5145\u7535\u6869\u57F9\u80B2\u6D25\u8D34","id":3120},{"name":"\u5145\u7535\u6869\u670D\u52A1\u6D25\u8D34","id":3130},{"name":"\u5145\u7535\u6869\u6536\u76CA-\u9000\u5355","id":3200},{"name":"\u5145\u7535\u6869\u63A8\u5E7F-\u9000\u5355","id":3210},{"name":"\u5145\u7535\u6869\u57F9\u80B2\u6D25\u8D34-\u9000\u5355","id":3220},{"name":"\u5145\u7535\u6869\u670D\u52A1\u6D25\u8D34-\u9000\u5355","id":3230},{"name":"\u63D0\u73B0","id":4100},{"name":"\u63D0\u73B0\u5931\u8D25","id":4200},{"name":"\u8F6C\u8D60\u4ED8\u6B3E","id":5100},{"name":"\u8F6C\u8D60\u6536\u6B3E","id":5200},{"name":"\u8F6C\u6362\u51CF\u5C11","id":6100},{"name":"\u8F6C\u6362\u589E\u52A0","id":6200}]')}}]);
