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
2 lines
9.0 KiB
7 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[857],{46701:function(oe,M,o){o.r(M);var s=o(15009),f=o.n(s),L=o(99289),b=o.n(L),B=o(5574),D=o.n(B),U=o(90930),R=o(85601),N=o(66309),x=o(67294),E=o(48357),h=o(85893),S=function(){var O=(0,x.useRef)(),P=(0,x.useState)(void 0),$=D()(P,2),A=$[0],k=$[1],z=function(){var d=b()(f()().mark(function i(){var e,a,n;return f()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,E.ln)();case 2:return a=t.sent,n=[],(e=a.data)===null||e===void 0||e.forEach(function(c){n.push({label:c.name,value:c.code})}),t.abrupt("return",n);case 6:case"end":return t.stop()}},i)}));return function(){return d.apply(this,arguments)}}(),K=function(){var d=b()(f()().mark(function i(){var e,a,n;return f()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,E.N0)();case 2:return a=t.sent,n=[],(e=a.data)===null||e===void 0||e.forEach(function(c){c.role===4&&n.push({label:c.name,value:c.id})}),t.abrupt("return",n);case 6:case"end":return t.stop()}},i)}));return function(){return d.apply(this,arguments)}}(),v=function(){return window.innerWidth<=768},w=(0,x.useState)({deviceId:{show:!v()},appName:{show:!v()},platform:{show:!v()},device:{show:!v()},ip:{show:!v()},advType:{show:!v()}}),W=D()(w,2),y=W[0],H=W[1],F=[{title:"\u5E94\u7528\u540D\u79F0",hideInTable:!0,dataIndex:"code",valueType:"select",request:z},{title:"\u53E3\u5B50",hideInTable:!0,dataIndex:"adminId",valueType:"select",request:K},{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(i){return i/100}},{title:"\u8BBE\u5907",dataIndex:"device",hideInSearch:!0,valueType:"textarea",renderText:function(i,e){return(0,h.jsxs)("p",{children:[e.deviceBrand," ",(0,h.jsx)("br",{})," ",e.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,h.jsx)(N.Z,{color:"#eb0fcc",children:"\u6210\u529F"})}},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}],Z=function(i){return i?parseFloat((i/1e5).toFixed(2)):0};return(0,h.jsx)(U._z,{children:(0,h.jsx)(R.Z,{headerTitle:A?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+Z(A)+"\u5143":"",actionRef:O,rowKey:"key",search:{labelWidth:120},request:function(){var d=b()(f()().mark(function i(e){var a,n,r,t;return f()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,E._5)(e);case 2:return r=l.sent,e.current===1&&k((t=r.data)===null||t===void 0?void 0:t.sum),l.abrupt("return",{data:(a=r.data)===null||a===void 0?void 0:a.data,total:(n=r.data)===null||n===void 0?void 0:n.total,success:!0});case 5:case"end":return l.stop()}},i)}));return function(i){return d.apply(this,arguments)}}(),columns:F,columnsState:{value:y,onChange:function(i){H(i)}}})})};M.default=S},66309:function(oe,M,o){o.d(M,{Z:function(){return i}});var s=o(67294),f=o(62208),L=o(93967),b=o.n(L),B=o(98787),D=o(69760),U=o(45353),R=o(53124),N=o(54548),x=o(10274),E=o(14747),h=o(45503),S=o(91945);const Y=e=>{const{paddingXXS:a,lineWidth:n,tagPaddingHorizontal:r,componentCls:t,calc:c}=e,l=c(r).sub(n).equal(),_=c(a).sub(n).equal();return{[t]:Object.assign(Object.assign({},(0,E.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,N.bf)(e.lineWidt
|