@@ -14,7 +14,7 @@ | |||||
@using System.ComponentModel.DataAnnotations; | @using System.ComponentModel.DataAnnotations; | ||||
@using System.Text.Json; | @using System.Text.Json; | ||||
<Select DefaultValue="@MsgType" TItemValue="string" TItem="string" @bind-Value="@MsgType" Style="width:200px" OnSelectedItemChanged="OnSelectMsgType"> | |||||
<Select DefaultValue="@("0x9101")" TItemValue="string" TItem="string" @bind-Value="@MsgType" Style="width:200px" OnSelectedItemChanged="OnSelectMsgType"> | |||||
<SelectOptions> | <SelectOptions> | ||||
<SelectOption TItemValue="string" TItem="string" Value="@("0x9101")" Label="808_打开看视频" /> | <SelectOption TItemValue="string" TItem="string" Value="@("0x9101")" Label="808_打开看视频" /> | ||||
<SelectOption TItemValue="string" TItem="string" Value="@("0x9102")" Label="808_关闭看视频"/> | <SelectOption TItemValue="string" TItem="string" Value="@("0x9102")" Label="808_关闭看视频"/> | ||||
@@ -6,7 +6,7 @@ | |||||
@inject IJT808Config Config | @inject IJT808Config Config | ||||
<Select @bind-Value="@wayType" TItemValue="string" TItem="string" Style="width:100px" OnSelectedItemChanged="@OnSelectWayType"> | |||||
<Select @bind-Value="@wayType" DefaultValue="@("up")" TItemValue="string" TItem="string" Style="width:100px" OnSelectedItemChanged="@OnSelectWayType"> | |||||
<SelectOptions> | <SelectOptions> | ||||
<SelectOption TItemValue="string" TItem="string" Value="@("up")" Label="上行"/> | <SelectOption TItemValue="string" TItem="string" Value="@("up")" Label="上行"/> | ||||
<SelectOption TItemValue="string" TItem="string" Value="@("down")" Label="下行"/> | <SelectOption TItemValue="string" TItem="string" Value="@("down")" Label="下行"/> | ||||
@@ -15,7 +15,7 @@ | |||||
<Tag Color="blue">如有分包,请换行区分。</Tag> | <Tag Color="blue">如有分包,请换行区分。</Tag> | ||||
<br /> | <br /> | ||||
<Select TItemValue="string" TItem="string" @bind-Value="@protocolType" Style="width:260px" OnSelectedItemChanged="OnSelectProtocolType"> | |||||
<Select TItemValue="string" TItem="string" DefaultValue="@("JT808")" @bind-Value="@protocolType" Style="width:260px" OnSelectedItemChanged="OnSelectProtocolType"> | |||||
<SelectOptions> | <SelectOptions> | ||||
<SelectOption TItemValue="string" TItem="string" Label="国标(通过包自动识别版本号)" Value="@("JT808")" /> | <SelectOption TItemValue="string" TItem="string" Label="国标(通过包自动识别版本号)" Value="@("JT808")" /> | ||||
<SelectOption TItemValue="string" TItem="string" Label="国标扩展JT1078" Value="@("JT808_JT1078")" /> | <SelectOption TItemValue="string" TItem="string" Label="国标扩展JT1078" Value="@("JT808_JT1078")" /> | ||||
@@ -13,14 +13,14 @@ | |||||
@inject JT809_2011_Config Config2011 | @inject JT809_2011_Config Config2011 | ||||
@inject JT809_2019_Config Config2019 | @inject JT809_2019_Config Config2019 | ||||
<Select @bind-Value="@version" TItemValue="string" TItem="string" Style="width:200px" OnSelectedItemChanged="OnSelectVersion"> | |||||
<Select @bind-Value="@version" DefaultValue="@("v2011")" TItemValue="string" TItem="string" Style="width:200px" OnSelectedItemChanged="OnSelectVersion"> | |||||
<SelectOptions> | <SelectOptions> | ||||
<SelectOption TItemValue="string" TItem="string" Value="@("v2011")" Label="2011版本"/> | <SelectOption TItemValue="string" TItem="string" Value="@("v2011")" Label="2011版本"/> | ||||
<SelectOption TItemValue="string" TItem="string" Value="@("v2019")" Label="2019版本"/> | <SelectOption TItemValue="string" TItem="string" Value="@("v2019")" Label="2019版本"/> | ||||
</SelectOptions> | </SelectOptions> | ||||
</Select> | </Select> | ||||
<Select TItemValue="string" TItem="string" @bind-Value="@encryptType" Style="width:200px" OnSelectedItemChanged="OnSelectEncryptType"> | |||||
<Select TItemValue="string" TItem="string" DefaultValue="@("none")" @bind-Value="@encryptType" Style="width:200px" OnSelectedItemChanged="OnSelectEncryptType"> | |||||
<SelectOptions> | <SelectOptions> | ||||
<SelectOption TItemValue="string" TItem="string" Value="@("none")" Label="未加密" /> | <SelectOption TItemValue="string" TItem="string" Value="@("none")" Label="未加密" /> | ||||
<SelectOption TItemValue="string" TItem="string" Value="@("encrypt")" Label="加密" /> | <SelectOption TItemValue="string" TItem="string" Value="@("encrypt")" Label="加密" /> | ||||