chore
This commit is contained in:
@@ -152,7 +152,7 @@
|
||||
async void LoadData()
|
||||
{
|
||||
pageLoading = true;
|
||||
var url = $"/api/stateprovince/detail?id={Id}";
|
||||
var url = $"/api/area/detail?id={Id}";
|
||||
var apiResult = await HttpService.Get<ApiResult<AreaLocalizedModel>>(url);
|
||||
if (apiResult.Success)
|
||||
{
|
||||
@@ -185,6 +185,8 @@
|
||||
|
||||
void OnCitiesChange(CascaderNode[] selectedNodes)
|
||||
{
|
||||
Console.WriteLine($"value: {cities} selected: {string.Join(",", selectedNodes.Select(x => x.Value))}");
|
||||
|
||||
model.StateProvinceId = long.Parse(selectedNodes.First().Value.ToString() ?? "0");
|
||||
model.ParentId = long.Parse(selectedNodes.Last().Value.ToString() ?? "0");
|
||||
if (model.StateProvinceId == model.ParentId)
|
||||
@@ -198,7 +200,7 @@
|
||||
if (editform.Validate())
|
||||
{
|
||||
saving = true;
|
||||
var url = $"api/stateprovince/save";
|
||||
var url = $"api/area/save";
|
||||
var result = new ApiResult<string>();
|
||||
result = await HttpService.Post<ApiResult<string>>(url, model);
|
||||
|
||||
@@ -207,7 +209,7 @@
|
||||
{
|
||||
saving = false;
|
||||
await ModalService.InfoAsync(new ConfirmOptions() { Title = "提示", Content = "数据提交成功!" });
|
||||
Navigation.NavigateTo($"/stateprovince/list/{CountryId}");
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user