diff --git a/CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs b/CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs index fa6b7a0..6056ec0 100644 --- a/CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs +++ b/CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs @@ -1250,7 +1250,7 @@ namespace CoreCms.Net.Web.Admin.Controllers /// /// [HttpPost] - public JsonResult GetArea() + public async Task GetArea() { var jm = new WebApiCallBack(); @@ -1260,7 +1260,7 @@ namespace CoreCms.Net.Web.Admin.Controllers var ids = new List(); if (!string.IsNullOrEmpty(idsStr)) ids = JsonConvert.DeserializeObject>(idsStr); - var areaTrees = _areaServices.GetTreeArea(ids, nodeId, ischecked); + var areaTrees =await _areaServices.GetTreeArea(ids, nodeId, ischecked); jm.status = true; jm.data = areaTrees; diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/shop/ship/create.html b/CoreCms.Net.Web.Admin/wwwroot/views/shop/ship/create.html index 46368c0..11645e4 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/shop/ship/create.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/shop/ship/create.html @@ -243,7 +243,7 @@ }); var headers = {}; - headers[setter.request.tokenName] = layui.data(setter.tableName)[setter.request.tokenName]; + headers[layui.setter.request.tokenName] = layui.data(layui.setter.tableName)[layui.setter.request.tokenName]; //选择地区 $(".layui-table").on('click', '.selectArea', function (e) { var tdObj = $(this); diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/shop/ship/edit.html b/CoreCms.Net.Web.Admin/wwwroot/views/shop/ship/edit.html index 594a87a..347555c 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/shop/ship/edit.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/shop/ship/edit.html @@ -285,7 +285,7 @@ var headers = {}; - headers[setter.request.tokenName] = layui.data(setter.tableName)[setter.request.tokenName]; + headers[layui.setter.request.tokenName] = layui.data(layui.setter.tableName)[layui.setter.request.tokenName]; //headers['content-type'] = 'application/json'; //选择地区 $(".layui-table").on('click', '.selectArea', function (e) {