|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6217,1322],{52953:function(){},33662:function(ne,N,t){"use strict";t.r(N),t.d(N,{default:function(){return L}});var g=t(57338),K=t(25084),R=t(34792),D=t(48086),j=t(98858),P=t(4914),n=t(3182),W=t(2824),Q=t(94043),E=t.n(Q),w=t(67294),k=t(78009),p=t(16894),Z=t(41707),z=t(99165),I=t(48971);function T($){return(0,I.WY)("/kitchen/api/log/request-log-page",{method:"post",data:$})}var c=t(85893),q=function(){var _=(0,w.useRef)(),V=(0,w.useState)({}),G=(0,W.Z)(V,2),S=G[0],ee=G[1],a=(0,w.useState)(!1),e=(0,W.Z)(a,2),l=e[0],r=e[1],m=function(){var v=(0,n.Z)(E().mark(function o(s){return E().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:ee({ip:s.ip,refererUrl:s.refererUrl,requestUrl:s.requestURL,parameters:s.requestData,returnResult:s.resultData});case 1:case"end":return f.stop()}},o)}));return function(s){return v.apply(this,arguments)}}(),d=new Map;d.set(!0,{text:"\u5F02\u5E38",status:"Error"}),d.set(!1,{text:"\u6B63\u5E38",status:"Success"});var u=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684key",hideInSearch:!0,hideInTable:!0},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C\u8BF4\u660E",dataIndex:"methodName",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date",hideInForm:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(o,s){return[(0,c.jsx)("a",{onClick:(0,n.Z)(E().mark(function y(){return E().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,m(s);case 2:r(!0);case 3:case"end":return x.stop()}},y)})),children:"\u8BE6\u60C5"},s.id)]}}],C=(0,I.YB)();return(0,c.jsxs)(k.ZP,{children:[(0,c.jsx)(p.ZP,{headerTitle:"\u8BF7\u6C42\u65E5\u5FD7",actionRef:_,rowKey:"id",search:{labelWidth:120},request:function(){var v=(0,n.Z)(E().mark(function o(s){var y,f;return E().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return y=[],f=0,i.next=4,T(JSON.stringify(s)).then(function(b){y=b.data.data,f=b.data.total});case 4:return i.abrupt("return",{data:y,success:!0,total:f});case 5:case"end":return i.stop()}},o)}));return function(o){return v.apply(this,arguments)}}(),columns:u,pagination:{defaultPageSize:10}}),(0,c.jsxs)(K.Z,{title:"\u8BE6\u60C5",placement:"right",size:"large",onClose:function(){r(!1)},visible:l,children:[(0,c.jsxs)(P.Z,{column:1,children:[(0,c.jsx)(P.Z.Item,{label:"\u64CD\u4F5CIP",children:(0,c.jsx)(Z.ZP,{text:S.ip})}),(0,c.jsx)(P.Z.Item,{label:"\u53C2\u8003\u5730\u5740",children:(0,c.jsx)(Z.ZP,{text:S.refererUrl})}),(0,c.jsx)(P.Z.Item,{label:"\u8BF7\u6C42\u5730\u5740",children:(0,c.jsx)(Z.ZP,{text:S.requestUrl})})]}),(0,c.jsxs)(P.Z,{children:[(0,c.jsxs)(P.Z.Item,{label:"\u8BF7\u6C42\u6570\u636E",children:[(0,c.jsx)("a",{onClick:function(){var o=document.createElement("input");o.value=S.parameters,document.body.appendChild(o),o.select(),document.execCommand("Copy"),D.default.success("\u590D\u5236\u6210\u529F"),o.remove()},children:(0,c.jsx)(z.Z,{})}),(0,c.jsx)("div",{style:{width:"220px",overflow:"scroll",overflowX:"auto"},children:(0,c.jsx)(Z.ZP,{text:S.parameters,valueType:"jsonCode"})})]}),(0,c.jsxs)(P.Z.Item,{label:"\u8FD4\u56DE\u6570\u636E",children:[(0,c.jsx)("a",{onClick:function(){var o=document.createElement("input");o.value=S.returnResult,document.body.appendChild(o),o.select(),document.execCommand("Copy"),D.default.success("\u590D\u5236\u6210\u529F"),o.remove()},children:(0,c.jsx)(z.Z,{})}),(0,c.jsx)("div",{style:{width:"400px",overflow:"scroll",overflowX:"auto"},children:(0,c.jsx)(Z.ZP,{text:S.returnResult,valueType:"jsonCode"})})]})]})]},"1")]})},L=q},4914:function(ne,N,t){"use strict";t.d(N,{K:function(){return L},Z:function(){return ee}});var g=t(96156),K=t(28481),R=t(90484),D=t(94184),j=t.n(D),P=t(50344),n=t(67294),W=t(53124),Q=t(96159),E=t(24308),w=function(e){var l=e.children;return l},k=w,p=t(22122);function Z(a){return a!=null}var z=function(e){var l=e.itemPrefixCls,r=e.component,m=e.span,d=e.className,u=e.style,C=e.labelStyle,v=e.contentStyle,o=e.bordered,s=e.label,y=e.content,f=e.colon,x=r;if(o){var i;return n.createElement(x,{className:j()((i={},(0,g.Z)(i,"".concat(l,"-item-label"),Z(s)),(0,g.Z)(i,"".concat(l,"-item-content"),Z(y)),i),d),style:u,colSpan:m},Z(s)&&n.createElement("span",{style:C},s),Z(y)&&n.createElement("span",{style:v},y))}return n.createElement(x,{className:j()("".concat(l,"-item"),d),style:u,colSpan:m},n.createElement("div",{className:"".concat(l,"-item-container")},(s||s===0)&&n.createElement("span",{className:j()("".concat(l,"-item-label"),(0,g.Z)({},"".concat(l,"-item-no-colon"),!f)),style:C},s),(y||y===0)&&n.createElement("span",{className:j()("".concat(l,"-item-content")),style:v},y)))},I=z;function T(a,e,l){var r=e.colon,m=e.prefixCls,d=e.bordered,u=l.component,C=l.type,v=l.showLabel,o=l.showContent,s=l.labelStyle,y=l.contentStyle;return a.map(function(f,x){var i=f.props,b=i.label,M=i.children,O=i.prefixCls,U=O===void 0?m:O,A=i.className,h=i.style,X=i.labelStyle,B=i.contentStyle,Y=i.span,J=Y===void 0?1:Y,F=f.key;return typeof u=="string"?n.createElement(I,{key:"".concat(C,"-").concat(F||x),className:A,style:h,labelStyle:(0,p.Z)((0,p.Z)({},s),X),contentStyle:(0,p.Z)((0,p.Z)({},y),B),span:J,colon:r,component:u,itemPrefixCls:U,bordered:d,label:v?b:null,content:o?M:null}):[n.createElement(I,{key:"label-".concat(F||x),className:A,style:(0,p.Z)((0,p.Z)((0,p.Z)({},s),h),X),span:1,colon:r,component:u[0],itemPrefixCls:U,bordered:d,label:b}),n.createElement(I,{key:"content-".concat(F||x),className:A,style:(0,p.Z)((0,p.Z)((0,p.Z)({},y),h),B),span:J*2-1,component:u[1],itemPrefixCls:U,bordered:d,content:M})]})}var c=function(e){var l=n.useContext(L),r=e.prefixCls,m=e.vertical,d=e.row,u=e.index,C=e.bordered;return m?n.createElement(n.Fragment,null,n.createElement("tr",{key:"label-".concat(u),className:"".concat(r,"-row")},T(d,e,(0,p.Z)({component:"th",type:"label",showLabel:!0},l))),n.createElement("tr",{key:"content-".concat(u),className:"".concat(r,"-row")},T(d,e,(0,p.Z)({component:"td",type:"content",showContent:!0},l)))):n.createElement("tr",{key:u,className:"".concat(r,"-row")},T(d,e,(0,p.Z)({component:C?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},l)))},q=c,L=n.createContext({}),$={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function _(a,e){if(typeof a=="number")return a;if((0,R.Z)(a)==="object")for(var l=0;l<E.c4.length;l++){var r=E.c4[l];if(e[r]&&a[r]!==void 0)return a[r]||$[r]}return 3}function V(a,e,l){var r=a;return(e===void 0||e>l)&&(r=(0,Q.Tm)(a,{span:l})),r}function G(a,e){var l=(0,P.Z)(a).filter(function(u){return u}),r=[],m=[],d=e;return l.forEach(function(u,C){var v,o=(v=u.props)===null||v===void 0?void 0:v.span,s=o||1;if(C===l.length-1){m.push(V(u,o,d)),r.push(m);return}s<d?(d-=s,m.push(u)):(m.push(V(u,s,d)),r.push(m),d=e,m=[])}),r}function S(a){var e,l=a.prefixCls,r=a.title,m=a.extra,d=a.column,u=d===void 0?$:d,C=a.colon,v=C===void 0?!0:C,o=a.bordered,s=a.layout,y=a.children,f=a.className,x=a.style,i=a.size,b=a.labelStyle,M=a.contentStyle,O=n.useContext(W.E_),U=O.getPrefixCls,A=O.direction,h=U("descriptions",l),X=n.useState({}),B=(0,K.Z)(X,2),Y=B[0],J=B[1],F=_(u,Y);n.useEffect(function(){var te=E.ZP.subscribe(function(H){(0,R.Z)(u)==="object"&&J(H)});return function(){E.ZP.unsubscribe(te)}},[]);var ae=G(y,F),le=n.useMemo(function(){return{labelStyle:b,contentStyle:M}},[b,M]);return n.createElement(L.Provider,{value:le},n.createElement("div",{className:j()(h,(e={},(0,g.Z)(e,"".concat(h,"-").concat(i),i&&i!=="default"),(0,g.Z)(e,"".concat(h,"-bordered"),!!o),(0,g.Z)(e,"".concat(h,"-rtl"),A==="rtl"),e),f),style:x},(r||m)&&n.createElement("div",{className:"".concat(h,"-header")},r&&n.createElement("div",{className:"".concat(h,"-title")},r),m&&n.createElement("div",{className:"".concat(h,"-extra")},m)),n.createElement("div",{className:"".concat(h,"-view")},n.createElement("table",null,n.createElement("tbody",null,ae.map(function(te,H){return n.createElement(q,{key:H,index:H,colon:v,prefixCls:h,vertical:s==="vertical",bordered:o,row:te})}))))))}S.Item=k;var ee=S},98858:function(ne,N,t){"use strict";var g=t(38663),K=t.n(g),R=t(52953),D=t.n(R)}}]);
|