y9-interface-platform/y9vue-interfacePlatform/interface/assets/logMonitoringIndex-1b3d99b4.js

2 lines
11 KiB
JavaScript
Raw Normal View History

import{E as k,o as $,p as j,q as H,P as J,c as A,I as G,b as K,v as Q}from"./element-plus-53a783a7.js";import"./vue-20eed888.js";import{u as X}from"./vue-i18n-d6e8419a.js";import{y as Z}from"./request-6d47a533.js";/* empty css */import{d as ee,r as h,k as m,ah as te,f as le,ai as ae,o as f,c as g,e as r,P as s,a as o,F as P,a8 as S,b as V,U as T}from"./@vue-e95c845e.js";import{_ as re}from"./y9plugin-components-412bad23.js";import"./lodash-es-2e98bc53.js";import"./@vueuse-409d7ed5.js";import"./@element-plus-57b52633.js";import"./@popperjs-c75af06c.js";import"./@ctrl-f8748455.js";import"./dayjs-e13f206c.js";import"./axios-db0ed51e.js";import"./async-validator-20f92749.js";import"./memoize-one-297ddbcb.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-606f2ab9.js";import"./@intlify-d4a3a758.js";import"./index-03a63030.js";import"./lodash-11751b8b.js";import"./pinia-22d008e7.js";import"./nprogress-e9cc33fd.js";import"./vue-router-e03c3082.js";/* empty css *//* empty css *//* empty css */import"./y9plugin-sso-6f4b3ca3.js";import"./y9plugin-watermark-e18d3181.js";import"./v-viewer-decd5d79.js";import"./viewerjs-c43574b2.js";import"./vxe-table-3ccf2bcd.js";import"./xe-utils-90392958.js";import"./dom-zindex-d72a3c32.js";const C=Z(),oe=async()=>await C({url:"/api/rest/statistics/logMonitoring/options",method:"GET",cType:!1}),se=async N=>await C({url:"/api/rest/statistics/logMonitoring",method:"POST",JSON:!0,cType:!1,data:N}),ie={class:"log-monitoring",style:{height:"100%","overflow-y":"auto","overflow-x":"hidden","scrollbar-width":"none"}},ne={class:"form-row"},ue={class:"form-item"},me={class:"form-item"},de={class:"form-item"},pe={class:"form-item"},ce={class:"form-item"},fe={class:"form-row"},ve={class:"form-item"},ge={class:"form-item"},ye={class:"form-item"},_e={class:"form-item"},be={class:"form-item"},he={class:"form-row"},Pe={class:"form-item"},Se={class:"form-item time-range-item"},Ve={class:"form-item button-col"},ke={class:"button-group"},Ne=ee({__name:"logMonitoringIndex",setup(N){const{t:n}=X(),t=h({interfaceType:"",deptSystem:[],deptSystemMap:{},limitResult:"",authentic:"",isLimit:"",responseMsg:"",apiName:"",userName:"",serverIP:"",requestIP:"",requestUserName:"",timeRange:[]}),v=h({interfaceType:[],limitResult:[],authentic:[],isLimit:[],responseMsg:[]}),I=h([]),u=e=>e===null||e==="null"?"":e,R=[{type:"index",title:m(()=>n("序号")),width:70,fixed:"left"},{title:m(()=>n("请求方法")),key:"interfaceType",sortable:!0,minWidth:120,render:e=>u(e.interfaceType)},{title:m(()=>n("接口名称")),key:"apiName",sortable:!0,minWidth:160,render:e=>u(e.apiName)},{title:m(()=>n("接口负责人")),key:"userName",sortable:!0,minWidth:120,render:e=>u(e.userName)},{title:m(()=>n("部门名称")),key:"deptName",sortable:!0,minWidth:150,render:e=>u(e.deptName)},{title:m(()=>n("调用系统")),key:"applySystemName",sortable:!0,minWidth:150,render:e=>u(e.applySystemName)},{title:m(()=>n("调用时间")),key:"requestStartTime",sortable:!0,minWidth:180,render:e=>u(e.requestStartTime)},{title:m(()=>n("响应状态")),key:"responseMsg",sortable:!0,width:120,render:e=>{let l="successText";return e.responseMsg=="成功"?l="successText":e.responseMsg=="失败"&&(l="stopText"),te("div",{class:l},n(u(e.responseMsg)))}},{title:m(()=>n("服务器IP")),key:"serverIP",sortable:!0,minWidth:140,render:e=>u(e.serverIP)},{title:m(()=>n("调用者IP")),key:"requestIP",sortable:!0,minWidth:140,render:e=>u(e.requestIP)},{title:m(()=>n("是否鉴权")),key:"authentic",sortable:!0,width:120,render:e=>u(e.authentic)=="1"?"是":"否"},{title:m(()=>n("是否限流")),key:"isLimit",sortable:!0,width:120,render:e=>u(e.isLimit)=="1"?"是":"否"},{title:m(()=>n("接口调用者")),key:"requestUserName",sortable:!0,width:120,render:e=>u(e.requestUserName)},{title:m(()=>n("限流结果")),key:"limitResult",sortable:!0,width:120,render:e=>u(e.limitResult)},{title:m(()=>n("限流等待时长(ms)")),key:"limitTime",sortable:!0,width:165,render:e=>u(e.limitTime)}