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