更改个人中心Infos为Profiles
This commit is contained in:
parent
532cf6ccd6
commit
9d309b5935
|
@ -184,7 +184,7 @@
|
|||
<Content Include="Scripts\framework.js" />
|
||||
<Content Include="Scripts\Groups.js" />
|
||||
<Content Include="Scripts\icon.js" />
|
||||
<Content Include="Scripts\Infos.js" />
|
||||
<Content Include="Scripts\Profiles.js" />
|
||||
<Content Include="fonts\glyphicons-halflings-regular.woff2" />
|
||||
<Content Include="fonts\glyphicons-halflings-regular.woff" />
|
||||
<Content Include="fonts\glyphicons-halflings-regular.ttf" />
|
||||
|
@ -255,7 +255,7 @@
|
|||
<Compile Include="Controllers\ExceptionsController.cs" />
|
||||
<Compile Include="Controllers\GroupsController.cs" />
|
||||
<Compile Include="Controllers\HomeController.cs" />
|
||||
<Compile Include="Controllers\InfosController.cs" />
|
||||
<Compile Include="Controllers\ProfilesController.cs" />
|
||||
<Compile Include="Controllers\LoginController.cs" />
|
||||
<Compile Include="Controllers\LogsController.cs" />
|
||||
<Compile Include="Controllers\MenusController.cs" />
|
||||
|
@ -268,7 +268,7 @@
|
|||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Models\InfosModel.cs" />
|
||||
<Compile Include="Models\ProfilesModel.cs" />
|
||||
<Compile Include="Models\LockModel.cs" />
|
||||
<Compile Include="Models\MessageCountModel.cs" />
|
||||
<Compile Include="Models\QueryDictOption.cs" />
|
||||
|
@ -316,7 +316,7 @@
|
|||
<Content Include="Views\Home\Lock.cshtml" />
|
||||
<Content Include="Views\Home\Register.cshtml" />
|
||||
<Content Include="Views\Admin\Notifications.cshtml" />
|
||||
<Content Include="Views\Admin\Infos.cshtml" />
|
||||
<Content Include="Views\Admin\Profiles.cshtml" />
|
||||
<Content Include="Views\Admin\Exceptions.cshtml" />
|
||||
<Content Include="Views\Admin\Messages.cshtml" />
|
||||
<Content Include="Views\Admin\Tasks.cshtml" />
|
||||
|
|
|
@ -114,9 +114,9 @@ namespace Bootstrap.Admin.Controllers
|
|||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public ActionResult Infos()
|
||||
public ActionResult Profiles()
|
||||
{
|
||||
var v = new InfosModel("~/Admin/Infos");
|
||||
var v = new ProfilesModel("~/Admin/Profiles");
|
||||
return View(v);
|
||||
}
|
||||
/// <summary>
|
||||
|
|
|
@ -9,7 +9,7 @@ using System.Web.Http;
|
|||
|
||||
namespace Bootstrap.Admin.Controllers
|
||||
{
|
||||
public class InfosController : ApiController
|
||||
public class ProfilesController : ApiController
|
||||
{
|
||||
[HttpPost]
|
||||
public string Post()
|
|
@ -6,7 +6,7 @@ namespace Bootstrap.Admin.Models
|
|||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class InfosModel : NavigatorBarModel
|
||||
public class ProfilesModel : NavigatorBarModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 获得/设置 头像文件大小
|
||||
|
@ -16,7 +16,7 @@ namespace Bootstrap.Admin.Models
|
|||
///
|
||||
/// </summary>
|
||||
/// <param name="url"></param>
|
||||
public InfosModel(string url) : base(url)
|
||||
public ProfilesModel(string url) : base(url)
|
||||
{
|
||||
var fileName = HttpContext.Current.Server.MapPath(Icon);
|
||||
if (File.Exists(fileName))
|
|
@ -202,9 +202,9 @@
|
|||
url: '../api/Dicts/'
|
||||
};
|
||||
|
||||
// Infos
|
||||
Infos = {
|
||||
url: '../api/Infos/'
|
||||
// Profiles
|
||||
Profiles = {
|
||||
url: '../api/Profiles/'
|
||||
};
|
||||
|
||||
// Settings
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
var $headerIcon = $('#headerIcon');
|
||||
var preIcon = $headerIcon.attr('src');
|
||||
$('#fileIcon').fileinput({
|
||||
uploadUrl: Infos.url,
|
||||
uploadUrl: Profiles.url,
|
||||
language: 'zh',
|
||||
maxFileSize: 5000,
|
||||
allowedFileExtensions: ['jpg', 'png', 'bmp', 'gif', 'jpeg'],
|
||||
|
@ -47,7 +47,7 @@
|
|||
});
|
||||
|
||||
var bsa = new BootstrapAdmin({
|
||||
url: '../api/Infos',
|
||||
url: Profiles.url,
|
||||
bootstrapTable: null,
|
||||
dataEntity: new DataEntity({
|
||||
map: {
|
|
@ -1,4 +1,4 @@
|
|||
@model InfosModel
|
||||
@model ProfilesModel
|
||||
@{
|
||||
ViewBag.Title = "个人中心";
|
||||
Layout = "~/Views/Shared/_Admin.cshtml";
|
||||
|
@ -10,7 +10,7 @@
|
|||
<script src="~/Scripts/fileinput.zh.js"></script>
|
||||
<script src="~/Scripts/jquery.validate.js"></script>
|
||||
<script src="~/Scripts/messages_zh.js"></script>
|
||||
<script src="~/scripts/Infos.js"></script>
|
||||
<script src="~/scripts/Profiles.js"></script>
|
||||
}
|
||||
@section css {
|
||||
<link href="~/Content/sweetalert.css" rel="stylesheet" />
|
||||
|
@ -33,7 +33,7 @@
|
|||
</div>
|
||||
</form>
|
||||
<div class="modal-footer">
|
||||
<button id="btnSaveDisplayName" class="btn btn-default" type="button" disabled data-admin="@LgbPrincipal.IsAdmin(User)"><i class="fa fa-save"></i><span>保存</span></button>
|
||||
<button id="btnSaveDisplayName" class="btn btn-default" type="button" disabled data-admin="@LgbPrincipal.IsWebAdmin(User.Identity.Name)"><i class="fa fa-save"></i><span>保存</span></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -57,7 +57,7 @@
|
|||
</div>
|
||||
</form>
|
||||
<div class="modal-footer">
|
||||
<button id="btnSavePassword" class="btn btn-default" type="button" disabled data-admin="@LgbPrincipal.IsAdmin(User)"><i class="fa fa-save"></i><span>保存</span></button>
|
||||
<button id="btnSavePassword" class="btn btn-default" type="button" disabled data-admin="@LgbPrincipal.IsWebAdmin(User.Identity.Name)"><i class="fa fa-save"></i><span>保存</span></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -102,7 +102,7 @@
|
|||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li></li>
|
||||
<li><a href="~/Admin/Infos"><i class=" fa fa-suitcase"></i>个人中心</a></li>
|
||||
<li><a href="~/Admin/Profiles"><i class=" fa fa-suitcase"></i>个人中心</a></li>
|
||||
<li><a href="~/Admin/Index"><i class="fa fa-cog"></i>设置</a></li>
|
||||
<li><a href="~/Admin/Notifications"><i class="fa fa-bell"></i>通知<span id="logoutNoti" class="badge"></span></a></li>
|
||||
<li><a href="~/Home/Logout"><i class="fa fa-key"></i>注销</a></li>
|
||||
|
|
|
@ -32,7 +32,7 @@ INSERT [dbo].[Dicts] ([Category], [Name], [Code], [Define]) VALUES (N'网站设
|
|||
DELETE FROM Navigations
|
||||
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 (2, 0, N'个人中心', 20, N'fa fa-suitcase', N'~/Admin/Profiles', 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/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')
|
||||
|
|
Loading…
Reference in New Issue