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.5 KiB

5 months ago
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[857],{46701:function(oe,M,n){n.r(M);var l=n(15009),b=n.n(l),U=n(99289),I=n.n(U),B=n(5574),D=n.n(B),z=n(90930),R=n(85601),A=n(66309),S=n(67294),N=n(48357),_=n(85893),E=function(){var O=(0,S.useRef)(),P=(0,S.useState)(void 0),$=D()(P,2),W=$[0],k=$[1],K=function(){var d=I()(b()().mark(function i(){var u,e,r;return b()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,N.ln)();case 2:return e=t.sent,r=[],(u=e.data)===null||u===void 0||u.forEach(function(a){r.push({label:a.name,value:a.code})}),t.abrupt("return",r);case 6:case"end":return t.stop()}},i)}));return function(){return d.apply(this,arguments)}}(),v=function(){return window.innerWidth<=768},H=(0,S.useState)({deviceId:{show:!v()},appName:{show:!v()},platform:{show:!v()},device:{show:!v()},ip:{show:!v()},advType:{show:!v()}}),L=D()(H,2),F=L[0],y=L[1],w=[{title:"\u5E94\u7528\u540D\u79F0",hideInTable:!0,dataIndex:"code",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,u){return(0,_.jsxs)("p",{children:[u.deviceBrand," ",(0,_.jsx)("br",{})," ",u.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"}],Z=function(i){return i?parseFloat((i/1e5).toFixed(2)):0};return(0,_.jsx)(z._z,{children:(0,_.jsx)(R.Z,{headerTitle:W?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+Z(W)+"\u5143":"",actionRef:O,rowKey:"key",search:{labelWidth:120},request:function(){var d=I()(b()().mark(function i(u){var e,r,o,t;return b()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,N._5)(u);case 2:return o=s.sent,u.current===1&&k((t=o.data)===null||t===void 0?void 0:t.sum),s.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 s.stop()}},i)}));return function(i){return d.apply(this,arguments)}}(),columns:w,columnsState:{value:F,onChange:function(i){y(i)}}})})};M.default=E},66309:function(oe,M,n){n.d(M,{Z:function(){return u}});var l=n(67294),b=n(62208),U=n(93967),I=n.n(U),B=n(98787),D=n(69760),z=n(45353),R=n(53124),A=n(54548),S=n(10274),N=n(14747),_=n(45503),E=n(91945);const Y=e=>{const{paddingXXS:r,lineWidth:o,tagPaddingHorizontal:t,componentCls:a,calc:s}=e,c=s(t).sub(o).equal(),h=s(r).sub(o).equal();return{[a]:Object.assign(Object.assign({},(0,N.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,A.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:h,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.