2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
|
import{B as ie,C as re,D as ce,F as ue,G as de,o as pe,p as me,w as ve,H as ge,E as S}from"./element-plus-53a783a7.js";import"./vue-20eed888.js";import{u as he,e as fe,i as _e,a as ye,b as we,c as be,d as Te,f as Ce,g as Ee,h as xe,j as Se,k as Pe,l as ze,m as De}from"./echarts-cfb64df0.js";import{u as $e}from"./vue-i18n-d6e8419a.js";import{u as Le}from"./index-03a63030.js";import{y as Ae}from"./request-6d47a533.js";import{d as Oe,r as n,G as Ie,w as Me,f as Re,E as Ge,ai as ke,o as A,c as Ne,e as a,P as s,a as t,U as l,Q as U,b as F,T as O,u as g}from"./@vue-e95c845e.js";import{_ as Be}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"./zrender-f903d501.js";import"./tslib-54e39b60.js";import"./@intlify-d4a3a758.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";he([_e,ye,we,be,Te,Ce,Ee,xe,Se,Pe,ze,De]);const h=Ae(),Ve=async()=>await h({url:"/api/rest/statistics/interfaceOverview",method:"GET",cType:!1}),qe=async()=>await h({url:"/api/rest/statistics/runningCount",method:"GET",cType:!1}),je=async v=>await h({url:"/api/rest/statistics/trend",method:"GET",cType:!1,params:v}),Ue=async()=>await h({url:"/api/rest/statistics/logOverview",method:"GET",cType:!1}),Fe=async v=>await h({url:"/api/rest/statistics/exception",method:"GET",cType:!1,params:v}),He=async v=>await h({url:"/api/rest/statistics/realTimeLog",method:"GET",cType:!1,params:v}),Je={style:{height:"100%","overflow-y":"auto","overflow-x":"hidden","scrollbar-width":"none"}},Ke={class:"card-header"},Qe={class:"overview-content"},We={class:"stat-items"},Xe={class:"stat-item"},Ye={class:"stat-item"},Ze={class:"stat-item"},et={class:"stat-item"},tt={class:"stat-item"},at={class:"card-header"},lt={class:"card-header"},ot={class:"trend-content"},nt={class:"trend-statistics"},st={class:"stat-item"},it={class:"stat-item"},rt={class:"stat-item"},ct={class:"stat-item"},ut={class:"card-header"},dt=Oe({__name:"home",setup(v){Le(),$e();const P={table:{realTimeLog:{pageSize:10,refreshInterval:1e4},exception:{pageSize:5}}};n(12);const I=n(!1);Ie("sizeObjInfo");const _=n("day"),i=n(null),d=n({registerCount:0,publishCount:0,stopCount:0,runningCount:0}),y=n({normalCount:0,abnormalCount:0}),z=n({chartData:{xAxis:[],datas:{}}}),p=n({allTotal:0,todayAllTotal:0,allErrorTotal:0,todayAllErrorTotal:0}),M=e=>n({currentPage:1,pageSize:e,total:0,loading:!1}),m=M(P.table.realTimeLog.pageSize),D=M(P.table.exception.pageSize),w=n({customStyle:"default",hideOnSinglePage:!1,background:!1,layout:"prev, pager, next,sizes",currentPage:1,pageSize:10,total:0,pageSizeOpts:[5,10,20,50,1e3]}),b=n({customStyle:"default",hideOnSinglePage:!1,background:!1,layout:"prev, pager, next,sizes",currentPage:1,pageSize:5,total:0,pageSizeOpts:[5,10,20,50,1e3]}),R=async(e,o,r,E)=>{r.value.loading=!0;try{const c={page:r.value.currentPage,limit:r.value.pageSize},f=await e(c);f.code==="0"?(o.value=[],o.value=f.data||[],r.value.total=f.count||0):(o.value=[],r.value.total=0,S.error(E))}finally{r.value.loading=!1}},T=()=>R(He,N,w,"获取实时日志播报数据失败"),$=()=>R(Fe,B,b,"获取接口异常情况数据失败");async function H(){try{const e=await Ve();e.code==="0"?(d.value.registerCount=e.data.registerCount||0,d.value.publishCount=e.data.publishCount||0,d.value.stopCount=e.data.stopCount||0,d.value.runningCount=e.data.runningCount||0):S.error("获取接口<EFBFBD><EFBFBD>
|