封装后台js框架,编写文档模块的列表、新增修改

This commit is contained in:
hogan
2019-01-22 18:01:17 +08:00
parent 57f8ddc5e7
commit e9890b771a
35 changed files with 331 additions and 261 deletions

View File

@ -12,6 +12,7 @@ using FreeSql.Site.UI.Common;
using FreeSql.Site.UI.Controllers;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace FreeSql.Site.UI.Areas.Admin.Controllers
{
@ -80,6 +81,17 @@ namespace FreeSql.Site.UI.Areas.Admin.Controllers
});
}
public ActionResult DocContentEditModule(string id)
{
ViewBag.DocumentTypeList = DocumentTypeDAL.Query(w => w.Status == 1).Select(s => new SelectListItem { Text = s.TypeName, Value = s.ID.ToString() }).ToList();
DocumentContent model = new DocumentContent();
if (!string.IsNullOrEmpty(id))
{
model = DocumentContentDAL.GetByOne(w => w.ID == 1);
}
return View(model);
}
// POST: Documents/Create
[HttpPost]
//[ValidateAntiForgeryToken]