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.
 
 
 

1 lines
9.0 KiB

"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.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${t}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${t}-close-icon`]:{marginInlineStart:_,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${t}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${t}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${t}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},O=e=>{const{lineWidth:a,fontSizeIcon:n,calc:r}=e,t=e.fontSizeSM;return(0,h.TS)(e,{tagFontSize:t,tagLineHeight:(0,N.bf)(r(e.lineHeightSM).mul(t).equal()),tagIconSize:r(n).sub(r(a).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},P=e=>({defaultBg:new x.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var $=(0,S.I$)("Tag",e=>{const a=O(e);return Y(a)},P),A=function(e,a){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);t<r.length;t++)a.indexOf(r[t])<0&&Object.prototype.propertyIsEnumerable.call(e,r[t])&&(n[r[t]]=e[r[t]]);return n},z=s.forwardRef((e,a)=>{const{prefixCls:n,style:r,className:t,checked:c,onChange:l,onClick:_}=e,g=A(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:j,tag:p}=s.useContext(R.E_),V=Q=>{l==null||l(!c),_==null||_(Q)},T=j("tag",n),[C,X,G]=$(T),u=b()(T,`${T}-checkable`,{[`${T}-checkable-checked`]:c},p==null?void 0:p.className,t,X,G);return C(s.createElement("span",Object.assign({},g,{ref:a,style:Object.assign(Object.assign({},r),p==null?void 0:p.style),className:u,onClick:V})))}),K=o(98719);const v=e=>(0,K.Z)(e,(a,n)=>{let{textColor:r,lightBorderColor:t,lightColor:c,darkColor:l}=n;return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:r,background:c,borderColor:t,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var w=(0,S.bk)(["Tag","preset"],e=>{const a=O(e);return v(a)},P);function W(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const y=(e,a,n)=>{const r=W(n);return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var H=(0,S.bk)(["Tag","status"],e=>{const a=O(e);return[y(a,"success","Success"),y(a,"processing","Info"),y(a,"error","Error"),y(a,"warning","Warning")]},P),F=function(e,a){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);t<r.length;t++)a.indexOf(r[t])<0&&Object.prototype.propertyIsEnumerable.call(e,r[t])&&(n[r[t]]=e[r[t]]);return n};const Z=(e,a)=>{const{prefixCls:n,className:r,rootClassName:t,style:c,children:l,icon:_,color:g,onClose:j,closeIcon:p,closable:V,bordered:T=!0}=e,C=F(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:X,direction:G,tag:u}=s.useContext(R.E_),[Q,q]=s.useState(!0);s.useEffect(()=>{"visible"in C&&q(C.visible)},[C.visible]);const ee=(0,B.o2)(g),te=(0,B.yT)(g),J=ee||te,le=Object.assign(Object.assign({backgroundColor:g&&!J?g:void 0},u==null?void 0:u.style),c),m=X("tag",n),[se,ie,ce]=$(m),de=b()(m,u==null?void 0:u.className,{[`${m}-${g}`]:J,[`${m}-has-color`]:g&&!J,[`${m}-hidden`]:!Q,[`${m}-rtl`]:G==="rtl",[`${m}-borderless`]:!T},r,t,ie,ce),re=I=>{I.stopPropagation(),j==null||j(I),!I.defaultPrevented&&q(!1)},[,ue]=(0,D.Z)({closable:V,closeIcon:p!=null?p:u==null?void 0:u.closeIcon,customCloseIconRender:I=>I===null?s.createElement(f.Z,{className:`${m}-close-icon`,onClick:re}):s.createElement("span",{className:`${m}-close-icon`,onClick:re},I),defaultCloseIcon:null,defaultClosable:!1}),me=typeof C.onClick=="function"||l&&l.type==="a",ae=_||null,pe=ae?s.createElement(s.Fragment,null,ae,l&&s.createElement("span",null,l)):l,ne=s.createElement("span",Object.assign({},C,{ref:a,className:de,style:le}),pe,ue,ee&&s.createElement(w,{key:"preset",prefixCls:m}),te&&s.createElement(H,{key:"status",prefixCls:m}));return se(me?s.createElement(U.Z,{component:"Tag"},ne):ne)},d=s.forwardRef(Z);d.CheckableTag=z;var i=d}}]);