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
17 KiB

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