nili
7 months ago
60 changed files with 1793 additions and 1590 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
|||||
|
!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["p__AppManagement.26abbc6f.async.js",39],["51.a2ea1b3b.async.js",51],["60.7143e42f.async.js",60],["89.ee83384e.async.js",89],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.8c10044c.async.js",185],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.bb80f58e.async.js",301],["335.78ea2fbf.async.js",335],["364.782d5fa1.async.js",364],["p__User__Login__index.0020071b.async.js",366],["p__DeviceOwnerApp.ede954ff.async.js",371],["390.41467286.async.js",390],["397.fb5f72c1.async.js",397],["491.ddc0d25a.async.js",491],["p__Bind.bfb7c4f6.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["p__DeviceOverview.80620b07.async.js",581],["p__Overview.f1f0c4a9.async.js",628],["750.d34920f3.async.js",750],["p__AdminManagement.5cedcbf4.async.js",816],["822.ac7ab1f5.async.js",822],["p__AdvRecordList.6031b104.async.js",857],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930]],"r":{"/*":[18,25],"/":[3,4,7,8,17,25],"/welcome":[2,6,3,4,7,8,17,25],"/overview":[2,4,5,10,15,17,20,21,23,26,3,7,8,25],"/advList":[1,2,4,5,9,10,21,23,24,25,26,3,7,8,17],"/appList":[1,2,4,5,9,10,12,21,23,25,26,3,7,8,17],"/incomeOverview":[2,4,5,10,15,17,19,21,23,26,3,7,8,25],"/adminList":[1,5,22,23,3,4,7,8,17,25],"/bind":[4,5,14,16,17,26,3,7,8,25],"/appManage":[0,1,2,4,5,9,10,14,21,23,25,26,3,7,8,17],"/user/login":[2,4,5,10,11,23]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); |
@ -1,14 +1,17 @@ |
|||||
<!DOCTYPE html><html><head> |
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
<meta charset="utf-8"> |
<meta charset="utf-8"> |
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> |
||||
<link rel="shortcut icon" href="logo.png"> |
<link rel="shortcut icon" href="logo.png"> |
||||
<title>Ant Design Pro</title> |
<title>Ant Design Pro</title> |
||||
<link rel="stylesheet" href="/umi.f9018446.css"> |
<link rel="stylesheet" href="/umi.f9018446.css"> |
||||
<script async="" src="/scripts/loading.js"></script> |
<script async src="/scripts/loading.js"></script> |
||||
|
<script src="/_umi_route_preload_helper.a276797c.js"></script> |
||||
</head> |
</head> |
||||
<body> |
<body> |
||||
<div id="root"></div> |
<div id="root"></div> |
||||
<script src="/umi.f2ee2082.js"></script> |
<script src="/umi.7e880ffe.js"></script> |
||||
|
</body> |
||||
</body></html> |
</html> |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
|||||
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[39],{40110:function(y,c,e){var E=e(1413),s=e(67294),P=e(509),m=e(91146),h=function(D,O){return s.createElement(m.Z,(0,E.Z)((0,E.Z)({},D),{},{ref:O,icon:P.Z}))},u=s.forwardRef(h);c.Z=u},84702:function(y,c,e){e.r(c);var E=e(15009),s=e.n(E),P=e(99289),m=e.n(P),h=e(5574),u=e.n(h),A=e(90930),D=e(25335),O=e(35312),i=e(8232),o=e(55102),Z=e(42075),M=e(14726),L=e(71230),I=e(10397),W=e(55241),g=e(17788),p=e(67294),x=e(48357),F=e(40110),n=e(85893),S=function(){var b=(0,p.useState)(!1),U=u()(b,2),V=U[0],v=U[1],$=i.Z.useForm(),z=u()($,1),f=z[0],G=(0,p.useState)([]),T=u()(G,2),N=T[0],J=T[1],X=(0,O.useModel)("@@initialState"),j=X.initialState,d=j==null?void 0:j.currentUser,H=d&&d.role&&d.role<2,Q=function(r){f.setFieldsValue(r),v(!0)},B=[{title:"\u6E38\u620F",dataIndex:"name",filterDropdown:function(r){var a=r.setSelectedKeys,l=r.selectedKeys,t=r.confirm,ne=r.clearFilters;return(0,n.jsxs)("div",{style:{padding:8},children:[(0,n.jsx)(o.Z,{placeholder:"\u641C\u7D22\u8D26\u53F7",value:l[0],onChange:function(R){return a(R.target.value?[R.target.value]:[])},onPressEnter:function(){return t()},style:{marginBottom:8,display:"block"}}),(0,n.jsxs)(Z.Z,{children:[(0,n.jsx)(M.ZP,{onClick:function(){return t()},type:"primary",children:"\u641C\u7D22"}),(0,n.jsx)(M.ZP,{onClick:function(){return ne()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,a){var l;return a==null||(l=a.name)===null||l===void 0?void 0:l.includes(r)},filterIcon:function(r){return(0,n.jsx)(F.Z,{style:{color:r?"#1890ff":void 0},onPointerEnterCapture:void 0,onPointerLeaveCapture:void 0})}},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",renderText:function(r){return r&&(0,n.jsxs)(L.Z,{align:"middle",children:[(0,n.jsx)(I.Z,{size:80,value:r||"",bordered:!1}),(0,n.jsx)(W.Z,{overlayInnerStyle:{padding:0},content:(0,n.jsx)(I.Z,{size:300,value:r||"",bordered:!1}),children:(0,n.jsx)("a",{children:"\u67E5\u770B\u5927\u56FE"})})]})}}],Y=[].concat(B,[{title:"secret",dataIndex:"secret",ellipsis:!0,copyable:!0},{title:"\u64CD\u4F5C",width:80,renderText:function(r){return(0,n.jsx)("a",{onClick:function(){return Q(r)},children:"\u7F16\u8F91"},"edit")}}]),k=function(){f.submit()},w=function(){v(!1)},K=function(){var _=m()(s()().mark(function r(){var a;return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,x.ln)();case 2:a=t.sent,a.data&&J(a.data);case 4:case"end":return t.stop()}},r)}));return function(){return _.apply(this,arguments)}}();(0,p.useEffect)(function(){K()},[]);var q=function(){f.resetFields(),v(!0)},ee=function(){var _=m()(s()().mark(function r(a){return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,x.XJ)(a);case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:v(!1),K();case 10:case"end":return t.stop()}},r,null,[[0,5]])}));return function(a){return _.apply(this,arguments)}}();return(0,n.jsxs)(A._z,{children:[d&&d.role&&d.role<2&&(0,n.jsx)(M.ZP,{style:{marginBottom:"20px"},onClick:q,children:"\u65B0\u5EFA\u5E94\u7528"}),(0,n.jsx)(D.Z,{search:!1,columns:H?Y:B,dataSource:N}),(0,n.jsx)(g.Z,{title:"\u7F16\u8F91",visible:V,onOk:k,onCancel:w,children:(0,n.jsxs)(i.Z,{form:f,onFinish:ee,children:[(0,n.jsx)(i.Z.Item,{name:"id",style:{display:"none"},children:(0,n.jsx)(o.Z,{type:"hidden"})}),(0,n.jsx)(i.Z.Item,{name:"code",style:{display:"none"},children:(0,n.jsx)(o.Z,{type:"hidden"})}),(0,n.jsx)(i.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,n.jsx)(o.Z,{})}),(0,n.jsx)(i.Z.Item,{label:"\u4E0B\u8F7D\u5730\u5740",name:"url",children:(0,n.jsx)(o.Z,{})})]})})]})};c.default=S}}]); |
@ -1 +0,0 @@ |
|||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[39],{40110:function(y,o,e){var c=e(1413),s=e(67294),O=e(509),m=e(91146),E=function(D,P){return s.createElement(m.Z,(0,c.Z)((0,c.Z)({},D),{},{ref:P,icon:O.Z}))};E.displayName="SearchOutlined",o.Z=s.forwardRef(E)},84702:function(y,o,e){e.r(o);var c=e(15009),s=e.n(c),O=e(99289),m=e.n(O),E=e(5574),v=e.n(E),D=e(90930),P=e(85601),R=e(35312),i=e(8232),u=e(96365),Z=e(42075),p=e(14726),L=e(71230),A=e(10397),W=e(55241),g=e(17788),M=e(67294),I=e(48357),F=e(40110),n=e(85893),S=function(){var b=(0,M.useState)(!1),x=v()(b,2),$=x[0],f=x[1],z=i.Z.useForm(),N=v()(z,1),h=N[0],G=(0,M.useState)([]),U=v()(G,2),V=U[0],J=U[1],X=(0,R.useModel)("@@initialState"),j=X.initialState,d=j==null?void 0:j.currentUser,H=d&&d.role&&d.role<2,Q=function(r){h.setFieldsValue(r),f(!0)},T=[{title:"\u6E38\u620F",dataIndex:"name",filterDropdown:function(r){var a=r.setSelectedKeys,l=r.selectedKeys,t=r.confirm,ne=r.clearFilters;return(0,n.jsxs)("div",{style:{padding:8},children:[(0,n.jsx)(u.Z,{placeholder:"\u641C\u7D22\u8D26\u53F7",value:l[0],onChange:function(K){return a(K.target.value?[K.target.value]:[])},onPressEnter:function(){return t()},style:{marginBottom:8,display:"block"}}),(0,n.jsxs)(Z.Z,{children:[(0,n.jsx)(p.ZP,{onClick:function(){return t()},type:"primary",children:"\u641C\u7D22"}),(0,n.jsx)(p.ZP,{onClick:function(){return ne()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,a){var l;return a==null||(l=a.name)===null||l===void 0?void 0:l.includes(r)},filterIcon:function(r){return(0,n.jsx)(F.Z,{style:{color:r?"#1890ff":void 0},onPointerEnterCapture:void 0,onPointerLeaveCapture:void 0})}},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",renderText:function(r){return r&&(0,n.jsxs)(L.Z,{align:"middle",children:[(0,n.jsx)(A.Z,{size:80,value:r||"",bordered:!1}),(0,n.jsx)(W.Z,{overlayInnerStyle:{padding:0},content:(0,n.jsx)(A.Z,{size:300,value:r||"",bordered:!1}),children:(0,n.jsx)("a",{children:"\u67E5\u770B\u5927\u56FE"})})]})}}],Y=[].concat(T,[{title:"secret",dataIndex:"secret",ellipsis:!0,copyable:!0},{title:"\u64CD\u4F5C",width:80,renderText:function(r){return(0,n.jsx)("a",{onClick:function(){return Q(r)},children:"\u7F16\u8F91"},"edit")}}]),k=function(){h.submit()},w=function(){f(!1)},B=function(){var _=m()(s()().mark(function r(){var a;return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,I.ln)();case 2:a=t.sent,a.data&&J(a.data);case 4:case"end":return t.stop()}},r)}));return function(){return _.apply(this,arguments)}}();(0,M.useEffect)(function(){B()},[]);var q=function(){h.resetFields(),f(!0)},ee=function(){var _=m()(s()().mark(function r(a){return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,I.XJ)(a);case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:f(!1),B();case 10:case"end":return t.stop()}},r,null,[[0,5]])}));return function(a){return _.apply(this,arguments)}}();return(0,n.jsxs)(D._z,{children:[d&&d.role&&d.role<2&&(0,n.jsx)(p.ZP,{style:{marginBottom:"20px"},onClick:q,children:"\u65B0\u5EFA\u5E94\u7528"}),(0,n.jsx)(P.Z,{search:!1,columns:H?Y:T,dataSource:V}),(0,n.jsx)(g.Z,{title:"\u7F16\u8F91",visible:$,onOk:k,onCancel:w,children:(0,n.jsxs)(i.Z,{form:h,onFinish:ee,children:[(0,n.jsx)(i.Z.Item,{name:"id",style:{display:"none"},children:(0,n.jsx)(u.Z,{type:"hidden"})}),(0,n.jsx)(i.Z.Item,{name:"code",style:{display:"none"},children:(0,n.jsx)(u.Z,{type:"hidden"})}),(0,n.jsx)(i.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,n.jsx)(u.Z,{})}),(0,n.jsx)(i.Z.Item,{label:"\u4E0B\u8F7D\u5730\u5740",name:"url",children:(0,n.jsx)(u.Z,{})})]})})]})};o.default=S}}]); |
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
|||||
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[628],{58451:function(_e,p,_){_.r(p);var U=_(97857),A=_.n(U),C=_(15009),r=_.n(C),T=_(99289),E=_.n(T),R=_(5574),u=_.n(R),f=_(48357),I=_(92713),x=_(90930),m=_(39615),B=_(57470),v=_(64317),W=_(34540),g=_(27484),K=_.n(g),L=_(9220),i=_(67294),y=_(96974),a=_(85893),S=function(){var F=(0,i.useState)(),D=u()(F,2),o=D[0],Z=D[1],V=(0,i.useState)([]),P=u()(V,2),O=P[0],z=P[1],G=(0,i.useState)([]),h=u()(G,2),$=h[0],H=h[1],J=(0,i.useState)(!1),M=u()(J,2),N=M[0],Q=M[1],X=(0,y.UO)(),j=X.code,Y=function(){var t=E()(r()().mark(function e(){var n;return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,f.d1)({appCode:j});case 2:n=s.sent,n.data&&Z(n.data);case 4:case"end":return s.stop()}},e)}));return function(){return t.apply(this,arguments)}}(),w=function(){var t=E()(r()().mark(function e(){var n;return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,f.ln)();case 2:n=s.sent,n.data&&H(n.data);case 4:case"end":return s.stop()}},e)}));return function(){return t.apply(this,arguments)}}(),b=function(){var t=E()(r()().mark(function e(n){var l;return r()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,f.Zb)(n);case 2:l=d.sent,l.data&&z(l.data);case 4:case"end":return d.stop()}},e)}));return function(n){return t.apply(this,arguments)}}();(0,i.useEffect)(function(){Y(),w(),b({code:j})},[]);var c=function(e){return e?parseFloat((e/1e5).toFixed(2)):0},k=function(e){var n=e+"";return n.slice(4,6)+"/"+n.slice(6,8)},q=O.map(function(t){return{date:k(t.date),income:c(t.income)}}),ee={data:q,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"},income:{title:"\u6536\u5165\uFF08\u5143\uFF09"}},title:"\u533A\u95F4\u7D2F\u8BA1"+c(O.reduce(function(t,e){return t+(e.income?e.income:0)},0))+"\u5143",height:400,label:{text:function(e){return e.income>0?e.income:""},textBaseline:"bottom",visible:!0,type:"point"},line:{style:{stroke:"#eb0fcc",strokeWidth:2},shapeField:"smooth"},shapeField:"smooth",style:{fill:"linear-gradient(-90deg, white 0%, #eb0fcc 100%)"}};return(0,a.jsxs)(x._z,{children:[(0,a.jsx)(L.Z,{onResize:function(e){Q(e.width<596)},children:(0,a.jsx)(m.Z,{children:(0,a.jsxs)(m.Z.Group,{direction:N?"column":"row",children:[(0,a.jsx)(m.Z,{statistic:{title:"\u7D2F\u8BA1\u6536\u5165\uFF08\u5143\uFF09",value:c(o==null?void 0:o.totalIncome)}}),(0,a.jsx)(m.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:c(o==null?void 0:o.yesterdayIncome)}})]})})},"resize-observer"),(0,a.jsxs)("div",{style:{marginTop:"20px",padding:"40px",backgroundColor:"white"},children:[(0,a.jsxs)(B.t,{defaultCollapsed:!0,split:!0,onFinish:b,children:[(0,a.jsx)(v.Z,{name:"code",label:"\u5E94\u7528",options:$.map(function(t){return{label:t.name,value:t.code}})}),(0,a.jsx)(v.Z,{label:"\u5E73\u53F0",name:"platform",valueEnum:{1:"\u7A7F\u5C71\u7532",2:"\u817E\u8BAF",5:"\u5FEB\u624B",7:"Sigmob"}}),(0,a.jsx)(v.Z,{name:"advType",label:"\u5E7F\u544A\u7C7B\u578B",valueEnum:{1:"\u6A2A\u5E45",2:"\u63D2\u9875",3:"\u6FC0\u52B1\u89C6\u9891"}}),(0,a.jsx)(W.Z,{fieldProps:{disabledDate:function(e){return e&&e>=K()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,a.jsx)(I.Z,A()({},ee))]})]})};p.default=S}}]); |
@ -1 +0,0 @@ |
|||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[628],{58451:function(_e,p,_){_.r(p);var U=_(97857),A=_.n(U),C=_(15009),r=_.n(C),T=_(99289),E=_.n(T),R=_(5574),d=_.n(R),f=_(48357),I=_(4025),x=_(90930),m=_(31847),B=_(57470),v=_(64317),W=_(34540),g=_(27484),K=_.n(g),L=_(9220),o=_(67294),y=_(96974),a=_(85893),S=function(){var F=(0,o.useState)(),D=d()(F,2),i=D[0],Z=D[1],z=(0,o.useState)([]),O=d()(z,2),h=O[0],G=O[1],$=(0,o.useState)([]),P=d()($,2),H=P[0],J=P[1],N=(0,o.useState)(!1),M=d()(N,2),Q=M[0],V=M[1],X=(0,y.UO)(),j=X.code,Y=function(){var t=E()(r()().mark(function e(){var n;return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,f.d1)({appCode:j});case 2:n=s.sent,n.data&&Z(n.data);case 4:case"end":return s.stop()}},e)}));return function(){return t.apply(this,arguments)}}(),w=function(){var t=E()(r()().mark(function e(){var n;return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,f.ln)();case 2:n=s.sent,n.data&&J(n.data);case 4:case"end":return s.stop()}},e)}));return function(){return t.apply(this,arguments)}}(),b=function(){var t=E()(r()().mark(function e(n){var l;return r()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,f.Zb)(n);case 2:l=u.sent,l.data&&G(l.data);case 4:case"end":return u.stop()}},e)}));return function(n){return t.apply(this,arguments)}}();(0,o.useEffect)(function(){Y(),w(),b({code:j})},[]);var c=function(e){return e?parseFloat((e/1e5).toFixed(2)):0},k=function(e){var n=e+"";return n.slice(4,6)+"/"+n.slice(6,8)},q=h.map(function(t){return{date:k(t.date),income:c(t.income)}}),ee={data:q,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"},income:{title:"\u6536\u5165\uFF08\u5143\uFF09"}},title:"\u533A\u95F4\u7D2F\u8BA1"+c(h.reduce(function(t,e){return t+(e.income?e.income:0)},0))+"\u5143",height:400,label:{text:function(e){return e.income>0?e.income:""},textBaseline:"bottom",visible:!0,type:"point"},line:{style:{stroke:"#eb0fcc",strokeWidth:2},shapeField:"smooth"},shapeField:"smooth",style:{fill:"linear-gradient(-90deg, white 0%, #eb0fcc 100%)"}};return(0,a.jsxs)(x._z,{children:[(0,a.jsx)(L.Z,{onResize:function(e){V(e.width<596)},children:(0,a.jsx)(m.Z,{children:(0,a.jsxs)(m.Z.Group,{direction:Q?"column":"row",children:[(0,a.jsx)(m.Z,{statistic:{title:"\u7D2F\u8BA1\u6536\u5165\uFF08\u5143\uFF09",value:c(i==null?void 0:i.totalIncome)}}),(0,a.jsx)(m.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:c(i==null?void 0:i.yesterdayIncome)}})]})})},"resize-observer"),(0,a.jsxs)("div",{style:{marginTop:"20px",padding:"40px",backgroundColor:"white"},children:[(0,a.jsxs)(B.t,{defaultCollapsed:!0,split:!0,onFinish:b,children:[(0,a.jsx)(v.Z,{name:"code",label:"\u5E94\u7528",options:H.map(function(t){return{label:t.name,value:t.code}})}),(0,a.jsx)(v.Z,{label:"\u5E73\u53F0",name:"platform",valueEnum:{1:"\u7A7F\u5C71\u7532",2:"\u817E\u8BAF",5:"\u5FEB\u624B",7:"Sigmob"}}),(0,a.jsx)(v.Z,{name:"advType",label:"\u5E7F\u544A\u7C7B\u578B",valueEnum:{1:"\u6A2A\u5E45",2:"\u63D2\u9875",3:"\u6FC0\u52B1\u89C6\u9891"}}),(0,a.jsx)(W.Z,{fieldProps:{disabledDate:function(e){return e&&e>=K()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,a.jsx)(I.Z,A()({},ee))]})]})};p.default=S}}]); |
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,68 @@ |
|||||
|
import { Modal, Switch, Table } from 'antd'; |
||||
|
import { ColumnsType } from 'antd/es/table'; |
||||
|
import React from 'react'; |
||||
|
import { changeAdminHide } from '../../services/matrix/admin'; |
||||
|
|
||||
|
export type AdminHideFormProps = { |
||||
|
onSubmit: () => void; |
||||
|
data: API.MatrixAdminBo[]; |
||||
|
}; |
||||
|
|
||||
|
const AdminHideForm: React.FC<AdminHideFormProps> = (props) => { |
||||
|
const handleOk = () => { |
||||
|
props.onSubmit(); |
||||
|
}; |
||||
|
|
||||
|
const columns: ColumnsType<API.MatrixAdminBo> = [ |
||||
|
{ |
||||
|
title: '账号', |
||||
|
dataIndex: 'name', |
||||
|
ellipsis: true, |
||||
|
}, |
||||
|
{ |
||||
|
title: '角色', |
||||
|
dataIndex: 'role', |
||||
|
render: (r: number) => { |
||||
|
let roleText = ''; |
||||
|
switch (r) { |
||||
|
case 1: |
||||
|
roleText = '超级管理员'; |
||||
|
break; |
||||
|
case 2: |
||||
|
roleText = '管理员'; |
||||
|
break; |
||||
|
case 3: |
||||
|
roleText = '游戏主'; |
||||
|
break; |
||||
|
case 4: |
||||
|
roleText = '设备主'; |
||||
|
break; |
||||
|
default: |
||||
|
roleText = ''; |
||||
|
} |
||||
|
return roleText; |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
title: '隐藏', |
||||
|
render: (record: API.MatrixAdminBo) => ( |
||||
|
<Switch |
||||
|
defaultValue={record.hide !== 0} |
||||
|
onClick={(val) => { |
||||
|
if (record.id) { |
||||
|
changeAdminHide({ adminId: record.id, hide: val ? 1 : 0 }); |
||||
|
} |
||||
|
}} |
||||
|
/> |
||||
|
), |
||||
|
}, |
||||
|
]; |
||||
|
|
||||
|
return ( |
||||
|
<Modal title="批量编辑" visible footer={[]} onCancel={handleOk}> |
||||
|
<Table columns={columns} dataSource={props.data} /> |
||||
|
</Modal> |
||||
|
); |
||||
|
}; |
||||
|
|
||||
|
export default AdminHideForm; |
@ -1,18 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/app/info */ |
|
||||
export async function getAppInfo( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.getAppInfoParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RAppInfo>('/api/game/app/info', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
@ -1,114 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/auth/current */ |
|
||||
export async function currentUser(options?: { [key: string]: any }) { |
|
||||
return request<API.RCurrentUser>('/api/game/auth/current', { |
|
||||
method: 'GET', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/auth/login */ |
|
||||
export async function wxLogin( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.wxLoginParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RString>('/api/game/auth/login', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/auth/loginV2 */ |
|
||||
export async function wxLoginV2( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.wxLoginV2Params, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RLoginBo>('/api/game/auth/loginV2', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/auth/loginV3 */ |
|
||||
export async function loginV3(body: API.LoginReq, options?: { [key: string]: any }) { |
|
||||
return request<API.RLoginBo>('/api/game/auth/loginV3', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/auth/myInviteRecord */ |
|
||||
export async function myInviteRecord(options?: { [key: string]: any }) { |
|
||||
return request<API.RInviteInfo>('/api/game/auth/myInviteRecord', { |
|
||||
method: 'GET', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/auth/rankList */ |
|
||||
export async function rankList( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.rankListParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RRankList>('/api/game/auth/rankList', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/auth/test */ |
|
||||
export async function setInviteCode(options?: { [key: string]: any }) { |
|
||||
return request<API.RVoid>('/api/game/auth/test', { |
|
||||
method: 'GET', |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/auth/updateScore */ |
|
||||
export async function updateScore( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.updateScoreParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/game/auth/updateScore', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/auth/updateUserInfo */ |
|
||||
export async function updateUserInfo( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.updateUserInfoParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/game/auth/updateUserInfo', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
@ -0,0 +1,170 @@ |
|||||
|
// @ts-ignore
|
||||
|
/* eslint-disable */ |
||||
|
import { request } from '@umijs/max'; |
||||
|
|
||||
|
/** 此处后端没有提供注释 GET /api/admin/app/aliPayConfig */ |
||||
|
export async function getAliPayConfig( |
||||
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
|
params: API.getAliPayConfigParams, |
||||
|
options?: { [key: string]: any }, |
||||
|
) { |
||||
|
return request<API.RAliPayConfigBo>('/api/admin/app/aliPayConfig', { |
||||
|
method: 'GET', |
||||
|
params: { |
||||
|
...params, |
||||
|
}, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** 此处后端没有提供注释 POST /api/admin/app/aliPayConfig */ |
||||
|
export async function saveAliPayConfig( |
||||
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
|
params: API.saveAliPayConfigParams, |
||||
|
body: API.AliPayConfigBo, |
||||
|
options?: { [key: string]: any }, |
||||
|
) { |
||||
|
return request<API.RVoid>('/api/admin/app/aliPayConfig', { |
||||
|
method: 'POST', |
||||
|
headers: { |
||||
|
'Content-Type': 'application/json', |
||||
|
}, |
||||
|
params: { |
||||
|
...params, |
||||
|
}, |
||||
|
data: body, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** 此处后端没有提供注释 GET /api/admin/app/basicConfig */ |
||||
|
export async function getBasicConfig( |
||||
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
|
params: API.getBasicConfigParams, |
||||
|
options?: { [key: string]: any }, |
||||
|
) { |
||||
|
return request<API.RAppBasicConfig>('/api/admin/app/basicConfig', { |
||||
|
method: 'GET', |
||||
|
params: { |
||||
|
...params, |
||||
|
}, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** 此处后端没有提供注释 POST /api/admin/app/basicConfig */ |
||||
|
export async function saveBasicConfig(body: API.AppBasicConfig, options?: { [key: string]: any }) { |
||||
|
return request<API.RVoid>('/api/admin/app/basicConfig', { |
||||
|
method: 'POST', |
||||
|
headers: { |
||||
|
'Content-Type': 'application/json', |
||||
|
}, |
||||
|
data: body, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** 此处后端没有提供注释 GET /api/admin/app/normalConfig */ |
||||
|
export async function getAppNormalConfig( |
||||
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
|
params: API.getAppNormalConfigParams, |
||||
|
options?: { [key: string]: any }, |
||||
|
) { |
||||
|
return request<API.RAppNormalConfig>('/api/admin/app/normalConfig', { |
||||
|
method: 'GET', |
||||
|
params: { |
||||
|
...params, |
||||
|
}, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** 此处后端没有提供注释 POST /api/admin/app/normalConfig */ |
||||
|
export async function saveNormalConfig( |
||||
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
|
params: API.saveNormalConfigParams, |
||||
|
body: API.AppNormalConfig, |
||||
|
options?: { [key: string]: any }, |
||||
|
) { |
||||
|
return request<API.RVoid>('/api/admin/app/normalConfig', { |
||||
|
method: 'POST', |
||||
|
headers: { |
||||
|
'Content-Type': 'application/json', |
||||
|
}, |
||||
|
params: { |
||||
|
...params, |
||||
|
}, |
||||
|
data: body, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** 此处后端没有提供注释 GET /api/admin/app/uMengConfig */ |
||||
|
export async function getUMengConfig( |
||||
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
|
params: API.getUMengConfigParams, |
||||
|
options?: { [key: string]: any }, |
||||
|
) { |
||||
|
return request<API.RUmengConfigBo>('/api/admin/app/uMengConfig', { |
||||
|
method: 'GET', |
||||
|
params: { |
||||
|
...params, |
||||
|
}, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** 此处后端没有提供注释 POST /api/admin/app/uMengConfig */ |
||||
|
export async function saveUMengConfig( |
||||
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
|
params: API.saveUMengConfigParams, |
||||
|
body: API.UmengConfigBo, |
||||
|
options?: { [key: string]: any }, |
||||
|
) { |
||||
|
return request<API.RVoid>('/api/admin/app/uMengConfig', { |
||||
|
method: 'POST', |
||||
|
headers: { |
||||
|
'Content-Type': 'application/json', |
||||
|
}, |
||||
|
params: { |
||||
|
...params, |
||||
|
}, |
||||
|
data: body, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** 此处后端没有提供注释 GET /api/admin/app/wxConfig */ |
||||
|
export async function getWxConfig( |
||||
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
|
params: API.getWxConfigParams, |
||||
|
options?: { [key: string]: any }, |
||||
|
) { |
||||
|
return request<API.RWxConfig>('/api/admin/app/wxConfig', { |
||||
|
method: 'GET', |
||||
|
params: { |
||||
|
...params, |
||||
|
}, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** 此处后端没有提供注释 POST /api/admin/app/wxConfig */ |
||||
|
export async function saveWxConfig( |
||||
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
|
params: API.saveWxConfigParams, |
||||
|
body: API.WxConfig, |
||||
|
options?: { [key: string]: any }, |
||||
|
) { |
||||
|
return request<API.RVoid>('/api/admin/app/wxConfig', { |
||||
|
method: 'POST', |
||||
|
headers: { |
||||
|
'Content-Type': 'application/json', |
||||
|
}, |
||||
|
params: { |
||||
|
...params, |
||||
|
}, |
||||
|
data: body, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
@ -1,93 +0,0 @@ |
|||||
// @ts-ignore
|
|
||||
/* eslint-disable */ |
|
||||
import { request } from '@umijs/max'; |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/matrix/addWhiteList */ |
|
||||
export async function addWhiteList( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.addWhiteListParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/game/matrix/addWhiteList', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/matrix/bindDevice */ |
|
||||
export async function bindDevice( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.bindDeviceParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RString>('/api/game/matrix/bindDevice', { |
|
||||
method: 'POST', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/matrix/getAdvList */ |
|
||||
export async function getAdvList( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.getAdvListParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RListMatrixAdvRecordSimple>('/api/game/matrix/getAdvList', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/matrix/saveAdvRecord */ |
|
||||
export async function saveAdvRecord( |
|
||||
body: API.MatrixAdvRecordEditBo, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/game/matrix/saveAdvRecord', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 POST /api/game/matrix/saveAdvRecordV2 */ |
|
||||
export async function saveAdvRecordV2( |
|
||||
body: API.MatrixAdvRecordEditBo, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RVoid>('/api/game/matrix/saveAdvRecordV2', { |
|
||||
method: 'POST', |
|
||||
headers: { |
|
||||
'Content-Type': 'application/json', |
|
||||
}, |
|
||||
data: body, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
/** 此处后端没有提供注释 GET /api/game/matrix/whiteList */ |
|
||||
export async function whiteList( |
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
||||
params: API.whiteListParams, |
|
||||
options?: { [key: string]: any }, |
|
||||
) { |
|
||||
return request<API.RBoolean>('/api/game/matrix/whiteList', { |
|
||||
method: 'GET', |
|
||||
params: { |
|
||||
...params, |
|
||||
}, |
|
||||
...(options || {}), |
|
||||
}); |
|
||||
} |
|
@ -0,0 +1,27 @@ |
|||||
|
// @ts-ignore
|
||||
|
/* eslint-disable */ |
||||
|
import { request } from '@umijs/max'; |
||||
|
|
||||
|
/** 此处后端没有提供注释 POST /api/admin/money/audit */ |
||||
|
export async function audit(body: API.MoneyBo, options?: { [key: string]: any }) { |
||||
|
return request<API.RVoid>('/api/admin/money/audit', { |
||||
|
method: 'POST', |
||||
|
headers: { |
||||
|
'Content-Type': 'application/json', |
||||
|
}, |
||||
|
data: body, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** 此处后端没有提供注释 POST /api/admin/money/list */ |
||||
|
export async function moneyApplyList(body: API.MoneyQuery, options?: { [key: string]: any }) { |
||||
|
return request<API.RPageResultMoneyBo>('/api/admin/money/list', { |
||||
|
method: 'POST', |
||||
|
headers: { |
||||
|
'Content-Type': 'application/json', |
||||
|
}, |
||||
|
data: body, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
@ -0,0 +1,15 @@ |
|||||
|
// @ts-ignore
|
||||
|
/* eslint-disable */ |
||||
|
import { request } from '@umijs/max'; |
||||
|
|
||||
|
/** 此处后端没有提供注释 POST /api/admin/user/list */ |
||||
|
export async function list(body: API.UserQuery, options?: { [key: string]: any }) { |
||||
|
return request<API.RPageResultUserBo>('/api/admin/user/list', { |
||||
|
method: 'POST', |
||||
|
headers: { |
||||
|
'Content-Type': 'application/json', |
||||
|
}, |
||||
|
data: body, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
Loading…
Reference in new issue