完善国家管理和数据多语言
This commit is contained in:
@@ -48,16 +48,23 @@
|
||||
<PropertyColumn Property="c => c.Enabled" Title="状态">
|
||||
@if (context.Enabled)
|
||||
{
|
||||
<Text>已激活</text>
|
||||
<AntDesign.Text Type="TextElementType.Success"><Icon Type="check" Theme=" IconThemeType.Outline" Width="1.3em" Height="1.3em" /></AntDesign.Text>
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
<Text>未激活</text>
|
||||
<Icon Type="close" Theme="IconThemeType.Outline" Width="1.3em" Height="1.3em" />
|
||||
}
|
||||
</PropertyColumn>
|
||||
<PropertyColumn Property="c => c.DisplayOrder" Title="排序" />
|
||||
<ActionColumn Title="操作" Align="ColumnAlign.Right">
|
||||
<Space>
|
||||
<SpaceItem>
|
||||
<a @onclick="(e) => GotoStateProvince(context)">州省管理</a>
|
||||
</SpaceItem>
|
||||
<SpaceItem>
|
||||
<a @onclick="(e) => GotoArea(context)">城市管理</a>
|
||||
</SpaceItem>
|
||||
<SpaceItem>
|
||||
<a @onclick="(e)=>HandleEdit(context)">编辑</a>
|
||||
</SpaceItem>
|
||||
@@ -127,7 +134,7 @@
|
||||
pageLoading = true;
|
||||
try
|
||||
{
|
||||
var url = "/api/country/searh";
|
||||
var url = "/api/country/search";
|
||||
var apiResult = await HttpService.GetPagingList<Country>(url, search, Page.GetValueOrDefault(1), PageSize.GetValueOrDefault(20));
|
||||
if (apiResult.Success)
|
||||
{
|
||||
@@ -205,4 +212,13 @@
|
||||
Navigation.NavigateTo($"/country/edit/{model.Id}");
|
||||
}
|
||||
|
||||
void GotoStateProvince(Country model)
|
||||
{
|
||||
Navigation.NavigateTo($"/stateprovince/list/{model.Id}");
|
||||
}
|
||||
|
||||
void GotoArea(Country model)
|
||||
{
|
||||
Navigation.NavigateTo($"/area/list/{model.Id}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user