fix 省市地区管理
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
<PropertyColumn Property="c => c.Name" Title="名称" />
|
||||
<PropertyColumn Property="c => c.StateProvinceName" Title="州/省" />
|
||||
<PropertyColumn Property="c => c.Initial" Title="首字母" />
|
||||
<PropertyColumn Property="c => c.Count" Title="地区数量" />
|
||||
<PropertyColumn Property="c => c.Enabled" Title="状态">
|
||||
@if (context.Enabled)
|
||||
{
|
||||
@@ -172,22 +173,52 @@
|
||||
{
|
||||
if (page > 1)
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}?page={page}");
|
||||
if (StateProvinceId > 0)
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}/{StateProvinceId}?page={page}");
|
||||
}
|
||||
else
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}?page={page}");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}");
|
||||
if (StateProvinceId > 0)
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}/{StateProvinceId}");
|
||||
}
|
||||
else
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (page > 1)
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}?page={page}&{queryString}");
|
||||
if (StateProvinceId > 0)
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}/{StateProvinceId}?page={page}&{queryString}");
|
||||
}
|
||||
else
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}?page={page}&{queryString}");
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}?{queryString}");
|
||||
if (StateProvinceId > 0)
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}/{StateProvinceId}?{queryString}");
|
||||
}
|
||||
else
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{CountryId}?{queryString}");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user