Files
GDstarmotion-admin/dist/src__pages__system__log__index.b12b333e.async.js
PC-202306242200\Administrator 2081393a33 1
2024-09-19 18:28:02 +08:00

2 lines
10 KiB
JavaScript

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1873],{13520:function(re,W,r){r.r(W),r.d(W,{default:function(){return z}});var i=r(90228),j=r.n(i),H=r(87999),N=r.n(H),B=r(7485);function F(T){return L.apply(this,arguments)}function L(){return L=N()(j()().mark(function T(I){return j()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,B.request)("/sys/oper/log/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:I||{}}));case 1:case"end":return c.stop()}},T)})),L.apply(this,arguments)}var M=r(50959),E=r(12400),h=r(38546),V=r(16030),D=r(35384),o=r(11527),U=function(){var I=(0,M.useRef)(),R=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u6807\u9898",dataIndex:"title",valueType:"text",search:!0},{title:"\u7C7B\u578B",dataIndex:"businessType",valueType:"text",search:!1,render:function(l,u){var f,O=u.businessType==1?"purple":u.businessType==2?"blue":u.businessType==3?"magenta":"red",m=[{label:"\u5176\u5B83",value:0},{label:"\u65B0\u589E",value:1},{label:"\u4FEE\u6539",value:2},{label:"\u5220\u9664",value:3}];return(0,o.jsx)(E.Z,{color:O,children:(f=m.find(function(p){return p.value==u.businessType}))===null||f===void 0?void 0:f.label})}},{title:"\u65B9\u6CD5",dataIndex:"method",valueType:"text",search:!0,render:function(l){return(0,o.jsx)("div",{className:"ellipsis",style:{float:"left",maxWidth:"100px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},title:l,children:(0,o.jsx)(h.Z,{placement:"topLeft",title:l,children:l})})}},{title:"\u8BF7\u6C42\u65B9\u5F0F",dataIndex:"requestMethod",valueType:"text",search:!0},{title:"\u64CD\u4F5C\u7C7B\u522B",dataIndex:"operatorType",valueType:"text",search:!1,render:function(l,u){var f,O=[{label:"\u5176\u5B83",value:0},{label:"\u540E\u53F0\u7528\u6237",value:1},{label:"\u624B\u673A\u7AEF\u7528\u6237",value:2}];return(f=O.find(function(m){return m.value==u.operatorType}))===null||f===void 0?void 0:f.label}},{title:"\u64CD\u4F5C\u4EBA\u5458",dataIndex:"operName",valueType:"text",search:!1},{title:"\u8BF7\u6C42URL",dataIndex:"operUrl",valueType:"text",search:!1,render:function(l){return(0,o.jsx)("div",{className:"ellipsis",style:{float:"left",maxWidth:"100px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},title:l,children:(0,o.jsx)(h.Z,{placement:"topLeft",title:l,children:l})})}},{title:"\u4E3B\u673A\u5730\u5740",dataIndex:"operIp",valueType:"text",search:!1,render:function(l){return(0,o.jsx)("div",{className:"ellipsis",style:{float:"left",maxWidth:"100px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},title:l,children:(0,o.jsx)(h.Z,{placement:"topLeft",title:l,children:l})})}},{title:"\u64CD\u4F5C\u5730\u70B9",dataIndex:"operLocation",valueType:"text",search:!1,render:function(l){return(0,o.jsx)("div",{className:"ellipsis",style:{float:"left",maxWidth:"100px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},title:l,children:(0,o.jsx)(h.Z,{placement:"topLeft",title:l,children:l})})}},{title:"\u8BF7\u6C42\u53C2\u6570",dataIndex:"operParam",valueType:"text",search:!1,render:function(l){return(0,o.jsx)("div",{className:"ellipsis",style:{float:"left",maxWidth:"100px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},title:l,children:(0,o.jsx)(h.Z,{placement:"topLeft",title:l,children:l})})}},{title:"\u8FD4\u56DE\u53C2\u6570",dataIndex:"jsonResult",valueType:"text",search:!1,render:function(l){return(0,o.jsx)("div",{className:"ellipsis",style:{float:"left",maxWidth:"100px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},title:l,children:(0,o.jsx)(h.Z,{placement:"topLeft",title:l,children:l})})}},{title:"\u72B6\u6001",dataIndex:"status",valueType:"text",search:!1,render:function(l,u){var f=u.status==0?"green":"red";return(0,o.jsx)(E.Z,{color:f,children:u.status==0?"\u6B63\u5E38":"\u5F02\u5E38"})}},{title:"\u9519\u8BEF\u6D88\u606F",dataIndex:"errorMsg",valueType:"text",search:!1,render:function(l){return(0,o.jsx)("div",{className:"ellipsis",style:{float:"left",maxWidth:"100px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},title:l,children:(0,o.jsx)(h.Z,{placement:"topLeft",title:l,children:l})})}},{title:"\u64CD\u4F5C\u65F6\u95F4",dataIndex:"operTime",valueType:"text",search:!1},{title:"\u6D88\u8017\u65F6\u95F4",dataIndex:"costTime",valueType:"text",search:!1}];return(0,o.jsx)(V._z,{children:(0,o.jsx)("div",{style:{width:"100%",float:"right"},children:(0,o.jsx)(D.Z,{actionRef:I,rowKey:"id",search:{labelWidth:120},request:function(){var c=N()(j()().mark(function l(u,f,O){var m,p;return j()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,F(u);case 2:return m=x.sent,p=m.data,x.abrupt("return",{data:(p==null?void 0:p.records)||[],total:p==null?void 0:p.total});case 5:case"end":return x.stop()}},l)}));return function(l,u,f){return c.apply(this,arguments)}}(),columns:R},"logList")})})},z=U},12400:function(re,W,r){r.d(W,{Z:function(){return ae}});var i=r(50959),j=r(20819),H=r(82187),N=r.n(H),B=r(67806),F=r(80599),L=r(72585),M=r(76144),E=r(601),h=r(99978),V=r(54531),D=r(56352),o=r(79349);const U=e=>{const{paddingXXS:a,lineWidth:s,tagPaddingHorizontal:t,componentCls:n,calc:g}=e,d=g(t).sub(s).equal(),S=g(a).sub(s).equal();return{[n]:Object.assign(Object.assign({},(0,V.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,E.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:S,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-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(${n}-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}}),[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},z=e=>{const{lineWidth:a,fontSizeIcon:s,calc:t}=e,n=e.fontSizeSM;return(0,D.TS)(e,{tagFontSize:n,tagLineHeight:(0,E.bf)(t(e.lineHeightSM).mul(n).equal()),tagIconSize:t(s).sub(t(a).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},T=e=>({defaultBg:new h.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var I=(0,o.I$)("Tag",e=>{const a=z(e);return U(a)},T),R=function(e,a){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n<t.length;n++)a.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(s[t[n]]=e[t[n]]);return s},l=i.forwardRef((e,a)=>{const{prefixCls:s,style:t,className:n,checked:g,onChange:d,onClick:S}=e,y=R(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Z,tag:C}=i.useContext(M.E_),A=K=>{d==null||d(!g),S==null||S(K)},w=Z("tag",s),[$,X,G]=I(w),b=N()(w,`${w}-checkable`,{[`${w}-checkable-checked`]:g},C==null?void 0:C.className,n,X,G);return $(i.createElement("span",Object.assign({},y,{ref:a,style:Object.assign(Object.assign({},t),C==null?void 0:C.style),className:b,onClick:A})))}),u=r(33653);const f=e=>(0,u.Z)(e,(a,s)=>{let{textColor:t,lightBorderColor:n,lightColor:g,darkColor:d}=s;return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:t,background:g,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:d,borderColor:d},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var O=(0,o.bk)(["Tag","preset"],e=>{const a=z(e);return f(a)},T);function m(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const p=(e,a,s)=>{const t=m(s);return{[`${e.componentCls}${e.componentCls}-${a}`]:{color:e[`color${s}`],background:e[`color${t}Bg`],borderColor:e[`color${t}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var J=(0,o.bk)(["Tag","status"],e=>{const a=z(e);return[p(a,"success","Success"),p(a,"processing","Info"),p(a,"error","Error"),p(a,"warning","Warning")]},T),x=function(e,a){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n<t.length;n++)a.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(s[t[n]]=e[t[n]]);return s};const ne=(e,a)=>{const{prefixCls:s,className:t,rootClassName:n,style:g,children:d,icon:S,color:y,onClose:Z,closeIcon:C,closable:A,bordered:w=!0}=e,$=x(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:X,direction:G,tag:b}=i.useContext(M.E_),[K,k]=i.useState(!0);i.useEffect(()=>{"visible"in $&&k($.visible)},[$.visible]);const q=(0,B.o2)(y),_=(0,B.yT)(y),Q=q||_,oe=Object.assign(Object.assign({backgroundColor:y&&!Q?y:void 0},b==null?void 0:b.style),g),v=X("tag",s),[se,ie,ce]=I(v),de=N()(v,b==null?void 0:b.className,{[`${v}-${y}`]:Q,[`${v}-has-color`]:y&&!Q,[`${v}-hidden`]:!K,[`${v}-rtl`]:G==="rtl",[`${v}-borderless`]:!w},t,n,ie,ce),ee=P=>{P.stopPropagation(),Z==null||Z(P),!P.defaultPrevented&&k(!1)},[,ue]=(0,F.Z)(A,C,P=>P===null?i.createElement(j.Z,{className:`${v}-close-icon`,onClick:ee}):i.createElement("span",{className:`${v}-close-icon`,onClick:ee},P),null,!1),pe=typeof $.onClick=="function"||d&&d.type==="a",te=S||null,fe=te?i.createElement(i.Fragment,null,te,d&&i.createElement("span",null,d)):d,le=i.createElement("span",Object.assign({},$,{ref:a,className:de,style:oe}),fe,ue,q&&i.createElement(O,{key:"preset",prefixCls:v}),_&&i.createElement(J,{key:"status",prefixCls:v}));return se(pe?i.createElement(L.Z,{component:"Tag"},le):le)},Y=i.forwardRef(ne);Y.CheckableTag=l;var ae=Y}}]);