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