mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-02-19 14:46:26 +08:00
全面调整JS文件结构,为模块化前端做准备
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Security;
|
||||
using Infrastructure.Helper;
|
||||
using OpenAuth.App;
|
||||
using OpenAuth.Mvc.Models;
|
||||
|
||||
@@ -35,10 +35,15 @@ namespace OpenAuth.Mvc.Controllers
|
||||
_app = AutofacExt.GetFromFac<ModuleElementManagerApp>();
|
||||
}
|
||||
|
||||
public ActionResult Index(int id = 0)
|
||||
public ActionResult Index(int id)
|
||||
{
|
||||
ViewBag.ModuleId = id;
|
||||
return View(_app.LoadByModuleId(id));
|
||||
return View();
|
||||
}
|
||||
|
||||
public ActionResult Get(int moduleId = 0)
|
||||
{
|
||||
return Json(_app.LoadByModuleId(moduleId));
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
@@ -56,11 +61,12 @@ namespace OpenAuth.Mvc.Controllers
|
||||
return JsonHelper.Instance.Serialize(_bjuiResponse);
|
||||
}
|
||||
|
||||
public string DelButton(int id)
|
||||
public string Del(string moduleElements)
|
||||
{
|
||||
try
|
||||
{
|
||||
_app.Delete(id);
|
||||
var delObjs = JsonHelper.Instance.Deserialize<ModuleElement[]>(moduleElements);
|
||||
_app.Delete(delObjs);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user