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