stream-a4b50890.js 1.8 KB

12
  1. import{d as p,Z as h,a1 as g,n as s,a0 as a,T as e,b$ as y,aC as x,cj as C,cg as i,b3 as u,b8 as b,aP as w,a5 as S,a6 as k}from"./index-8a67e3df.js";import{u as D}from"./index-c6560d80.js";import{u as T,C as v}from"./content-75a4ceb8.js";import"./dayjs-919e6097.js";import"./canvas-2aaf4e1d.js";import"./gb28181-a8ace5d9.js";import"./index-f6e7ad63.js";const O={class:"h-full"},B=p({name:"StreamScreen"}),z=p({...B,setup(L){const{t:o}=x(),n=D(),c=T(),d=t=>{t.length>1&&(t=t.sort((l,r)=>Date.parse(l.startTime)-Date.parse(r.startTime))),n.tableRef.reloadData(t)};async function f(){d(await y())}f();const _={maxHeight:"100%",rowConfig:{keyField:"path",useKey:!0},columnConfig:{useKey:!0},columns:[{field:"pluginName",get title(){return o("routes.screen.所属插件")},width:"100px"},{field:"path",get title(){return o("routes.screen.流路径")},showOverflow:"tooltip",minWidth:"150px"},{field:"type",get title(){return o("routes.screen.类型")},width:"80px",showOverflow:"tooltip"},{field:"operate",get title(){return o("routes.screen.操作")},width:"60px",align:"center",fixed:"right",slots:{default:"operate"}}],data:[]},m=t=>{c.setActiveInfo({path:t.path,type:t.type})};return(t,l)=>(h(),g("div",O,[s(e(u),{bordered:!1,class:"h-full"},{default:a(()=>[s(e(C),{gutter:16,class:"h-full"},{default:a(()=>[s(e(i),{span:6,class:"h-full"},{default:a(()=>[s(e(u),{bordered:!1,class:"h-full",bodyStyle:{padding:"10px"}},{default:a(()=>[s(e(b),{uid:e(n).uid,gridOptions:_},{operate:a(({row:r})=>[s(e(w),{size:"small",type:"link",onClick:()=>m(r)},{default:a(()=>[S(k(e(o)("routes.screen.播放")),1)]),_:2},1032,["onClick"])]),_:1},8,["uid"])]),_:1})]),_:1}),s(e(i),{span:18,class:"h-full"},{default:a(()=>[s(v,{type:"stream"})]),_:1})]),_:1})]),_:1})]))}});export{z as default};
  2. //# sourceMappingURL=stream-a4b50890.js.map