@@ -2,12 +2,13 @@ | |||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFramework>net5.0</TargetFramework> | <TargetFramework>net5.0</TargetFramework> | ||||
<AssemblyVersion>1.0.1</AssemblyVersion> | |||||
</PropertyGroup> | </PropertyGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="AntDesign" Version="0.4.1" /> | <PackageReference Include="AntDesign" Version="0.4.1" /> | ||||
<PackageReference Include="JT1078" Version="1.1.0" /> | <PackageReference Include="JT1078" Version="1.1.0" /> | ||||
<PackageReference Include="JT808" Version="2.3.0" /> | |||||
<PackageReference Include="JT808" Version="2.3.1" /> | |||||
<PackageReference Include="JT808.Protocol.Extensions.JT1078" Version="2.3.0" /> | <PackageReference Include="JT808.Protocol.Extensions.JT1078" Version="2.3.0" /> | ||||
<PackageReference Include="JT808.Protocol.Extensions.JTActiveSafety" Version="1.1.0" /> | <PackageReference Include="JT808.Protocol.Extensions.JTActiveSafety" Version="1.1.0" /> | ||||
<PackageReference Include="JT808.Protocol.Extensions.Streamax" Version="0.1.8" /> | <PackageReference Include="JT808.Protocol.Extensions.Streamax" Version="0.1.8" /> | ||||
@@ -6,7 +6,7 @@ | |||||
@inject IJT808Config Config | @inject IJT808Config Config | ||||
@using OneOf; | @using OneOf; | ||||
<Select DefaultValue="@wayType" @bind-Value="@wayType" Style="width:100px" OnChange="@OnSelectWayType"> | |||||
<Select DefaultValue=@wayType @bind-Value="@wayType" Style="width:100px" OnChange="@OnSelectWayType"> | |||||
<SelectOption Value="up">上行</SelectOption> | <SelectOption Value="up">上行</SelectOption> | ||||
<SelectOption Value="down">下行</SelectOption> | <SelectOption Value="down">下行</SelectOption> | ||||
</Select> | </Select> | ||||
@@ -50,6 +50,7 @@ | |||||
Json = ""; | Json = ""; | ||||
break; | break; | ||||
} | } | ||||
StateHasChanged(); | |||||
} | } | ||||
private string Json; | private string Json; | ||||
@@ -94,12 +94,14 @@ | |||||
this.HexData = HexData2019; | this.HexData = HexData2019; | ||||
break; | break; | ||||
} | } | ||||
StateHasChanged(); | |||||
} | } | ||||
private void OnSelectEncryptType(OneOf<string, IEnumerable<string>, LabeledValue, IEnumerable<LabeledValue>> value, | private void OnSelectEncryptType(OneOf<string, IEnumerable<string>, LabeledValue, IEnumerable<LabeledValue>> value, | ||||
OneOf<SelectOption, IEnumerable<SelectOption>> option) | OneOf<SelectOption, IEnumerable<SelectOption>> option) | ||||
{ | { | ||||
encryptType = value.Value.ToString(); | encryptType = value.Value.ToString(); | ||||
StateHasChanged(); | |||||
} | } | ||||
protected override void OnInitialized() | protected override void OnInitialized() | ||||
@@ -108,6 +110,7 @@ | |||||
Serializer2019 = Config2019.GetSerializer(); | Serializer2019 = Config2019.GetSerializer(); | ||||
EncryptOptions = new JT809EncryptOptions(); | EncryptOptions = new JT809EncryptOptions(); | ||||
HexData = HexData2011; | HexData = HexData2011; | ||||
StateHasChanged(); | |||||
} | } | ||||
private void Query() | private void Query() | ||||