Files
aiot-platform-ui/apps/web-antd/dist/js/index-RQHceqHJ.js

8 lines
17 KiB
JavaScript
Raw Normal View History

2026-03-24 09:13:13 +08:00
var te=(k,d,c)=>new Promise((I,C)=>{var m=u=>{try{b(c.next(u))}catch(N){C(N)}},_=u=>{try{b(c.throw(u))}catch(N){C(N)}},b=u=>u.done?I(u.value):Promise.resolve(u.value).then(m,_);b((c=c.apply(k,d)).next())});import{az as U,ay as D,an as y,ak as H,a9 as L,c3 as se,ac as ve}from"./bootstrap-BdGqHkJ8.js";import{g as me,a as he}from"./index-CH1K1w17.js";import{u as ye,_ as we}from"./use-echarts-D70yZvyL.js";import{m as Q,ad as x,b2 as g,aR as t,u as e,cd as ke,bc as Ce,b9 as f,w as _e,v as re,x as ce,aT as ae,j as o,aa as J,aU as Te,aX as Ie,ae as s,bJ as i,bp as p,ai as S,I as le,bb as oe,ac as E,ab as $e}from"../jse/index-index-DZkv9inb.js";const F=Q({__name:"GlassCard",props:{class:{}},setup(k){const d=k;return(c,I)=>(g(),x("div",{class:t(e(ke)("glass-card glass-border glass-shadow glass-highlight","rounded-[2rem] text-card-foreground","transition-all duration-300 ease-out","hover:glass-shadow-hover hover:-translate-y-1",d.class))},[Ce(c.$slots,"default")],2))}}),ne=Q({__name:"BackgroundChart",props:{options:{},opacity:{default:.6},paddingBottom:{default:"1.5rem"}},setup(k){const d=k,c=f(),{renderEcharts:I}=ye(c);function C(){d.options&&I(d.options)}_e(()=>d.options,()=>{C()},{deep:!0});const m=()=>{var _,b;c.value&&((b=(_=c.value).resize)==null||b.call(_))};return re(()=>{C(),window.addEventListener("resize",m)}),ce(()=>{window.removeEventListener("resize",m)}),(_,b)=>(g(),x("div",{class:"absolute inset-x-0 bottom-0 top-0 z-0 overflow-visible rounded-lg",style:ae({paddingBottom:k.paddingBottom})},[o(e(we),{ref_key:"chartRef",ref:c,style:ae({opacity:k.opacity}),class:"h-full w-full"},null,8,["style"])],4))}});function ie(k){const{xAxisData:d,yAxisData:c,seriesName:I,lineColor:C,areaColor:m,yAxisFormatter:_}=k;return{grid:{left:"4%",right:"2%",top:"5%",bottom:"15%",containLabel:!0},xAxis:{type:"category",data:d,show:!0,boundaryGap:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!0,color:"rgba(148, 163, 184, 0.6)",fontSize:10,fontWeight:400,margin:6,interval:0,rotate:0},splitLine:{show:!1}},yAxis:{type:"value",show:!0,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!0,color:"rgba(148, 163, 184, 0.6)",fontSize:10,fontWeight:400,margin:6,formatter:_},splitLine:{show:!0,lineStyle:{color:"rgba(148, 163, 184, 0.1)",type:"dashed",width:1}}},series:[{name:I,type:"line",data:c,smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:m[0]},{offset:.5,color:m[1]},{offset:1,color:m[2]}]}},lineStyle:{color:C,width:4},symbol:"none",symbolSize:0}],tooltip:{show:!0,trigger:"axis",axisPointer:{type:"line",lineStyle:{color:"rgba(148, 163, 184, 0.3)",width:1}},backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"rgba(148, 163, 184, 0.2)",borderWidth:1,textStyle:{color:"#475569",fontSize:12},padding:[8,12],formatter:b=>{const u=b[0];return`
2026-03-01 13:54:19 +08:00
<div style="margin-bottom: 4px; font-weight: 600;">${u.name}</div>
<div style="display: flex; align-items: center; gap: 8px;">
<span style="display: inline-block; width: 10px; height: 10px; background-color: ${u.color}; border-radius: 50%;"></span>
<span>${u.seriesName||"数值"}: <strong>${u.value}</strong></span>
</div>
2026-03-18 16:18:59 +08:00
`}}}}const V={title:"drop-shadow-[0_2px_16px_rgba(255,255,255,0.95),0_0_8px_rgba(255,255,255,0.8)]",largeNumber:"drop-shadow-[0_2px_20px_rgba(255,255,255,0.98),0_0_12px_rgba(255,255,255,0.9)]",tag:"drop-shadow-[0_1px_8px_rgba(255,255,255,0.9),0_0_4px_rgba(255,255,255,0.8)]",smallText:"drop-shadow-[0_1px_8px_rgba(255,255,255,0.85),0_0_4px_rgba(255,255,255,0.7)]"},z={container:"relative",title:`text-sm font-semibold uppercase tracking-wide text-slate-500 ${V.title}`,numberContainer:"mt-1 flex items-baseline gap-2",largeNumber:`text-4xl font-bold text-slate-800 ${V.largeNumber}`,description:`mt-1 text-xs text-slate-400 ${V.smallText}`},r={card:"flex min-h-0 flex-1 flex-col overflow-hidden p-0",header:"flex shrink-0 items-center justify-between border-b border-white/40 p-5",title:"flex items-center gap-2 font-bold text-slate-800",titleDot:"h-2 w-2 animate-pulse rounded-full bg-red-500",filterButton:"text-xs font-medium text-slate-400 hover:text-orange-600",filterMenu:"min-w-[120px] rounded-lg bg-white p-2 shadow-lg",filterMenuItem:"cursor-pointer rounded px-3 py-2 text-sm hover:bg-gray-50",filterMenuItemActive:"bg-orange-50 text-orange-600",listContainer:"flex flex-1 flex-col overflow-y-auto px-2",emptyState:"flex h-full items-center justify-center text-slate-400",emptyContent:"flex flex-col items-center text-center",emptyIcon:"mb-2 text-4xl",taskItem:"group cursor-pointer rounded-lg border-b border-slate-50 p-3 transition-colors last:border-0 hover:bg-orange-50/40",taskContent:"flex items-center justify-between",taskLeft:"flex min-w-0 flex-1 items-center gap-3",taskIcon:"flex h-7 w-7 items-center justify-center rounded-lg shadow-sm transition-transform group-hover:scale-110",taskInfo:"min-w-0 flex-1",taskTitle:"truncate font-semibold text-slate-700",taskMeta:"mt-1 flex items-center gap-3 text-xs text-slate-500",taskActions:"ml-2 flex items-center gap-1",taskPriorityTag:"border px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-wide"},P={circleIcon:"h-7 w-7 bg-slate-50 text-slate-400",complete:"hover:bg-green-500 hover:text-white",view:"hover:bg-orange-500 hover:text-white",delete:"hover:bg-red-500 hover:text-white",refresh:"text-slate-400 hover:text-orange-600",viewAll:"rounded-lg bg-white/50 px-2 py-1 text-xs font-medium hover:text-blue-600"},O={container:"grid shrink-0 grid-cols-2 gap-3",card:"glass-card glass-border glass-shadow glass-highlight flex cursor-pointer items-center gap-3 rounded-[2rem] p-3 transition-colors hover:bg-white/60",iconContainer:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl text-lg",content:"min-w-0",label:"truncate text-[10px] font-bold uppercase text-slate-400",value:"mt-0.5 text-lg font-bold leading-none text-slate-800"},T={container:"group relative flex min-h-[140px] flex-1 items-center overflow-hidden border-0 !bg-gradient-to-br from-orange-400 to-amber-300 p-0 shadow-lg",background:"pointer-events-none absolute inset-0 opacity-20",leftContent:"relative z-10 flex h-full w-[60%] flex-col justify-center py-4 pl-8 pr-2",iconContainer:"flex h-6 w-6 items-center justify-center rounded-lg bg-white/20 shadow-sm backdrop-blur-sm",label:"text-[10px] font-bold uppercase tracking-widest text-white/90",title:"mb-4 whitespace-nowrap text-lg font-bold leading-tight text-white drop-shadow-sm",button:"flex w-fit items-center gap-2 rounded-full bg-white px-6 py-2.5 text-sm font-bold text-amber-600 shadow-md shadow-orange-900/10 transition-all hover:scale-105 hover:shadow-lg",buttonIcon:"text-base text-amber-400 transition-transform group-hover:rotate-12",imageContainer:"pointer-events-none absolute bottom-0 right-[-10px] top-0 z-20 flex w-[45%] items-center justify-center",image:"h-full w-full object-contain"},w={field:"space-y-4",label:"mb-1 text-sm text-slate-400",value:"text-base text-slate-700",titleValue:"text-lg font-bold text-slate-800",actions:"flex gap-2 pt-4"},Ae={class:"animate-fade-in flex h-full w-full gap-5 px-5 py-5"},Se={class:"flex h-full w-[60%] flex-none flex-col gap-5"},ze={class:"relative z-10 flex items-start justify-between"},De={key:1,class:"space-y-2"},Pe=[