"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2927],{56692:function(L,y,e){e.r(y),e.d(y,{default:function(){return F}});var c=e(15009),p=e.n(c),x=e(99289),N=e.n(x),P=e(5574),i=e.n(P),E=e(67294),d=e(76772);function _(){return(0,d.request)("/api/monitor/cache/getNames",{method:"get"})}function A(K){return(0,d.request)("/api/monitor/cache/getKeys/"+K,{method:"get"})}function f(K,I){return(0,d.request)("/api/monitor/cache/getValue/"+K+"/"+I,{method:"get"})}function n(K){return(0,d.request)("/api/monitor/cache/clearCacheName/"+K,{method:"delete"})}function l(K){return(0,d.request)("/api/monitor/cache/clearCacheKey/"+K,{method:"delete"})}function o(){return(0,d.request)("/api/monitor/cache/clearCacheAll",{method:"delete"})}var r=e(25278),a=e(77569),h=e(2453),m=e(83622),s=e(71230),v=e(15746),j=e(4393),B=e(96154),D=e(57089),Z=e(33160),R=e(97269),t=e(85893),J=r.Z.TextArea,q=function(){var I=(0,E.useState)([]),T=i()(I,2),z=T[0],w=T[1],ee=(0,E.useState)([]),G=i()(ee,2),S=G[0],k=G[1],U=(0,E.useState)([]),H=i()(U,2),te=H[0],ne=H[1],ae=a.Z.useForm(),oe=i()(ae,1),$=oe[0],Q=function(){_().then(function(u){u.code===200&&w(u.data)})};(0,E.useEffect)(function(){Q()},[]);var b=function(u){A(u).then(function(g){if(g.code===200){var O=0,W=g.data.map(function(se){return{index:O++,cacheKey:se}});ne(W)}})},V=function(){var C=N()(p()().mark(function u(){return p()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:o().then(function(W){W.code===200&&h.ZP.success("\u6E05\u7406\u5168\u90E8\u7F13\u5B58\u6210\u529F")});case 1:case"end":return O.stop()}},u)}));return function(){return C.apply(this,arguments)}}(),re=function(u){h.ZP.error("Failed:",u)},le=function(){Q(),h.ZP.success("\u5237\u65B0\u7F13\u5B58\u5217\u8868\u6210\u529F")},X=function(){b(S),h.ZP.success("\u5237\u65B0\u952E\u540D\u5217\u8868\u6210\u529F")},Y=[{title:"\u7F13\u5B58\u540D\u79F0",dataIndex:"cacheName",key:"cacheName",render:function(u,g){return g.cacheName.replace(":","")}},{title:"\u5907\u6CE8",dataIndex:"remark",key:"remark"},{title:(0,t.jsx)(d.FormattedMessage,{id:"pages.searchTable.titleOption",defaultMessage:"\u64CD\u4F5C"}),dataIndex:"option",width:"40px",valueType:"option",render:function(u,g){return[(0,t.jsx)(m.ZP,{type:"link",size:"small",danger:!0,onClick:function(){n(g.cacheName).then(function(W){W.code===200&&(h.ZP.success("\u6E05\u7406\u7F13\u5B58\u540D\u79F0["+g.cacheName+"]\u6210\u529F"),b(S))})},children:(0,t.jsx)(d.FormattedMessage,{id:"pages.searchTable.delete",defaultMessage:"\u5220\u9664"})},"remove")]}}],M=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index"},{title:"\u7F13\u5B58\u952E\u540D",dataIndex:"cacheKey",key:"cacheKey",render:function(u,g){return g.cacheKey.replace(S,"")}},{title:(0,t.jsx)(d.FormattedMessage,{id:"pages.searchTable.titleOption",defaultMessage:"\u64CD\u4F5C"}),dataIndex:"option",width:"40px",valueType:"option",render:function(u,g){return[(0,t.jsx)(m.ZP,{type:"link",size:"small",danger:!0,onClick:function(){console.log(g),l(g.cacheKey).then(function(W){W.code===200&&(h.ZP.success("\u6E05\u7406\u7F13\u5B58\u952E\u540D["+g.cacheKey+"]\u6210\u529F"),b(S))})},children:(0,t.jsx)(d.FormattedMessage,{id:"pages.searchTable.delete",defaultMessage:"\u5220\u9664"})},"remove")]}}];return(0,t.jsx)("div",{children:(0,t.jsxs)(s.Z,{gutter:[24,24],children:[(0,t.jsx)(v.Z,{span:8,children:(0,t.jsx)(j.Z,{title:"\u7F13\u5B58\u5217\u8868",extra:(0,t.jsx)(m.ZP,{icon:(0,t.jsx)(Z.Z,{}),onClick:function(){le()},type:"link"}),className:D.Z.card,children:(0,t.jsx)(B.Z,{rowKey:"cacheName",dataSource:z,columns:Y,onRow:function(u){return{onClick:function(){k(u.cacheName),b(u.cacheName)}}}})})}),(0,t.jsx)(v.Z,{span:8,children:(0,t.jsx)(j.Z,{title:"\u952E\u540D\u5217\u8868",extra:(0,t.jsx)(m.ZP,{icon:(0,t.jsx)(Z.Z,{}),onClick:function(){X()},type:"link"}),className:D.Z.card,children:(0,t.jsx)(B.Z,{rowKey:"index",dataSource:te,columns:M,onRow:function(u){return{onClick:function(){f(S,u.cacheKey).then(function(O){O.code===200&&($.resetFields(),$.setFieldsValue({cacheName:O.data.cacheName,cacheKey:O.data.cacheKey,cacheValue:O.data.cacheValue,remark:O.data.remark}))})}}}})})}),(0,t.jsx)(v.Z,{span:8,children:(0,t.jsx)(j.Z,{title:"\u7F13\u5B58\u5185\u5BB9",extra:(0,t.jsx)(m.ZP,{icon:(0,t.jsx)(Z.Z,{}),onClick:function(){V()},type:"link",children:"\u6E05\u7406\u5168\u90E8"}),className:D.Z.card,children:(0,t.jsxs)(R.A,{name:"basic",form:$,labelCol:{span:8},wrapperCol:{span:16},onFinish:V,onFinishFailed:re,autoComplete:"off",children:[(0,t.jsx)(a.Z.Item,{label:"\u7F13\u5B58\u540D\u79F0",name:"cacheName",children:(0,t.jsx)(r.Z,{})}),(0,t.jsx)(a.Z.Item,{label:"\u7F13\u5B58\u952E\u540D",name:"cacheKey",children:(0,t.jsx)(r.Z,{})}),(0,t.jsx)(a.Z.Item,{label:"\u7F13\u5B58\u5185\u5BB9",name:"cacheValue",children:(0,t.jsx)(J,{autoSize:{minRows:2}})})]})})})]})})},F=q},57089:function(L,y){y.Z={card:"card___fGN_T",miniChart:"miniChart___Qvm3q",chartContent:"chartContent___keQ6l",chartLoading:"chartLoading___wFM1g"}},81643:function(L,y,e){e.d(y,{Z:function(){return c}});const c=p=>p?typeof p=="function"?p():p:null},66330:function(L,y,e){e.d(y,{aV:function(){return _}});var c=e(67294),p=e(93967),x=e.n(p),N=e(92419),P=e(81643),i=e(53124),E=e(20136),d=function(n,l){var o={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&l.indexOf(r)<0&&(o[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a!n&&!l?null:c.createElement(c.Fragment,null,n&&c.createElement("div",{className:`${o}-title`},n),l&&c.createElement("div",{className:`${o}-inner-content`},l)),A=n=>{const{hashId:l,prefixCls:o,className:r,style:a,placement:h="top",title:m,content:s,children:v}=n,j=(0,P.Z)(m),B=(0,P.Z)(s),D=x()(l,o,`${o}-pure`,`${o}-placement-${h}`,r);return c.createElement("div",{className:D,style:a},c.createElement("div",{className:`${o}-arrow`}),c.createElement(N.G,Object.assign({},n,{className:l,prefixCls:o}),v||c.createElement(_,{prefixCls:o,title:j,content:B})))},f=n=>{const{prefixCls:l,className:o}=n,r=d(n,["prefixCls","className"]),{getPrefixCls:a}=c.useContext(i.E_),h=a("popover",l),[m,s,v]=(0,E.Z)(h);return m(c.createElement(A,Object.assign({},r,{prefixCls:h,hashId:s,className:x()(o,v)})))};y.ZP=f},55241:function(L,y,e){var c=e(67294),p=e(93967),x=e.n(p),N=e(21770),P=e(15105),i=e(81643),E=e(33603),d=e(96159),_=e(53124),A=e(83062),f=e(66330),n=e(20136),l=function(a,h){var m={};for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&h.indexOf(s)<0&&(m[s]=a[s]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,s=Object.getOwnPropertySymbols(a);v{var m,s;const{prefixCls:v,title:j,content:B,overlayClassName:D,placement:Z="top",trigger:R="hover",children:t,mouseEnterDelay:J=.1,mouseLeaveDelay:q=.1,onOpenChange:F,overlayStyle:K={},styles:I,classNames:T}=a,z=l(a,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:ee,style:G,classNames:S,styles:k}=(0,_.dj)("popover"),U=w("popover",v),[H,te,ne]=(0,n.Z)(U),ae=w(),oe=x()(D,te,ne,ee,S.root,T==null?void 0:T.root),$=x()(S.body,T==null?void 0:T.body),[Q,b]=(0,N.Z)(!1,{value:(m=a.open)!==null&&m!==void 0?m:a.visible,defaultValue:(s=a.defaultOpen)!==null&&s!==void 0?s:a.defaultVisible}),V=(M,C)=>{b(M,!0),F==null||F(M,C)},re=M=>{M.keyCode===P.Z.ESC&&V(!1,M)},le=M=>{V(M)},X=(0,i.Z)(j),Y=(0,i.Z)(B);return H(c.createElement(A.Z,Object.assign({placement:Z,trigger:R,mouseEnterDelay:J,mouseLeaveDelay:q},z,{prefixCls:U,classNames:{root:oe,body:$},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},k.root),G),K),I==null?void 0:I.root),body:Object.assign(Object.assign({},k.body),I==null?void 0:I.body)},ref:h,open:Q,onOpenChange:le,overlay:X||Y?c.createElement(f.aV,{prefixCls:U,title:X,content:Y}):null,transitionName:(0,E.m)(ae,"zoom-big",z.transitionName),"data-popover-inject":!0}),(0,d.Tm)(t,{onKeyDown:M=>{var C,u;(0,c.isValidElement)(t)&&((u=t==null?void 0:(C=t.props).onKeyDown)===null||u===void 0||u.call(C,M)),re(M)}})))});r._InternalPanelDoNotUseOrYouWillBeFired=f.ZP,y.Z=r},20136:function(L,y,e){var c=e(14747),p=e(50438),x=e(97414),N=e(79511),P=e(8796),i=e(83559),E=e(83262);const d=f=>{const{componentCls:n,popoverColor:l,titleMinWidth:o,fontWeightStrong:r,innerPadding:a,boxShadowSecondary:h,colorTextHeading:m,borderRadiusLG:s,zIndexPopup:v,titleMarginBottom:j,colorBgElevated:B,popoverBg:D,titleBorderBottom:Z,innerContentPadding:R,titlePadding:t}=f;return[{[n]:Object.assign(Object.assign({},(0,c.Wf)(f)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:v,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":B,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:D,backgroundClip:"padding-box",borderRadius:s,boxShadow:h,padding:a},[`${n}-title`]:{minWidth:o,marginBottom:j,color:m,fontWeight:r,borderBottom:Z,padding:t},[`${n}-inner-content`]:{color:l,padding:R}})},(0,x.ZP)(f,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:f.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},_=f=>{const{componentCls:n}=f;return{[n]:P.i.map(l=>{const o=f[`${l}6`];return{[`&${n}-${l}`]:{"--antd-arrow-background-color":o,[`${n}-inner`]:{backgroundColor:o},[`${n}-arrow`]:{background:"transparent"}}}})}},A=f=>{const{lineWidth:n,controlHeight:l,fontHeight:o,padding:r,wireframe:a,zIndexPopupBase:h,borderRadiusLG:m,marginXS:s,lineType:v,colorSplit:j,paddingSM:B}=f,D=l-o,Z=D/2,R=D/2-n,t=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:h+30},(0,N.w)(f)),(0,x.wZ)({contentRadius:m,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:s,titlePadding:a?`${Z}px ${t}px ${R}px`:0,titleBorderBottom:a?`${n}px ${v} ${j}`:"none",innerContentPadding:a?`${B}px ${t}px`:0})};y.Z=(0,i.I$)("Popover",f=>{const{colorBgElevated:n,colorText:l}=f,o=(0,E.IX)(f,{popoverBg:n,popoverColor:l});return[d(o),_(o),(0,p._y)(o,"zoom-big")]},A,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},79370:function(L,y,e){e.d(y,{G:function(){return N}});var c=e(98924),p=function(i){if((0,c.Z)()&&window.document.documentElement){var E=Array.isArray(i)?i:[i],d=window.document.documentElement;return E.some(function(_){return _ in d.style})}return!1},x=function(i,E){if(!p(i))return!1;var d=document.createElement("div"),_=d.style[i];return d.style[i]=E,d.style[i]!==_};function N(P,i){return!Array.isArray(P)&&i!==void 0?x(P,i):p(P)}}}]);