1 |
- import{d as f,X as h,a6 as _,f as e,Z as s,u as a,E as g}from"./vue-bbe2430e.js";import{k as y}from"./index-f4b030ea.js";import{u as x}from"./index-6b55885f.js";import{c as w}from"./global-e8d8c761.js";import{u as C,C as b}from"./content-40972fbe.js";import{bk as k,bj as r,aV as n,U as S}from"./radical-70d8c19d.js";import"./gb28181-63c601f1.js";const v={class:"h-full"},D=f({name:"StreamScreen"}),P=f({...D,setup(O){const i=x(),p=C(),d=t=>{t.length>1&&(t=t.sort((l,o)=>Date.parse(l.startTime)-Date.parse(o.startTime))),i.tableRef.reloadData(t)};async function u(){d(await w())}u();const c={maxHeight:"100%",rowConfig:{keyField:"path",useKey:!0},columnConfig:{useKey:!0},columns:[{field:"pluginName",title:"所属插件",width:"100px"},{field:"path",title:"StreamPath",showOverflow:"tooltip",minWidth:"150px"},{field:"type",title:"类型",width:"80px",showOverflow:"tooltip"},{field:"operate",title:"操作",width:"60px",align:"center",fixed:"right",slots:{default:"operate"}}],data:[]},m=t=>{p.setActiveInfo({path:t.path,type:t.type})};return(t,l)=>(h(),_("div",v,[e(a(n),{bordered:!1,class:"h-full"},{default:s(()=>[e(a(k),{gutter:16,class:"h-full"},{default:s(()=>[e(a(r),{span:6,class:"h-full"},{default:s(()=>[e(a(n),{bordered:!1,class:"h-full",bodyStyle:{padding:"10px"}},{default:s(()=>[e(a(y),{uid:a(i).uid,gridOptions:c},{operate:s(({row:o})=>[e(a(S),{size:"small",type:"link",onClick:()=>m(o)},{default:s(()=>l[0]||(l[0]=[g(" 播放 ")])),_:2},1032,["onClick"])]),_:1},8,["uid"])]),_:1})]),_:1}),e(a(r),{span:18,class:"h-full"},{default:s(()=>[e(b,{type:"stream"})]),_:1})]),_:1})]),_:1})]))}});export{P as default};
|