3 lines
48 KiB
JavaScript
3 lines
48 KiB
JavaScript
|
|
import{E as $t}from"./index-wZSXRbTm.js";import{E as qt}from"./index-CunlXsH6.js";import{E as jt}from"./index-LblaQ-sT.js";import{E as Zt,a as Qt}from"./index-uEvcRnhb.js";import{E as Kt}from"./index-C6BYR-GL.js";import{d as Jt,c as me,p as ea,q as x,s as H,w as de,f as Oe,M as ke,ad as Re,y as ta,j as Ne,o as be,x as ve,v as aa,n as Ee,aa as U}from"./index-_T_ZwAU8.js";import{P as F,D as et,r as tt,a as St,d as ra,S as at,b as rt,l as Ge,c as na,e as ia,p as sa,t as At,f as oa,L as la,i as xt,F as ca,g as ua,h as da,j as va,k as ga,A as fa,m as wt,n as ha,o as pa,q as ma,s as ba,u as Be,v as ya,w as Sa,x as Aa,y as _t,z as nt,C as fe,B as Q,E as $,G as xa,H as Ve,I as ye,_ as ne,J as Lt,K as Xe,M as wa,N as _a,O as La,Q as it,R as $e,T as Dt,U as It,V as Da,W as Ia,X as ae,Y as re,Z as _e,$ as Mt,a0 as Ma,a1 as Ca,a2 as Pa,a3 as qe,a4 as Ct,a5 as De,a6 as Pt,a7 as q,a8 as Tt,a9 as Ot,aa as Ta,ab as Oa,ac as ka,ad as kt,ae as Rt,af as Ra,ag as Na,ah as Ea,ai as Ga,aj as Ba,ak as st,al as Va,am as Wa,an as za,ao as Fa,ap as Nt,aq as Ua,ar as Ya,as as Ha,at as Xa,au as $a,av as qa,aw as ja,ax as Za,ay as Qa,az as Ka,aA as Ja,aB as er,aC as tr,aD as ar,aE as rr,aF as nr,aG as ir,aH as We}from"./install-Cbs2j734.js";import{S as ot,c as sr}from"./createSeriesDataSimply-o4lofKWa.js";import{_ as or}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vnode-BBSgohgu.js";import"./index-DrL-DdXi.js";import"./index-CaL9AHzU.js";import"./index-DPr6SX3u.js";import"./castArray-BlzMMKhq.js";import"./index-CnFjh-NG.js";import"./index-jXIxALr6.js";import"./raf-BSHx3Xj9.js";import"./scroll-xdnWlbe1.js";import"./index-I-t9u_Se.js";import"./clamp-eKDmixUu.js";import"./toNumber-B7ieOfxs.js";import"./_baseIteratee-C37ZLjhl.js";function Et(r,a,t,e,n,s,i,o){var l=n-r,u=s-a,c=t-r,d=e-a,g=Math.sqrt(c*c+d*d);c/=g,d/=g;var p=l*c+u*d,v=p/g;v*=g;var h=i[0]=r+v*c,f=i[1]=a+v*d;return Math.sqrt((h-n)*(h-n)+(f-s)*(f-s))}var j=new F,B=new F,z=new F,Z=new F,X=new F,Le=[],Y=new F;function lr(r,a){if(a<=180&&a>0){a=a/180*Math.PI,j.fromArray(r[0]),B.fromArray(r[1]),z.fromArray(r[2]),F.sub(Z,j,B),F.sub(X,z,B);var t=Z.len(),e=X.len();if(!(t<.001||e<.001)){Z.scale(1/t),X.scale(1/e);var n=Z.dot(X),s=Math.cos(a);if(s<n){var i=Et(B.x,B.y,z.x,z.y,j.x,j.y,Le);Y.fromArray(Le),Y.scaleAndAdd(X,i/Math.tan(Math.PI-a));var o=z.x!==B.x?(Y.x-B.x)/(z.x-B.x):(Y.y-B.y)/(z.y-B.y);if(isNaN(o))return;o<0?F.copy(Y,B):o>1&&F.copy(Y,z),Y.toArray(r[1])}}}}function cr(r,a,t){if(t<=180&&t>0){t=t/180*Math.PI,j.fromArray(r[0]),B.fromArray(r[1]),z.fromArray(r[2]),F.sub(Z,B,j),F.sub(X,z,B);var e=Z.len(),n=X.len();if(!(e<.001||n<.001)){Z.scale(1/e),X.scale(1/n);var s=Z.dot(a),i=Math.cos(t);if(s<i){var o=Et(B.x,B.y,z.x,z.y,j.x,j.y,Le);Y.fromArray(Le);var l=Math.PI/2,u=Math.acos(X.dot(a)),c=l+u-t;if(c>=l)F.copy(Y,z);else{Y.scaleAndAdd(X,o/Math.tan(Math.PI/2-c));var d=z.x!==B.x?(Y.x-B.x)/(z.x-B.x):(Y.y-B.y)/(z.y-B.y);if(isNaN(d))return;d<0?F.copy(Y,B):d>1&&F.copy(Y,z)}Y.toArray(r[1])}}}}function ze(r,a,t,e){var n=t==="normal",s=n?r:r.ensureState(t);s.ignore=a;var i=e.get("smooth");i=i===!0?.3:Math.max(+i,0)||0,s.shape=s.shape||{},s.shape.smooth=i;var o=e.getModel("lineStyle").getLineStyle();n?r.useStyle(o):s.style=o}function ur(r,a){var t=a.smooth,e=a.points;if(e)if(r.moveTo(e[0][0],e[0][1]),t>0&&e.length>=3){var n=rt(e[0],e[1]),s=rt(e[1],e[2]);if(!n||!s){r.lineTo(e[1][0],e[1][1]),r.lineTo(e[2][0],e[2][1]);return}var i=Math.min(n,s)*t,o=Ge([],e[1],e[0],i/n),l=Ge([],e[1],e[2],i/s),u=Ge([],o,l,.5);r.bezierCurveTo(o[0],o[1],o[0],o[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],e[2][0],e[2][1])}else for(var c=1;c<e.length;c++)r.lineTo(e[c][0],e[c][1])}function dr(r,a,t){var e=r.getTextGuideLine(),n=r.getTextContent();if(!n){e&&r.removeTextGuideLine();return}for(var s=a.normal,i=s.get("show"),o=n.ignore,l=0;l<et.length;l++){var u=et[l],c=a[u],d=u==="normal";if(c){var g=c.get("show"),p=d?o:tt(n.states[u]&&n.states[u].ignore,o);if(p||!tt(g,i)){var v=d?e:e&&e.states[u];v&&(v.ignore=!0),e&&ze(e,!0,u,c);continue}e||(e=new St,r.setTextGuideLine(e),!d&&(o||!i)&&ze(e,!0,"normal",a.normal),r.stateProxy
|
|||
|
|
今天`],axisLine:{lineStyle:{color:"#e2e8f0"}},axisTick:{show:!1},axisLabel:{color:"#64748b",fontSize:11,lineHeight:16,margin:12}},yAxis:[{type:"value",name:"次数 / GPU 数",min:0,max:20,interval:5,nameTextStyle:{color:"#64748b",fontSize:11,align:"left"},axisLabel:{color:"#64748b",fontSize:11},axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"#eef2f7"}}},{type:"value",name:"准确率",min:0,max:100,interval:25,nameTextStyle:{color:"#64748b",fontSize:11,align:"right"},axisLabel:{color:"#64748b",fontSize:11,formatter:"{value}%"},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}}],series:[{name:"训练次数(次)",type:"bar",data:[8,12,10,15,13,18,11],barMaxWidth:16,itemStyle:{borderRadius:[3,3,0,0]},label:{show:!0,position:"top",color:"#64748b",fontSize:10}},{name:"GPU 使用数(个)",type:"bar",data:[3,4,4,6,5,7,5],barMaxWidth:16,itemStyle:{borderRadius:[3,3,0,0]},label:{show:!0,position:"top",color:"#64748b",fontSize:10}},{name:"平均准确率(%)",type:"bar",yAxisIndex:1,data:[82,85,84,88,87,91,89],barMaxWidth:16,itemStyle:{borderRadius:[3,3,0,0]},label:{show:!0,position:"top",color:"#d97706",fontSize:10}}]})),u=Ne(()=>({animationDuration:500,tooltip:{trigger:"item"},color:["#4f46e5","#10b981","#f59e0b","#3b82f6","#ec4899"],series:[{name:"操作分类",type:"pie",radius:["40%","64%"],center:["50%","50%"],avoidLabelOverlap:!0,itemStyle:{borderRadius:6,borderColor:"#fff",borderWidth:2},label:{show:!0,position:"outside",formatter:"{b}",color:"#475569",fontSize:11,lineHeight:16,width:70,overflow:"truncate"},emphasis:{label:{show:!0,fontSize:12,fontWeight:"bold",color:"#1e293b"}},labelLine:{show:!0,length:10,length2:8,lineStyle:{color:"#94a3b8",width:1}},data:[{value:1048,name:"模型训练"},{value:735,name:"数据处理"},{value:580,name:"模型评测"},{value:484,name:"模型推理"},{value:300,name:"系统设置"}]}]})),c=[{id:1,username:"admin",duration:124},{id:2,username:"zhangsan",duration:86},{id:3,username:"lisi",duration:42},{id:4,username:"wangwu",duration:18}],d=Ne(()=>({animationDuration:500,grid:{top:8,right:12,bottom:6,left:8,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},valueFormatter:f=>`${f} 小时`},xAxis:{type:"value",max:Math.ceil(Math.max(...c.map(f=>f.duration))*1.15/10)*10,splitNumber:4,axisLabel:{color:"#94a3b8",fontSize:11,formatter:"{value}h"},axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"#eef2f7"}}},yAxis:{type:"category",inverse:!0,data:c.map(f=>f.username),axisLabel:{color:"#475569",fontSize:12},axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"登录时长",type:"bar",data:c.map(f=>f.duration),barMaxWidth:18,barCategoryGap:"34%",itemStyle:{color:"#4f46e5",borderRadius:[0,4,4,0]},label:{show:!0,position:"insideRight",distance:6,color:"#ffffff",fontSize:11,formatter:"{c} 小时"}}]})),g=[{id:1,username:"admin",role:"超级管理员",lastLogin:"10 分钟前"},{id:2,username:"zhangsan",role:"操作员",lastLogin:"2 小时前"},{id:5,username:"zhaoliu",role:"观察员",lastLogin:"5 小时前"},{id:3,username:"lisi",role:"操作员",lastLogin:"昨天 15:30"}],p={超级管理员:"danger",操作员:"primary",观察员:"info"};function v(){a.push("/fine-tune")}function h(f){a.push(`/training-log/${f.id}`)}return(f,m)=>{const S=Qt,b=Zt,L=$t,A=jt,w=qt,_=Kt;return be(),me("div",an,[m[11]||(m[11]=ea('<section class="overview-section" aria-labelledby="overview-title" data-v-27de6891><h2 id="overview-title" class="section-title" data-v-27de6891>平台运行状态</h2><div class="overview-content" data-v-27de6891><div class="health-summary" data-v-27de6891><div class="health-icon" aria-hidden="true" data-v-27de6891><i class="fa fa-check" data-v-27de6891></i></div><div data-v-27de6891><strong data-v-27de6891>整体运行正常</strong><p data-v-27de6891>平台运行良好,各项服务稳定</p></div></div><div class="overview-metrics" data-v-27de6891><div class="overview-metric" data-v-27de6891><span data-v-27de6891>在线服务</span><strong data-v-27de6891>12</strong><small data-v-27de6891>全部在线</small></div><di
|