修复httpservice获取分页long丢失精度问题
This commit is contained in:
@@ -71,6 +71,8 @@
|
||||
|
||||
protected override void OnParametersSet()
|
||||
{
|
||||
model.CountryId = CountryId;
|
||||
|
||||
_ = LoadLanguage();
|
||||
_ = LoadCountry();
|
||||
if (Id > 0)
|
||||
@@ -159,7 +161,7 @@
|
||||
{
|
||||
saving = false;
|
||||
await ModalService.InfoAsync(new ConfirmOptions() { Title = "提示", Content = "数据提交成功!" });
|
||||
Navigation.NavigateTo($"/stateprovince/list");
|
||||
Navigation.NavigateTo($"/stateprovince/list/{CountryId}");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
<Breadcrumb>
|
||||
<BreadcrumbItem Href="/">管理后台</BreadcrumbItem>
|
||||
<BreadcrumbItem Href="/settings">系统配置</BreadcrumbItem>
|
||||
<BreadcrumbItem Href="/country/list">系统配置</BreadcrumbItem>
|
||||
<BreadcrumbItem>州省管理</BreadcrumbItem>
|
||||
</Breadcrumb>
|
||||
</Breadcrumb>
|
||||
@@ -131,6 +132,7 @@
|
||||
{
|
||||
try
|
||||
{
|
||||
Console.WriteLine(search.ToJson());
|
||||
pageLoading = true;
|
||||
var url = "/api/stateprovince/search";
|
||||
var apiResult = await HttpService.GetPagingList<StateProvince>(url, search, Page.GetValueOrDefault(1), PageSize.GetValueOrDefault(20));
|
||||
|
||||
@@ -72,10 +72,11 @@ namespace Atomx.Admin.Client.Services
|
||||
page = 1;
|
||||
}
|
||||
url = $"{url}?page={page}&size={size}";
|
||||
|
||||
var json = data.ToJson();
|
||||
using var request = new HttpRequestMessage(HttpMethod.Post, url)
|
||||
{
|
||||
Content = JsonContent.Create(data)
|
||||
Content = new StringContent(json, Encoding.UTF8, "application/json")
|
||||
//Content = JsonContent.Create(data)
|
||||
};
|
||||
AttachCookieIfServer(request);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user