mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-23 12:27:20 +08:00
### 0.3.9 专业版:
【优化】文章管理的修改和编辑弹窗模式,修改为单页面模式,解决弹窗情况下编辑器某些按钮因为z-index导致的被阻挡显示的问题。
This commit is contained in:
@@ -14,7 +14,6 @@ using CoreCms.Net.IServices;
|
||||
using CoreCms.Net.Model.Entities;
|
||||
using CoreCms.Net.Model.Entities.Expression;
|
||||
using CoreCms.Net.Model.FromBody;
|
||||
using CoreCms.Net.Model.ViewModels.UI;
|
||||
using CoreCms.Net.Utility.Extensions;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
@@ -25,6 +24,7 @@ using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
using CoreCms.Net.Model.ViewModels.UI;
|
||||
|
||||
namespace CoreCms.Net.Web.Admin.Controllers
|
||||
{
|
||||
@@ -308,15 +308,14 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
/// <summary>
|
||||
/// 编辑数据
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Description("编辑数据")]
|
||||
public async Task<AdminUiCallBack> GetEdit([FromBody] FMIntId entity)
|
||||
public async Task<AdminUiCallBack> GetEdit(int id)
|
||||
{
|
||||
var jm = new AdminUiCallBack();
|
||||
|
||||
var model = await _coreCmsArticleServices.QueryByIdAsync(entity.id);
|
||||
var model = await _coreCmsArticleServices.QueryByIdAsync(id);
|
||||
if (model == null)
|
||||
{
|
||||
jm.msg = "不存在此信息";
|
||||
|
||||
Reference in New Issue
Block a user