更改Profiles为Settings
This commit is contained in:
parent
630c9ec24d
commit
532cf6ccd6
|
@ -223,7 +223,7 @@
|
|||
<Content Include="Scripts\messages_zh.min.js" />
|
||||
<Content Include="Scripts\noti.js" />
|
||||
<Content Include="Scripts\nprogress.js" />
|
||||
<Content Include="Scripts\Profiles.js" />
|
||||
<Content Include="Scripts\Settings.js" />
|
||||
<Content Include="Scripts\register.js" />
|
||||
<Content Include="Scripts\Roles.js" />
|
||||
<Content Include="Scripts\sweetalert.js" />
|
||||
|
@ -261,7 +261,7 @@
|
|||
<Compile Include="Controllers\MenusController.cs" />
|
||||
<Compile Include="Controllers\MessagesController.cs" />
|
||||
<Compile Include="Controllers\NotificationsController.cs" />
|
||||
<Compile Include="Controllers\ProfilesController.cs" />
|
||||
<Compile Include="Controllers\SettingsController.cs" />
|
||||
<Compile Include="Controllers\RolesController.cs" />
|
||||
<Compile Include="Controllers\TasksController.cs" />
|
||||
<Compile Include="Controllers\UsersController.cs" />
|
||||
|
@ -308,7 +308,7 @@
|
|||
<Content Include="Views\Shared\UserConfig.cshtml" />
|
||||
<Content Include="Views\Shared\GroupConfig.cshtml" />
|
||||
<Content Include="Views\Admin\Logs.cshtml" />
|
||||
<Content Include="Views\Admin\Profiles.cshtml" />
|
||||
<Content Include="Views\Admin\Settings.cshtml" />
|
||||
<Content Include="Views\Shared\Footer.cshtml" />
|
||||
<Content Include="Views\Shared\MenuTree.cshtml" />
|
||||
<Content Include="Views\Shared\NavigatorConfig.cshtml" />
|
||||
|
|
|
@ -94,9 +94,9 @@ namespace Bootstrap.Admin.Controllers
|
|||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public ActionResult Profiles()
|
||||
public ActionResult Settings()
|
||||
{
|
||||
var v = new NavigatorBarModel("~/Admin/Profiles");
|
||||
var v = new NavigatorBarModel("~/Admin/Settings");
|
||||
return View(v);
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Bootstrap.Admin.Controllers
|
|||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ProfilesController : ApiController
|
||||
public class SettingsController : ApiController
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
|
@ -22,7 +22,7 @@ namespace Bootstrap.Admin.Controllers
|
|||
{
|
||||
//保存个性化设置
|
||||
dynamic json = value;
|
||||
return DictHelper.SaveProfiles((string)json.name, (string)json.code, (string)json.category);
|
||||
return DictHelper.SaveSettings((string)json.name, (string)json.code, (string)json.category);
|
||||
}
|
||||
/// <summary>
|
||||
///
|
|
@ -207,9 +207,9 @@
|
|||
url: '../api/Infos/'
|
||||
};
|
||||
|
||||
// Profiles
|
||||
Profiles = {
|
||||
url: '../api/Profiles/',
|
||||
// Settings
|
||||
Settings = {
|
||||
url: '../api/Settings/',
|
||||
title: '网站设置'
|
||||
};
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
});
|
||||
|
||||
var bsa = new BootstrapAdmin({
|
||||
url: Profiles.url,
|
||||
url: Settings.url,
|
||||
bootstrapTable: null,
|
||||
validateForm: null,
|
||||
modal: null,
|
||||
|
@ -34,7 +34,7 @@
|
|||
click: function (row, data) {
|
||||
if ($(this).attr('data-valid') == "true") {
|
||||
$.bc({
|
||||
url: Profiles.url, data: { name: '网站标题', code: data.Title, category: Profiles.title }, title: Profiles.title,
|
||||
url: Settings.url, data: { name: '网站标题', code: data.Title, category: Settings.title }, title: Settings.title,
|
||||
callback: function (result) {
|
||||
if (result) $('#websiteTitle').text(data.Title);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@
|
|||
click: function (row, data) {
|
||||
if ($(this).attr('data-valid') == "true") {
|
||||
$.bc({
|
||||
url: Profiles.url, data: { name: '网站页脚', code: data.Footer, category: Profiles.title }, title: Profiles.title,
|
||||
url: Settings.url, data: { name: '网站页脚', code: data.Footer, category: Settings.title }, title: Settings.title,
|
||||
callback: function (result) {
|
||||
if (result) $('#websiteFooter').text(data.Footer);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@
|
|||
var cssDefine = $('#dictCssDefine').val();
|
||||
if (cssDefine) {
|
||||
$.bc({
|
||||
url: Profiles.url, data: { name: '使用样式', code: cssDefine, category: '当前样式' }, title: '网站样式',
|
||||
url: Settings.url, data: { name: '使用样式', code: cssDefine, category: '当前样式' }, title: '网站样式',
|
||||
callback: function (result) {
|
||||
if (result) {
|
||||
window.setTimeout(function () { window.location.reload(true); }, 1000);
|
||||
|
@ -77,7 +77,7 @@
|
|||
options = $.extend({ clear: false }, options);
|
||||
$sortable.html('');
|
||||
$.bc({
|
||||
url: Profiles.url,
|
||||
url: Settings.url,
|
||||
method: 'GET',
|
||||
swal: false,
|
||||
callback: function (result) {
|
|
@ -8,7 +8,7 @@
|
|||
<script src="~/Scripts/sweetalert.js"></script>
|
||||
<script src="~/Scripts/jquery.validate.js"></script>
|
||||
<script src="~/Scripts/messages_zh.js"></script>
|
||||
<script src="~/Scripts/Profiles.js"></script>
|
||||
<script src="~/Scripts/Settings.js"></script>
|
||||
}
|
||||
@section css {
|
||||
<link href="~/Content/sweetalert.css" rel="stylesheet" />
|
|
@ -114,7 +114,7 @@ namespace Bootstrap.DataAccess
|
|||
/// <param name="code"></param>
|
||||
/// <param name="category"></param>
|
||||
/// <returns></returns>
|
||||
public static bool SaveProfiles(string name, string code, string category)
|
||||
public static bool SaveSettings(string name, string code, string category)
|
||||
{
|
||||
var ret = false;
|
||||
string sql = "Update Dicts set Code = @Code where Category = @Category and Name = @Name";
|
||||
|
|
|
@ -34,7 +34,7 @@ SET IDENTITY_INSERT [dbo].[Navigations] ON
|
|||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (1, 0, N'后台管理', 10, N'fa fa-gear', N'~/Admin/Index', N'0')
|
||||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (2, 0, N'个人中心', 20, N'fa fa-suitcase', N'~/Admin/Infos', N'0')
|
||||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (3, 0, N'返回前台', 30, N'fa fa-hand-o-left', N'~/Home/Index', N'0')
|
||||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (4, 0, N'网站设置', 40, N'fa fa-fa', N'~/Admin/Profiles', N'0')
|
||||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (4, 0, N'网站设置', 40, N'fa fa-fa', N'~/Admin/Settings', N'0')
|
||||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (5, 0, N'菜单管理', 50, N'fa fa-dashboard', N'~/Admin/Menus', N'0')
|
||||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (6, 0, N'用户管理', 60, N'fa fa-user', N'~/Admin/Users', N'0')
|
||||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (7, 0, N'角色管理', 70, N'fa fa-sitemap', N'~/Admin/Roles', N'0')
|
||||
|
|
Loading…
Reference in New Issue