diff --git a/Projects/WebClient/Web.Operation/Components/Pages/CPMeta.razor b/Projects/WebClient/Web.Operation/Components/Pages/CPMeta.razor
index 98823c1..9fec4a5 100644
--- a/Projects/WebClient/Web.Operation/Components/Pages/CPMeta.razor
+++ b/Projects/WebClient/Web.Operation/Components/Pages/CPMeta.razor
@@ -71,6 +71,11 @@
response = await _cpMetaService.GetWbmsMetaByProductID(SearchProductID, ServerAddress, outValue);
}
+ if(response == null)
+ {
+ response = new Response_GetWbmsMeta();
+ }
+
await Task.Delay(300);
PopupService.CloseIndicator();
}
@@ -85,6 +90,11 @@
response = await _cpMetaService.GetWbmsMetaByMacAddress(SearchProductMacAddress, ServerAddress, outValue);
}
+ if (response == null)
+ {
+ response = new Response_GetWbmsMeta();
+ }
+
await Task.Delay(300);
PopupService.CloseIndicator();
}
diff --git a/Projects/WebClient/Web.Operation/Module/OperationGrid.razor b/Projects/WebClient/Web.Operation/Module/OperationGrid.razor
index 110c709..fedacac 100644
--- a/Projects/WebClient/Web.Operation/Module/OperationGrid.razor
+++ b/Projects/WebClient/Web.Operation/Module/OperationGrid.razor
@@ -6,9 +6,9 @@
-
+
@foreach (var col in typeof(TDataModel).GetProperties())
- {
+ {
@@ -16,11 +16,11 @@
- }
+ }
@code {
[Parameter]
- public IEnumerable DataList { get; set; }
+ public IEnumerable DataList { get; set; }
}
diff --git a/Projects/WebClient/Web.Operation/Packet/CPMetaWbms.cs b/Projects/WebClient/Web.Operation/Packet/CPMetaWbms.cs
index 334b38c..9e0fb8a 100644
--- a/Projects/WebClient/Web.Operation/Packet/CPMetaWbms.cs
+++ b/Projects/WebClient/Web.Operation/Packet/CPMetaWbms.cs
@@ -36,7 +36,7 @@
public class Response_GetWbmsMeta
{
- public List Wbms { get; set; }
+ public List Wbms { get; set; } = new List();
public string Result { get; set; } = string.Empty;
public string Message { get; set; } = string.Empty;
}