refactor: 优化性能
This commit is contained in:
parent
b22e097fe0
commit
35ae9a84d7
|
@ -77,11 +77,13 @@ namespace Bootstrap.Admin.Pages.Components
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// OnParametersSet 方法
|
||||
/// SetParametersAsync 方法
|
||||
/// </summary>
|
||||
protected override void OnParametersSet()
|
||||
public override Task SetParametersAsync(ParameterView parameters)
|
||||
{
|
||||
parameters.SetParameterProperties(this);
|
||||
if (string.IsNullOrEmpty(Id)) throw new InvalidOperationException("Modal Component Id property must be set");
|
||||
return base.SetParametersAsync(ParameterView.Empty);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -98,16 +98,17 @@ namespace Bootstrap.Admin.Pages.Views.Admin.Components
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// OnParametersSet 方法
|
||||
/// SetParametersAsync 方法
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected override void OnParametersSet()
|
||||
public override System.Threading.Tasks.Task SetParametersAsync(ParameterView parameters)
|
||||
{
|
||||
base.OnParametersSet();
|
||||
parameters.SetParameterProperties(this);
|
||||
QueryModel.Category = "";
|
||||
QueryModel.IsResource = -1;
|
||||
QueryApp.AddRange(DictHelper.RetrieveApps().Select(app => new SelectedItem() { Text = app.Value, Value = app.Key }));
|
||||
DefineApp.AddRange(DictHelper.RetrieveApps().Select(app => new SelectedItem() { Text = app.Value, Value = app.Key }));
|
||||
return base.SetParametersAsync(ParameterView.Empty);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -30,9 +30,11 @@ namespace Bootstrap.Admin.Pages.Views.Admin.Components
|
|||
/// <summary>
|
||||
/// OnParametersSet 方法
|
||||
/// </summary>
|
||||
protected override void OnParametersSet()
|
||||
public override System.Threading.Tasks.Task SetParametersAsync(ParameterView parameters)
|
||||
{
|
||||
parameters.SetParameterProperties(this);
|
||||
FixedHeader = DictHelper.RetrieveFixedTableHeader();
|
||||
return base.SetParametersAsync(ParameterView.Empty);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue