### 0.3.9 专业版:

【优化】文章管理的修改和编辑弹窗模式,修改为单页面模式,解决弹窗情况下编辑器某些按钮因为z-index导致的被阻挡显示的问题。
This commit is contained in:
大灰灰
2022-05-08 00:10:27 +08:00
parent 940553eecf
commit 3a441d1e60
4 changed files with 308 additions and 255 deletions

View File

@@ -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 = "不存在此信息";