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
9.0 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[857],{46701:function(ie,N,n){n.r(N);var s=n(15009),f=n.n(s),O=n(99289),P=n.n(O),R=n(5574),T=n.n(R),z=n(90930),K=n(25335),A=n(66309),x=n(67294),$=n(48357),_=n(85893),w=function(){var V=(0,x.useRef)(),j=(0,x.useState)(void 0),I=T()(j,2),M=I[0],H=I[1],te=function(){var u=P()(f()().mark(function l(){var c,e,r;return f()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,$.ln)();case 2:return e=t.sent,r=[],(c=e.data)===null||c===void 0||c.forEach(function(a){r.push({label:a.name,value:a.code})}),t.abrupt("return",r);case 6:case"end":return t.stop()}},l)}));return function(){return u.apply(this,arguments)}}(),F=function(){var u=P()(f()().mark(function l(){var c,e,r;return f()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,$.N0)();case 2:return e=t.sent,r=[],(c=e.data)===null||c===void 0||c.forEach(function(a){a.role===4&&r.push({label:a.name,value:a.id})}),t.abrupt("return",r);case 6:case"end":return t.stop()}},l)}));return function(){return u.apply(this,arguments)}}(),p=function(){return window.innerWidth<=768},Z=(0,x.useState)({deviceId:{show:!p()},appName:{show:!p()},platform:{show:!p()},device:{show:!p()},ip:{show:!p()},advType:{show:!p()}}),L=T()(Z,2),X=L[0],S=L[1],G=[{title:"\u5E94\u7528\u540D\u79F0",hideInTable:!0,dataIndex:"code",valueType:"select",request:te},{title:"\u53E3\u5B50",hideInTable:!0,dataIndex:"adminId",valueType:"select",request:F},{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"},5:{text:"\u5FEB\u624B"},7:{text:"Sigmob"}}},{title:"\u5E7F\u544A\u7C7B\u578B",dataIndex:"advType",valueEnum:{1:{text:"\u6A2A\u5E45"},2:{text:"\u63D2\u9875"},3:{text:"\u6FC0\u52B1\u89C6\u9891"}}},{title:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(l){return l/100}},{title:"\u8BBE\u5907",dataIndex:"device",hideInSearch:!0,valueType:"textarea",renderText:function(l,c){return(0,_.jsxs)("p",{children:[c.deviceBrand," ",(0,_.jsx)("br",{})," ",c.deviceName]})}},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u53E3\u5B50",dataIndex:"adminName",hideInSearch:!0,valueType:"textarea"},{title:"\u72B6\u6001",dataIndex:"status",hideInSearch:!0,renderText:function(){return(0,_.jsx)(A.Z,{color:"#eb0fcc",children:"\u6210\u529F"})}},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}],Q=function(l){return l?parseFloat((l/1e5).toFixed(2)):0};return(0,_.jsx)(z._z,{children:(0,_.jsx)(K.Z,{headerTitle:M?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+Q(M)+"\u5143":"",actionRef:V,rowKey:"key",search:{labelWidth:120},request:function(){var u=P()(f()().mark(function l(c){var e,r,o,t;return f()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,$._5)(c);case 2:return o=i.sent,c.current===1&&H((t=o.data)===null||t===void 0?void 0:t.sum),i.abrupt("return",{data:(e=o.data)===null||e===void 0?void 0:e.data,total:(r=o.data)===null||r===void 0?void 0:r.total,success:!0});case 5:case"end":return i.stop()}},l)}));return function(l){return u.apply(this,arguments)}}(),columns:G,columnsState:{value:X,onChange:function(l){S(l)}}})})};N.default=w},66309:function(ie,N,n){n.d(N,{Z:function(){return c}});var s=n(67294),f=n(93967),O=n.n(f),P=n(98423),R=n(98787),T=n(69760),z=n(96159),K=n(45353),A=n(53124),x=n(54548),$=n(10274),_=n(14747),w=n(45503),W=n(91945);const V=e=>{const{paddingXXS:r,lineWidth:o,tagPaddingHorizontal:t,componentCls:a,calc:i}=e,d=i(t).sub(o).equal(),C=i(r).sub(o).equal();return{[a]:Object.assign(Object.assign({},(0,_.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:d,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,x.b