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
8.3 KiB
2 lines
8.3 KiB
7 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[371],{89793:function(we,M,t){t.r(M),t.d(M,{default:function(){return se}});var L=t(97857),o=t.n(L),N=t(15009),l=t.n(N),Q=t(99289),h=t.n(Q),W=t(5574),C=t.n(W),H=t(90930),b=t(85601),S=t(31847),J=t(57470),V=t(64317),X=t(34540),I=t(35312),Y=t(13169),w=t(96074),R=t(16250),k=t(9220),y=t(67294),q=t(96974),_=t(48357);function ee(v,c){return $.apply(this,arguments)}function $(){return $=h()(l()().mark(function v(c,p){return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,I.request)("/api/admin/device/incomeDaily",o()({method:"POST",headers:{"Content-Type":"application/json"},data:c},p||{})));case 1:case"end":return i.stop()}},v)})),$.apply(this,arguments)}function te(v,c){return E.apply(this,arguments)}function E(){return E=h()(l()().mark(function v(c,p){return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,I.request)("/api/admin/device/incomeOverview",o()({method:"GET",params:o()({},c)},p||{})));case 1:case"end":return i.stop()}},v)})),E.apply(this,arguments)}function ae(v,c){return O.apply(this,arguments)}function O(){return O=h()(l()().mark(function v(c,p){return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,I.request)("/api/admin/device/list",o()({method:"GET",params:o()({},c)},p||{})));case 1:case"end":return i.stop()}},v)})),O.apply(this,arguments)}function re(v,c){return A.apply(this,arguments)}function A(){return A=h()(l()().mark(function v(c,p){return l()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,I.request)("/api/admin/device/offline",o()({method:"POST",params:o()({},c)},p||{})));case 1:case"end":return i.stop()}},v)})),A.apply(this,arguments)}var ne=t(92296),ie=t(27484),ue=t.n(ie),n=t(85893),le=function(){var c=(0,y.useRef)(),p=(0,y.useRef)(),D=(0,y.useState)(0),i=C()(D,2),B=i[0],de=i[1],ce=(0,y.useState)(!1),z=C()(ce,2),Z=z[0],oe=z[1],ve=(0,I.useIntl)(),fe=(0,q.UO)(),j=fe.code,pe=(0,I.useModel)("@@initialState"),F=pe.initialState,m=F==null?void 0:F.currentUser,he=(0,y.useState)(),P=C()(he,2),f=P[0],me=P[1],xe=(0,y.useState)([]),G=C()(xe,2),U=G[0],ye=G[1],ge=function(){var a=h()(l()().mark(function e(){var r,u,s;return l()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,ae({appCode:j||""});case 2:return u=g.sent,u.data&&de((s=u.data)===null||s===void 0?void 0:s.filter(function(x){return x.status===0}).length),g.abrupt("return",{data:u.data,total:(r=u.data)===null||r===void 0?void 0:r.length,success:!0});case 5:case"end":return g.stop()}},e)}));return function(){return a.apply(this,arguments)}}(),Se=function(){var a=h()(l()().mark(function e(r){var u;return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(r){d.next=2;break}return d.abrupt("return");case 2:return d.next=4,re({deviceId:r});case 4:(u=p.current)===null||u===void 0||u.reload();case 5:case"end":return d.stop()}},e)}));return function(r){return a.apply(this,arguments)}}(),Ie=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u5E94\u7528\u540D\u79F0",hideInSearch:!0,dataIndex:"appName",valueType:"textarea"},{title:"\u5E73\u53F0",dataIndex:"platform",valueEnum:{1:{text:"\u7A7F\u5C71\u7532"},2:{text:"\u817E\u8BAF"},3:{text:"\u767E\u5EA6\u8054\u76DF"},4:{text:"Mintegral"},5:{text:"\u5FEB\u624B"},6:{text:"\u6E38\u53EF\u8D62"},7:{text:"Sigmob"},8:{text:"Admob"}}},{title:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(e){return e/100}},{title:"ecpm-\u62BD\u6210\u540E(\u5143)",dataIndex:"deductEcpm",hideInSearch:!0,renderText:function(e,r){return m!=null&&m.incomeRate&&r.ecpm?Math.floor(r.ecpm*m.incomeRate/100)/100:"-"}},{title:"\u8BBE\u5907\u54C1\u724C",dataIndex:"deviceBrand",hideInSearch:!0,valueType:"textarea"},{title:"\u8BBE\u5907\u540D",dataIndex:"deviceName",hideInSearch:!0,valueType:"textarea"},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"cre
|