11 lines
17 KiB
JavaScript
11 lines
17 KiB
JavaScript
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2890],{35748:function(te,P,s){var l=s(35361),Z=s(56929),A=s(50959),$=s(20734),F=s(11527),E=["fieldProps","min","proFieldProps","max"],N=function(v,B){var d=v.fieldProps,x=v.min,u=v.proFieldProps,G=v.max,W=(0,Z.Z)(v,E);return(0,F.jsx)($.Z,(0,l.Z)({valueType:"digit",fieldProps:(0,l.Z)({min:x,max:G},d),ref:B,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:u},W))},I=A.forwardRef(N);P.Z=I},79228:function(te,P,s){s.r(P),s.d(P,{default:function(){return ne}});var l=s(26068),Z=s.n(l),A=s(90228),$=s.n(A),F=s(87999),E=s.n(F),N=s(48305),I=s.n(N),o=s(49547),v=s(35748),B=s(19014),d=s(16030),x=s(47698),u=s(3598),G=s(24023),W=s(23885),Y=s(70939),R=s(50959),w=s(7485);function q(){return L.apply(this,arguments)}function L(){return L=E()($()().mark(function T(){return $()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return",(0,w.request)("/api/app/config/findList",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:{}}));case 1:case"end":return S.stop()}},T)})),L.apply(this,arguments)}function k(T){return H.apply(this,arguments)}function H(){return H=E()($()().mark(function T(D){return $()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,w.request)("/api/app/config/update",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:D||{}}));case 1:case"end":return C.stop()}},T)})),H.apply(this,arguments)}var _=s(5726),U=s.n(_),r=s(11527),ee=function(){var D=(0,R.useState)([]),S=I()(D,2),C=S[0],K=S[1],ae=(0,R.useState)("DEPOSIT"),e=I()(ae,2),i=e[0],a=e[1];(0,R.useEffect)(function(){q().then(function(m){var b=m.data;f(b)})},[]);var t=function(b){a(b)},n=function(){var m=E()($()().mark(function b(c){return $()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return c.beginTime&&(c.beginTime=U()(c.beginTime).format("HH:mm")),h.prev=1,h.next=4,k(c);case 4:return x.ZP.success("\u914D\u7F6E\u6210\u529F"),h.abrupt("return",!0);case 8:return h.prev=8,h.t0=h.catch(1),x.ZP.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),h.abrupt("return",!1);case 12:case"end":return h.stop()}},b,null,[[1,8]])}));return function(c){return m.apply(this,arguments)}}(),f=function(b){K(b.map(function(c){var p=null,h=JSON.parse(c.configValue),y=Z()({id:c.id,configName:c.configName,configKey:c.configKey},h);if(c.configKey=="DEPOSIT"&&(p=(0,r.jsx)(o.A,{style:{marginTop:8,maxWidth:600},layout:"vertical",initialValues:y,onFinish:n,children:(0,r.jsxs)(o.A.Group,{children:[(0,r.jsx)(v.Z,{name:"id",disabled:!0,hidden:!0}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u6700\u4F4E\u5145\u503C",name:"minMoney",children:(0,r.jsx)(u.Z,{min:1,addonBefore:"\uFFE5"})})]})})),c.configKey=="WITHDRAWAL"&&(p=(0,r.jsxs)(o.A,{style:{marginTop:8,maxWidth:600},layout:"vertical",initialValues:y,onFinish:n,children:[(0,r.jsxs)(o.A.Group,{children:[(0,r.jsx)(v.Z,{name:"id",disabled:!0,hidden:!0}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u6700\u4F4E\u63D0\u73B0",name:"minMoney",children:(0,r.jsx)(u.Z,{min:1,addonBefore:"\uFFE5"})}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u63D0\u73B0\u624B\u7EED\u8D39",name:"free",children:(0,r.jsx)(u.Z,{min:0,max:100,addonAfter:"%"})}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u65E5\u9650\u989D",name:"dayQuota",children:(0,r.jsx)(u.Z,{min:0,addonBefore:"\uFFE5"})}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u6708\u9650\u989D",name:"monthQuota",children:(0,r.jsx)(u.Z,{min:0,addonBefore:"\uFFE5"})})]}),(0,r.jsxs)(o.A.Group,{children:[(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u5E74\u9F84\u9650\u5236\uFF08\u7537\uFF09",name:"ageMan",children:(0,r.jsx)(u.Z,{max:65,addonAfter:"\u5C81"})}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u5E74\u9F84\u9650\u5236\uFF08\u5973\uFF09",name:"ageGirl",children:(0,r.jsx)(u.Z,{max:65,addonAfter:"\u5C81"})})]})]})),c.configKey=="SENSITIVITY"&&(p=(0,r.jsx)(o.A,{style:{marginTop:8,maxWidth:600},layout:"vertical",initialValues:y,onFinish:n,children:(0,r.jsxs)(o.A.Group,{children:[(0,r.jsx)(v.Z,{name:"id",disabled:!0,hidden:!0}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u624B\u673A\u53F7\uFF08\u63A5\u6536\u9A8C\u8BC1\u7801\uFF09",name:"mobile",children:(0,r.jsx)(B.Z,{})})]})})),c.configKey=="PILE"&&(p=(0,r.jsxs)(o.A,{style:{marginTop:8,maxWidth:600},layout:"vertical",initialValues:y,onFinish:n,children:[(0,r.jsxs)(o.A.Group,{children:[(0,r.jsx)(v.Z,{name:"id",disabled:!0,hidden:!0}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u6536\u76CA",name:"earnings",children:(0,r.jsx)(u.Z,{min:1,addonBefore:"\uFFE5"})}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u4E0A\u4E0B\u6D6E\u52A8",name:"earingsFloat",children:(0,r.jsx)(u.Z,{min:0,max:100,addonAfter:"%"})})]}),(0,r.jsxs)(o.A.Group,{children:[(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u4EA4\u4ED8\u65F6\u95F4",name:"deliveryDay",children:(0,r.jsx)(u.Z,{min:1,addonAfter:"\u5929"})}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u57FA\u672C\u6536\u76CA",name:"earningsBase",children:(0,r.jsx)(u.Z,{min:0,addonBefore:"\uFFE5"})})]})]})),c.configKey=="MAINTAIN"){if(y.beginTime){var z=U()(y.beginTime,"HH:mm");y.beginTime=z}p=(0,r.jsx)(o.A,{style:{marginTop:8,maxWidth:600},layout:"vertical",initialValues:y,onFinish:n,children:(0,r.jsxs)(o.A.Group,{children:[(0,r.jsx)(v.Z,{name:"id",disabled:!0,hidden:!0}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u5F00\u59CB\u65F6\u95F4",name:"beginTime",children:(0,r.jsx)(G.Z,{format:"HH:mm"})}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u6301\u7EED\u65F6\u95F4",name:"continueTime",children:(0,r.jsx)(u.Z,{min:0,addonAfter:"\u5206\u949F"})})]})})}return c.configKey=="DISTRIBUTION"&&(p=(0,r.jsx)(o.A,{style:{marginTop:8,maxWidth:600},layout:"vertical",initialValues:y,onFinish:n,children:(0,r.jsxs)(o.A.Group,{children:[(0,r.jsx)(v.Z,{name:"id",disabled:!0,hidden:!0}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u76F4\u63A8",name:"directPush",children:(0,r.jsx)(u.Z,{min:0,max:100,addonAfter:"%"})}),(0,r.jsx)(o.A.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],label:"\u95F4\u63A8",name:"inDirectPush",children:(0,r.jsx)(u.Z,{min:0,addonAfter:"%"})})]})})),{key:c.configKey,label:c.configName,children:p}}))};return(0,r.jsx)(d._z,{children:(0,r.jsx)(W.Z,{bordered:!1,children:(0,r.jsx)(Y.Z,{type:"card",onChange:t,items:C,activeKey:i})})})},ne=ee},23885:function(te,P,s){s.d(P,{Z:function(){return ae}});var l=s(50959),Z=s(82187),A=s.n(Z),$=s(8146),F=s(76144),E=s(15676),N=s(39910),I=s(70939),o=function(e,i){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&i.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++)i.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(a[t[n]]=e[t[n]]);return a},B=e=>{var{prefixCls:i,className:a,hoverable:t=!0}=e,n=o(e,["prefixCls","className","hoverable"]);const{getPrefixCls:f}=l.useContext(F.E_),m=f("card",i),b=A()(`${m}-grid`,a,{[`${m}-grid-hoverable`]:t});return l.createElement("div",Object.assign({},n,{className:b}))},d=s(601),x=s(54531),u=s(79349),G=s(56352);const W=e=>{const{antCls:i,componentCls:a,headerHeight:t,cardPaddingBase:n,tabsMarginBottom:f}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:t,marginBottom:-1,padding:`0 ${(0,d.bf)(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,d.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,d.bf)(e.borderRadiusLG)} ${(0,d.bf)(e.borderRadiusLG)} 0 0`},(0,x.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},x.vS),{[`
|
|
> ${a}-typography,
|
|
> ${a}-typography-edit-content
|
|
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${i}-tabs-top`]:{clear:"both",marginBottom:f,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,d.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Y=e=>{const{cardPaddingBase:i,colorBorderSecondary:a,cardShadow:t,lineWidth:n}=e;return{width:"33.33%",padding:i,border:0,borderRadius:0,boxShadow:`
|
|
${(0,d.bf)(n)} 0 0 0 ${a},
|
|
0 ${(0,d.bf)(n)} 0 0 ${a},
|
|
${(0,d.bf)(n)} ${(0,d.bf)(n)} 0 0 ${a},
|
|
${(0,d.bf)(n)} 0 0 0 ${a} inset,
|
|
0 ${(0,d.bf)(n)} 0 0 ${a} inset;
|
|
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:t}}},R=e=>{const{componentCls:i,iconCls:a,actionsLiMargin:t,cardActionsIconSize:n,colorBorderSecondary:f,actionsBg:m}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:m,borderTop:`${(0,d.bf)(e.lineWidth)} ${e.lineType} ${f}`,display:"flex",borderRadius:`0 0 ${(0,d.bf)(e.borderRadiusLG)} ${(0,d.bf)(e.borderRadiusLG)}`},(0,x.dF)()),{"& > li":{margin:t,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${i}-btn), > ${a}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,d.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${a}`]:{fontSize:n,lineHeight:(0,d.bf)(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,d.bf)(e.lineWidth)} ${e.lineType} ${f}`}}})},w=e=>Object.assign(Object.assign({margin:`${(0,d.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,x.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},x.vS),"&-description":{color:e.colorTextDescription}}),q=e=>{const{componentCls:i,cardPaddingBase:a,colorFillAlter:t}=e;return{[`${i}-head`]:{padding:`0 ${(0,d.bf)(a)}`,background:t,"&-title":{fontSize:e.fontSize}},[`${i}-body`]:{padding:`${(0,d.bf)(e.padding)} ${(0,d.bf)(a)}`}}},L=e=>{const{componentCls:i}=e;return{overflow:"hidden",[`${i}-body`]:{userSelect:"none"}}},k=e=>{const{antCls:i,componentCls:a,cardShadow:t,cardHeadPadding:n,colorBorderSecondary:f,boxShadowTertiary:m,cardPaddingBase:b,extraColor:c}=e;return{[a]:Object.assign(Object.assign({},(0,x.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${a}-bordered)`]:{boxShadow:m},[`${a}-head`]:W(e),[`${a}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${a}-body`]:Object.assign({padding:b,borderRadius:` 0 0 ${(0,d.bf)(e.borderRadiusLG)} ${(0,d.bf)(e.borderRadiusLG)}`},(0,x.dF)()),[`${a}-grid`]:Y(e),[`${a}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${i}-image-mask`]:{borderRadius:`${(0,d.bf)(e.borderRadiusLG)} ${(0,d.bf)(e.borderRadiusLG)} 0 0`}},[`${a}-actions`]:R(e),[`${a}-meta`]:w(e)}),[`${a}-bordered`]:{border:`${(0,d.bf)(e.lineWidth)} ${e.lineType} ${f}`,[`${a}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${a}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:t}},[`${a}-contain-grid`]:{borderRadius:`${(0,d.bf)(e.borderRadiusLG)} ${(0,d.bf)(e.borderRadiusLG)} 0 0 `,[`${a}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${a}-loading) ${a}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${a}-contain-tabs`]:{[`> ${a}-head`]:{minHeight:0,[`${a}-head-title, ${a}-extra`]:{paddingTop:n}}},[`${a}-type-inner`]:q(e),[`${a}-loading`]:L(e),[`${a}-rtl`]:{direction:"rtl"}}},H=e=>{const{componentCls:i,cardPaddingSM:a,headerHeightSM:t,headerFontSizeSM:n}=e;return{[`${i}-small`]:{[`> ${i}-head`]:{minHeight:t,padding:`0 ${(0,d.bf)(a)}`,fontSize:n,[`> ${i}-head-wrapper`]:{[`> ${i}-extra`]:{fontSize:e.fontSize}}},[`> ${i}-body`]:{padding:a}},[`${i}-small${i}-contain-tabs`]:{[`> ${i}-head`]:{[`${i}-head-title, ${i}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},_=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var U=(0,u.I$)("Card",e=>{const i=(0,G.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[k(i),H(i)]},_),r=function(e,i){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&i.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++)i.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(a[t[n]]=e[t[n]]);return a};const ee=e=>{const{prefixCls:i,actions:a=[]}=e;return l.createElement("ul",{className:`${i}-actions`},a.map((t,n)=>{const f=`action-${n}`;return l.createElement("li",{style:{width:`${100/a.length}%`},key:f},l.createElement("span",null,t))}))};var T=l.forwardRef((e,i)=>{const{prefixCls:a,className:t,rootClassName:n,style:f,extra:m,headStyle:b={},bodyStyle:c={},title:p,loading:h,bordered:y=!0,size:z,type:X,cover:ie,actions:re,tabList:Q,children:J,activeTabKey:se,defaultActiveTabKey:ce,tabBarExtraContent:ue,hoverable:me,tabProps:ge={}}=e,fe=r(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:he,direction:be,card:M}=l.useContext(F.E_),pe=O=>{var j;(j=e.onTabChange)===null||j===void 0||j.call(e,O)},ye=l.useMemo(()=>{let O=!1;return l.Children.forEach(J,j=>{j&&j.type&&j.type===B&&(O=!0)}),O},[J]),g=he("card",a),[ve,xe,$e]=U(g),Se=l.createElement(N.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},J),oe=se!==void 0,je=Object.assign(Object.assign({},ge),{[oe?"activeKey":"defaultActiveKey"]:oe?se:ce,tabBarExtraContent:ue});let de;const V=(0,E.Z)(z),Ce=!V||V==="default"?"large":V,le=Q?l.createElement(I.Z,Object.assign({size:Ce},je,{className:`${g}-head-tabs`,onChange:pe,items:Q.map(O=>{var{tab:j}=O,Ie=r(O,["tab"]);return Object.assign({label:j},Ie)})})):null;(p||m||le)&&(de=l.createElement("div",{className:`${g}-head`,style:b},l.createElement("div",{className:`${g}-head-wrapper`},p&&l.createElement("div",{className:`${g}-head-title`},p),m&&l.createElement("div",{className:`${g}-extra`},m)),le));const Ae=ie?l.createElement("div",{className:`${g}-cover`},ie):null,Fe=l.createElement("div",{className:`${g}-body`,style:c},h?Se:J),Ee=re&&re.length?l.createElement(ee,{prefixCls:g,actions:re}):null,Te=(0,$.Z)(fe,["onTabChange"]),Oe=A()(g,M==null?void 0:M.className,{[`${g}-loading`]:h,[`${g}-bordered`]:y,[`${g}-hoverable`]:me,[`${g}-contain-grid`]:ye,[`${g}-contain-tabs`]:Q&&Q.length,[`${g}-${V}`]:V,[`${g}-type-${X}`]:!!X,[`${g}-rtl`]:be==="rtl"},t,n,xe,$e),Pe=Object.assign(Object.assign({},M==null?void 0:M.style),f);return ve(l.createElement("div",Object.assign({ref:i},Te,{className:Oe,style:Pe}),de,Ae,Fe,Ee))}),D=function(e,i){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&i.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++)i.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(a[t[n]]=e[t[n]]);return a},C=e=>{const{prefixCls:i,className:a,avatar:t,title:n,description:f}=e,m=D(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:b}=l.useContext(F.E_),c=b("card",i),p=A()(`${c}-meta`,a),h=t?l.createElement("div",{className:`${c}-meta-avatar`},t):null,y=n?l.createElement("div",{className:`${c}-meta-title`},n):null,z=f?l.createElement("div",{className:`${c}-meta-description`},f):null,X=y||z?l.createElement("div",{className:`${c}-meta-detail`},y,z):null;return l.createElement("div",Object.assign({},m,{className:p}),h,X)};const K=T;K.Grid=B,K.Meta=C;var ae=K}}]);
|