You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
16 KiB

3 months ago
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[526],{40110:function(Y,U,r){var c=r(1413),i=r(67294),B=r(509),v=r(91146),R=function(b,a){return i.createElement(v.Z,(0,c.Z)((0,c.Z)({},b),{},{ref:a,icon:B.Z}))},E=i.forwardRef(R);U.Z=E},58371:function(Y,U,r){r.r(U);var c=r(15009),i=r.n(c),B=r(97857),v=r.n(B),R=r(99289),E=r.n(R),_=r(81072),b=r(90930),a=r(67539),P=r(35312),x=r(66309),y=r(67294),I=r(42767),m=r(85893),j=function(){var h=(0,P.useParams)(),u=h.code,g=(0,y.useRef)();(0,y.useEffect)(function(){var Z;(Z=g.current)===null||Z===void 0||Z.reload()},[u]);var L=[{title:"\u7528\u6237id",dataIndex:"userId",valueType:"textarea",hideInTable:!0},{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"nickname",valueType:"textarea",renderText:function(t,z){return(0,m.jsx)(I.Z,{data:z})}},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",hideInSearch:!0,renderText:function(t){return t?(0,m.jsx)(x.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,m.jsx)(x.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange",hideInSearch:!0}];return(0,m.jsx)(b._z,{children:(0,m.jsx)(a.Z,{actionRef:g,request:function(){var Z=E()(i()().mark(function t(z){var G,H,N;return i()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,(0,_.pb)(v()(v()({},z),{},{appCode:u}));case 2:return N=C.sent,C.abrupt("return",{data:(G=N.data)===null||G===void 0?void 0:G.data,total:(H=N.data)===null||H===void 0?void 0:H.total,success:!0});case 4:case"end":return C.stop()}},t)}));return function(t){return Z.apply(this,arguments)}}(),columns:L})})};U.default=j},42767:function(Y,U,r){r.d(U,{Z:function(){return N}});var c=r(5574),i=r.n(c),B=r(55241),v=r(2487),R=r(71230),E=r(7134),_=r(67294),b=r(52043),a=r(15009),P=r.n(a),x=r(97857),y=r.n(x),I=r(99289),m=r.n(I),j=r(40110),f=r(67539),h=r(55102),u=r(42075),g=r(14726),L=r(17788),Z=r(4575),t=r(85893),z=function(C){var ee=(0,_.useState)(),V=i()(ee,2),k=V[0],e=V[1],s=(0,_.useState)(),d=i()(s,2),n=d[0],l=d[1],K=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",ellipsis:!0,hideInSearch:!0,filterDropdown:function(o){var p=o.setSelectedKeys,D=o.selectedKeys,M=o.confirm,O=o.clearFilters;return(0,t.jsxs)("div",{style:{padding:8},children:[(0,t.jsx)(h.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:D[0],onChange:function(A){return p(A.target.value?[A.target.value]:[])},onPressEnter:function(){return M()},style:{marginBottom:8,display:"block"}}),(0,t.jsxs)(u.Z,{children:[(0,t.jsx)(g.ZP,{onClick:function(){return M()},type:"primary",children:"\u641C\u7D22"}),(0,t.jsx)(g.ZP,{onClick:function(){return O&&O()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(o,p){return typeof o=="string"&&typeof(p==null?void 0:p.appName)=="string"?p.appName.includes(o):!1},filterIcon:function(o){return(0,t.jsx)(j.Z,{style:{color:o?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,ellipsis:!0,filterDropdown:function(o){var p=o.setSelectedKeys,D=o.selectedKeys,M=o.confirm,O=o.clearFilters;return(0,t.jsxs)("div",{style:{padding:8},children:[(0,t.jsx)(h.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:D[0],onChange:function(A){return p(A.target.value?[A.target.value]:[])},onPressEnter:function(){return M()},style:{marginBottom:8,display:"block"}}),(0,t.jsxs)(u.Z,{children:[(0,t.jsx)(g.ZP,{onClick:function(){return M()},type:"primary",children:"\u641C\u7D22"}),(0,t.jsx)(g.ZP,{onClick:function(){return O&&O()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(o,p){return typeof o=="string"&&typeof(p==null?void 0:p.packageName)=="string"?p.packageName.includes(o):!1},filterIcon:function(o){return(0,t.jsx)(j.Z,{style:{color:o?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}}],S=function(){var T=m()(P()().mark(