{{define "device_batch_config"}}

{{icon "devices"}}已选设备

{{range .SelectedDevices}}
{{.DisplayName}} {{.DeviceID}}
{{else}}
目标设备 还没有选中设备
{{end}}

{{icon "config"}}下发业务配置

先选择一份已有业务配置,再为已选设备创建下发任务。
{{range .SelectedDeviceIDs}}{{end}}

{{icon "preview"}}业务配置摘要

{{if .AssetProfile}}
业务配置{{.AssetProfile.Name}}
业务名称{{if .AssetProfile.BusinessName}}{{.AssetProfile.BusinessName}}{{else}}-{{end}}
关联模板{{if .SelectedTemplate}}{{.SelectedTemplate}}{{else}}-{{end}}
视频通道{{len .AssetProfile.Instances}} 路
{{with index .AssetProfile.Instances 0}}
首个通道{{if .DisplayName}}{{.DisplayName}}{{else}}{{.Name}}{{end}}
{{end}} {{if .AssetProfile.Description}}
说明{{.AssetProfile.Description}}
{{end}}
{{if .AssetProfile.Instances}}
{{range .AssetProfile.Instances}} {{end}}
通道 显示名称 站点 RTSP
{{if .ChannelNo}}{{.ChannelNo}}{{else}}{{.Name}}{{end}} {{if .DisplayName}}{{.DisplayName}}{{else}}-{{end}} {{if .SiteName}}{{.SiteName}}{{else}}-{{end}} {{if .RTSPURL}}{{.RTSPURL}}{{else}}-{{end}}
{{end}} {{else}}
还没有可用业务配置
请先到识别配置中创建业务配置,再回来下发。
{{end}}
{{end}}