From aceb9fa9e3585ced60cccc55b05434d23402eb96 Mon Sep 17 00:00:00 2001 From: jianweie Date: Sat, 17 Jul 2021 02:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=85=8D=E9=80=81=E6=96=B9=E5=BC=8F=E7=BB=B4=E6=8A=A4?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs | 4 ++-- CoreCms.Net.Web.Admin/wwwroot/views/shop/ship/create.html | 2 +- CoreCms.Net.Web.Admin/wwwroot/views/shop/ship/edit.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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) {