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.
 
 
 

1 lines
7.8 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[526],{40110:function(q,I,r){var l=r(1413),v=r(67294),C=r(509),P=r(91146),T=function(y,S){return v.createElement(P.Z,(0,l.Z)((0,l.Z)({},y),{},{ref:S,icon:C.Z}))},h=v.forwardRef(T);I.Z=h},58371:function(q,I,r){r.r(I);var l=r(15009),v=r.n(l),C=r(97857),P=r.n(C),T=r(99289),h=r.n(T),W=r(81072),y=r(58125),S=r(90930),L=r(67539),F=r(35312),K=r(66309),N=r(67294),D=r(42767),p=r(85893),j=function(){var Z=(0,F.useParams)(),V=Z.code,X=(0,N.useRef)();(0,N.useEffect)(function(){var c;(c=X.current)===null||c===void 0||c.reload()},[V]);var G=[{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(i,$){return(0,p.jsx)(D.Z,{data:$})}},{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(i){return i?(0,p.jsx)(K.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,p.jsx)(K.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"income",renderText:function(i){return(0,y.P)(i)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"realMoney",renderText:function(i){return(0,y.D)(i)}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange",hideInSearch:!0}];return(0,p.jsx)(S._z,{children:(0,p.jsx)(L.Z,{actionRef:X,request:function(){var c=h()(v()().mark(function i($){var B,m,R;return v()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,(0,W.pb)(P()(P()({},$),{},{appCode:V}));case 2:return R=b.sent,b.abrupt("return",{data:(B=R.data)===null||B===void 0?void 0:B.data,total:(m=R.data)===null||m===void 0?void 0:m.total,success:!0});case 4:case"end":return b.stop()}},i)}));return function(i){return c.apply(this,arguments)}}(),columns:G})})};I.default=j},66309:function(q,I,r){r.d(I,{Z:function(){return ce}});var l=r(67294),v=r(93967),C=r.n(v),P=r(98423),T=r(98787),h=r(69760),W=r(96159),y=r(45353),S=r(53124),L=r(54548),F=r(10274),K=r(14747),N=r(45503),D=r(91945);const p=e=>{const{paddingXXS:o,lineWidth:a,tagPaddingHorizontal:t,componentCls:n,calc:u}=e,s=u(t).sub(a).equal(),E=u(o).sub(a).equal();return{[n]:Object.assign(Object.assign({},(0,K.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,L.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:E,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:s}}),[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},j=e=>{const{lineWidth:o,fontSizeIcon:a,calc:t}=e,n=e.fontSizeSM;return(0,N.TS)(e,{tagFontSize:n,tagLineHeight:(0,L.bf)(t(e.lineHeightSM).mul(n).equal()),tagIconSize:t(a).sub(t(o).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},z=e=>({defaultBg:new F.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var Z=(0,D.I$)("Tag",e=>{const o=j(e);return p(o)},z),V=function(e,o){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n<t.length;n++)o.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(a[t[n]]=e[t[n]]);return a},G=l.forwardRef((e,o)=>{const{prefixCls:a,style:t,className:n,checked:u,onChange:s,onClick:E}=e,f=V(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:U,tag:g}=l.useContext(S.E_),A=H=>{s==null||s(!u),E==null||E(H)},O=U("tag",a),[Q,J,_]=Z(O),Y=C()(O,`${O}-checkable`,{[`${O}-checkable-checked`]:u},g==null?void 0:g.className,n,J,_);return Q(l.createElement("span",Object.assign({},f,{ref:o,style:Object.assign(Object.assign({},t),g==null?void 0:g.style),className:Y,onClick:A})))}),c=r(98719);const i=e=>(0,c.Z)(e,(o,a)=>{let{textColor:t,lightBorderColor:n,lightColor:u,darkColor:s}=a;return{[`${e.componentCls}${e.componentCls}-${o}`]:{color:t,background:u,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:s,borderColor:s},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var $=(0,D.bk)(["Tag","preset"],e=>{const o=j(e);return i(o)},z);function B(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const m=(e,o,a)=>{const t=B(a);return{[`${e.componentCls}${e.componentCls}-${o}`]:{color:e[`color${a}`],background:e[`color${t}Bg`],borderColor:e[`color${t}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var R=(0,D.bk)(["Tag","status"],e=>{const o=j(e);return[m(o,"success","Success"),m(o,"processing","Info"),m(o,"error","Error"),m(o,"warning","Warning")]},z),ee=function(e,o){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n<t.length;n++)o.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(a[t[n]]=e[t[n]]);return a};const re=l.forwardRef((e,o)=>{const{prefixCls:a,className:t,rootClassName:n,style:u,children:s,icon:E,color:f,onClose:U,bordered:g=!0,visible:A}=e,O=ee(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Q,direction:J,tag:_}=l.useContext(S.E_),[Y,H]=l.useState(!0),ie=(0,P.Z)(O,["closeIcon","closable"]);l.useEffect(()=>{A!==void 0&&H(A)},[A]);const te=(0,T.o2)(f),ne=(0,T.yT)(f),w=te||ne,de=Object.assign(Object.assign({backgroundColor:f&&!w?f:void 0},_==null?void 0:_.style),u),d=Q("tag",a),[ue,_e,me]=Z(d),fe=C()(d,_==null?void 0:_.className,{[`${d}-${f}`]:w,[`${d}-has-color`]:f&&!w,[`${d}-hidden`]:!Y,[`${d}-rtl`]:J==="rtl",[`${d}-borderless`]:!g},t,n,_e,me),oe=M=>{M.stopPropagation(),U==null||U(M),!M.defaultPrevented&&H(!1)},[,ge]=(0,h.Z)((0,h.w)(e),(0,h.w)(_),{closable:!1,closeIconRender:M=>{const he=l.createElement("span",{className:`${d}-close-icon`,onClick:oe},M);return(0,W.wm)(M,he,x=>({onClick:se=>{var k;(k=x==null?void 0:x.onClick)===null||k===void 0||k.call(x,se),oe(se)},className:C()(x==null?void 0:x.className,`${d}-close-icon`)}))}}),ve=typeof O.onClick=="function"||s&&s.type==="a",ae=E||null,Ce=ae?l.createElement(l.Fragment,null,ae,s&&l.createElement("span",null,s)):s,le=l.createElement("span",Object.assign({},ie,{ref:o,className:fe,style:de}),Ce,ge,te&&l.createElement($,{key:"preset",prefixCls:d}),ne&&l.createElement(R,{key:"status",prefixCls:d}));return ue(ve?l.createElement(y.Z,{component:"Tag"},le):le)});re.CheckableTag=G;var ce=re}}]);