"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4469],{61786:function(I,a,e){var o=e(88351),r=e(87841),E=e(93236),i=e(8263),P=e(62086),M=["fieldProps","proFieldProps"],C=["fieldProps","proFieldProps"],c="text",u=function(t){var m=t.fieldProps,_=t.proFieldProps,D=(0,r.Z)(t,M);return(0,P.jsx)(i.Z,(0,o.Z)({valueType:c,fieldProps:m,filedConfig:{valueType:c},proFieldProps:_},D))},f=function(t){var m=t.fieldProps,_=t.proFieldProps,D=(0,r.Z)(t,C);return(0,P.jsx)(i.Z,(0,o.Z)({valueType:"password",fieldProps:m,proFieldProps:_,filedConfig:{valueType:c}},D))},v=u;v.Password=f,v.displayName="ProFormComponent",a.Z=v},84295:function(I,a,e){e.d(a,{j:function(){return E}});var o=e(14224),r=typeof o!="undefined"&&o.versions!=null&&o.versions.node!=null,E=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.matchMedia!="undefined"&&!r}},45635:function(I,a,e){e.r(a);var o=e(25359),r=e.n(o),E=e(57213),i=e.n(E),P=e(49811),M=e.n(P),C=e(54306),c=e.n(C),u=e(93236),f=e(61385),v=e(28931),T=e(61786),t=e(87708),m=e(90627),_=e(62086),D=m.Z.DeviceController.deviceItems,B=m.Z.UserController.userItems;a.default=function(O){var j=O.values,W=O.modalOpenState,x=O.onModalOpenState,F=O.onSubmit,b=(0,u.useRef)(),S=(0,u.useRef)(),U=(0,u.useState)(!1),A=c()(U,2),w=A[0],L=A[1];(0,u.useEffect)(function(){var s;(s=b.current)===null||s===void 0||s.setFieldsValue(j)},[j]);var g=[{title:"\u6635\u79F0",dataIndex:"nickname",search:!1},{title:"\u624B\u673A\u53F7",dataIndex:"mobile",search:!1}];return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(v.Y,{title:"\u5206\u7EC4-\u7ED1\u5B9A\u7528\u6237",formRef:b,submitter:{searchConfig:{resetText:"\u91CD\u7F6E"},resetButtonProps:{onClick:function(){var n;(n=b.current)===null||n===void 0||n.resetFields()}}},initialValues:j,onFinish:F,open:W,onOpenChange:x,children:[(0,_.jsx)(T.Z,{hidden:!0,width:"md",name:"id"}),(0,_.jsx)(t.Z,{actionRef:S,rowKey:"id",search:{defaultCollapsed:!1},request:function(){var s=M()(r()().mark(function n(l,h,R){var y,d,K;return r()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,B(i()(i()({},l),{},{sorter:h,filter:R}));case 2:return y=p.sent,d=y.data,K=y.success,p.abrupt("return",{data:(d==null?void 0:d.items)||[],total:d==null?void 0:d.total,success:K});case 6:case"end":return p.stop()}},n)}));return function(n,l,h){return s.apply(this,arguments)}}(),columns:g,rowSelection:{onChange:function(n,l){L(l)}},tableAlertRender:function(n){var l=n.selectedRowKeys,h=n.selectedRows,R=n.onCleanSelected;return(0,_.jsxs)(f.Z,{size:24,children:[(0,_.jsxs)("span",{children:["\u5DF2\u9009 ",l.length," \u9879"]}),(0,_.jsx)("span",{children:(0,_.jsx)("a",{style:{marginInlineStart:8},onClick:R,children:"\u53D6\u6D88\u9009\u62E9"})})]})},tableAlertOptionRender:function(n){var l=n.selectedRowKeys,h=n.selectedRows,R=n.onCleanSelected;return(0,_.jsx)(f.Z,{size:16})},pagination:{showSizeChanger:!0}})]})})}}}]);
