import{M as v,av as P,aw as T,v as j,L as B,a0 as U,ax as I,W as J}from"./index.17037962789732.js";import"./index.170379627897337.js";import"./index.170379627897315.js";import"./index.1703796278973300.js";import"./index.170379627897317.js";import"./index.1703796278973301.js";import"./index.1703796278973302.js";import"./index.170379627897332.js";import"./index.1703796278973303.js";import"./index.170379627897339.js";import"./index.170379627897316.js";import"./index.170379627897314.js";import"./index.1703796278973304.js";import"./index.1703796278973305.js";import"./index.1703796278973306.js";import"./index.170379627897336.js";import"./index.170379627897333.js";import"./index.170379627897318.js";import"./index.170379627897319.js";import"./index.170379627897320.js";import"./index.170379627897321.js";import"./index.170379627897322.js";import"./index.170379627897323.js";import"./index.170379627897324.js";import"./index.170379627897325.js";import"./index.170379627897326.js";import"./index.170379627897327.js";import"./index.170379627897328.js";import"./Item.1703796278973.js";import N from"./BootCard.1703796278973.js";import M from"./PlatformPicCard.1703796278973.js";import R from"./StepCard.1703796278973.js";import z from"./BasicCountCard.17037962789732.js";import{u as q}from"./permission.1703796278973.js";import{d as A}from"./device.17037962789735.js";import{h as E}from"./system.1703796278973.js";import{d as L,k as d,r as O,o as V,c as K,a as t,b as e,u as s,M as W,z as $,A as F}from"./vue.1703796278973.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./default.1703796278973.js";import"./index.1703796278973299.js";import"./_plugin-vue_export-helper.1703796278973.js";import"./comm.1703796278973.js";import"./index.170379627897334.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";import"./home.17037962789733.js";const $e=L({__name:"index",setup(G){const f=E(),l=q().hasPermission,_=[{english:"STEP1",label:"添加视频设备",link:"media/Device/Save",auth:l("media/Device:add")},{english:"STEP2",label:"分屏展示",link:"media/SplitScreen"},{english:"STEP3",label:"国标级联",link:"media/Cascade"}],h=[{title:"添加视频设备",details:"根据视频设备的传输协议，在已创建的产品下添加对应的设备。",iconUrl:"/images/home/bottom-6.png",linkUrl:"media/Device/Save",auth:l("media/Device:add")},{title:"查看通道",details:"查看设备下的通道数据，可以进行直播、录制等操作。",iconUrl:"/images/home/bottom-7.png",linkUrl:"",auth:l("media/Device:view"),onClick:r=>{l("media/Device:view")?i.value=!0:v.warning("暂无权限，请联系管理员")}},{title:"分屏展示",details:"对多个通道的视频流数据进行分屏展示。",iconUrl:"/images/home/bottom-8.png",linkUrl:"media/SplitScreen"}],i=d(!1),c=[{title:"ID",dataIndex:"id",key:"id",search:{type:"string",defaultTermType:"eq"}},{title:"名称",dataIndex:"name",key:"name",search:{type:"string",first:!0}},{title:"通道数量",dataIndex:"channelNumber",key:"channelNumber",scopedSlots:!0},{title:"状态",dataIndex:"state",key:"state",scopedSlots:!0,search:{type:"select",options:[{label:"在线",value:"online"},{label:"离线",value:"offline"}],handleValue:r=>r}}],u=d({}),S=r=>{u.value=r},a=d(),g=()=>{a.value&&a.value.id?f.jumpPage("media/Device/Channel",{},{id:a.value.id,type:a.value.provider}):v.warning("请选择设备")};return(r,m)=>{const p=P,b=T,y=j,C=B,k=U,w=I,x=J,D=O("page-container");return V(),K(D,null,{default:t(()=>[e(b,{gutter:24},{default:t(()=>[e(p,{span:14},{default:t(()=>[e(N,{cardData:_,cardTitle:"视频中心引导"})]),_:1}),e(p,{span:10},{default:t(()=>[e(z)]),_:1}),e(p,{span:24,style:{margin:"20px 0"}},{default:t(()=>[e(M)]),_:1}),e(p,{span:24},{default:t(()=>[e(R,{cardTitle:"设备接入推荐步骤",tooltip:"不同的设备因为通信协议的不同，存在接入步骤的差异",dataList:h})]),_:1})]),_:1}),e(x,{title:"选择设备",width:"850px",visible:s(i),"onUpdate:visible":m[0]||(m[0]=n=>W(i)?i.value=n:null),maskClosable:!1,destroyOnClose:!0,onCancel:m[1]||(m[1]=n=>i.value=!1),onOk:g},{default:t(()=>{var n;return[e(y,{type:"simple",columns:c,onSearch:S}),e(w,{ref:"tableRef",model:"table",rowKey:"id",columns:c,request:s(A).list,defaultParams:{pageSize:10,sorts:[{name:"createTime",order:"desc"}]},params:s(u),rowSelection:{type:"radio",selectedRowKeys:(n=s(a))!=null&&n.id?[s(a).id]:void 0,onSelect:o=>{a.value=o}},alertRender:!1,pagination:{showSizeChanger:!0,pageSizeOptions:["10","20","50","100"]}},{channelNumber:t(o=>[$("span",null,F(o.channelNumber||0),1)]),state:t(o=>[e(k,null,{default:t(()=>[e(C,{status:o.state.value==="online"?"success":"error",text:o.state.text},null,8,["status","text"])]),_:2},1024)]),_:1},8,["request","params","rowSelection"])]}),_:1},8,["visible"])]),_:1})}}});export{$e as default};
