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
10 KiB
2 lines
10 KiB
4 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[371],{35431:function(k,A,t){t.r(A);var L=t(97857),c=t.n(L),W=t(15009),l=t.n(W),w=t(99289),v=t.n(w),O=t(5574),j=t.n(O),y=t(48357),$=t(90930),x=t(67539),h=t(39615),C=t(57470),Z=t(64317),R=t(34540),S=t(35312),U=t(13169),g=t(96074),D=t(16250),d=t(9220),i=t(67294),m=t(96974),f=t(80484),r=t(11415),q=t(27484),ee=t.n(q),u=t(85893),te=function(){var F=(0,i.useRef)(),B=(0,i.useRef)(),re=(0,i.useState)(0),G=j()(re,2),z=G[0],ae=G[1],ne=(0,i.useState)(!1),N=j()(ne,2),K=N[0],se=N[1],ie=(0,S.useIntl)(),_e=(0,m.UO)(),I=_e.code,ue=(0,S.useModel)("@@initialState"),V=ue.initialState,E=V==null?void 0:V.currentUser,le=(0,i.useState)(),H=j()(le,2),p=H[0],de=H[1],oe=(0,i.useState)([]),J=j()(oe,2),Q=J[0],ce=J[1],b=function(){return window.innerWidth<=768},me=function(){var n=v()(l()().mark(function e(){var a,_,o;return l()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,(0,f.sk)({appCode:I||""});case 2:return _=M.sent,_.data&&ae((o=_.data)===null||o===void 0?void 0:o.filter(function(P){return P.status===0}).length),M.abrupt("return",{data:_.data,total:(a=_.data)===null||a===void 0?void 0:a.length,success:!0});case 5:case"end":return M.stop()}},e)}));return function(){return n.apply(this,arguments)}}(),ve=function(){var n=v()(l()().mark(function e(a){var _;return l()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(a){s.next=2;break}return s.abrupt("return");case 2:return s.next=4,(0,f.n4)({deviceId:a});case 4:(_=B.current)===null||_===void 0||_.reload();case 5:case"end":return s.stop()}},e)}));return function(a){return n.apply(this,arguments)}}(),pe=function(){var n=v()(l()().mark(function e(a){var _;return l()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(a){s.next=2;break}return s.abrupt("return");case 2:return s.prev=2,s.next=5,(0,f.ps)({deviceId:a});case 5:(_=B.current)===null||_===void 0||_.reload(),s.next=10;break;case 8:s.prev=8,s.t0=s.catch(2);case 10:case"end":return s.stop()}},e,null,[[2,8]])}));return function(a){return n.apply(this,arguments)}}(),fe=(0,i.useState)({deviceId:{show:!b()},appName:{show:!b()},platform:{show:!b()},deviceBrand:{show:!b()},deviceName:{show:!b()},ip:{show:!b()}}),X=j()(fe,2),he=X[0],Ee=X[1],Pe=[{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:"ecpmAdmin",hideInSearch:!0,renderText:function(e,a){return e?e/100:E!=null&&E.incomeRate&&a.ecpm?Math.floor(a.ecpm*E.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:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}],Oe=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",valueType:"text",ellipsis:!0,width:400,copyable:!0},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u6B63\u5E38"},"-1":{text:"\u5DF2\u4E0B\u7EBF"}},filters:!0,onFilter:!0},{title:"\u7ED1\u5B9A\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u64CD\u4F5C",dataIndex:"operation",hideInSearch:!0,render:function(e,a){return a.status===0?(0,u.jsx)("a",{onClick:function(){return ve(a.deviceId)},children:"\u4E0B\u7EBF"}):a.status===-1?(0,u.jsx)("a",{onClick:function(){return pe(a.deviceId)},children:"\u4E0A\u7EBF"}):null}}],De=function(){var n=v()(l()().mark(function e(a){var _,
|