_Layout.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. @model ProductionLineMonitor.Core.Dtos.UserLoginResultInfoDto
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="utf-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <meta http-equiv="cache-control" content="no-cache, must-revalidate">
  8. <meta http-equiv="expires" content="0">
  9. <meta name="google" content="notranslate" />
  10. <meta http-equiv ="Content-Language" content="zh-cn" />
  11. <title>@ViewData["Title"] - Eink 监测平台</title>
  12. <link rel="stylesheet" href="/lib/adminlte/bower/bootstrap/dist/css/bootstrap.min.css">
  13. <link rel="stylesheet" href="/lib/adminlte/bower/font-awesome/css/font-awesome.min.css">
  14. <link rel="stylesheet" href="/lib/adminlte/dist/css/AdminLTE.min.css">
  15. <link rel="stylesheet" href="/lib/adminlte/dist/css/skins/skin-blue.min.css">
  16. <script src="~/axios/axios.min.js"></script>
  17. <script src="~/lib/vue/vue.min.js"></script>
  18. @RenderSection("header", required: false)
  19. <link rel="stylesheet" href="/css/site.css" asp-append-version="true" />
  20. </head>
  21. @* skin-blue sidebar-mini sidebar-collapse
  22. hold-transition skin-blue sidebar-mini *@
  23. <body id="main_body" class="skin-blue sidebar-mini sidebar-collapse">
  24. <div class="wrapper">
  25. <!-- Main Header -->
  26. <header class="main-header">
  27. <!-- Logo -->
  28. <a href="/Home/Index" class="logo">
  29. <!-- mini logo for sidebar mini 50x50 pixels -->
  30. <span class="logo-mini"><b>Eink</b></span>
  31. <!-- logo for regular state and mobile devices -->
  32. <span class="logo-lg"><b>Eink 监测平台</b></span>
  33. </a>
  34. <!-- Header Navbar -->
  35. <nav class="navbar navbar-static-top" role="navigation">
  36. <!-- Sidebar toggle button-->
  37. <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
  38. <span class="sr-only">Toggle navigation</span>
  39. </a>
  40. <div class="navbar-custom-menu">
  41. <ul class="nav navbar-nav">
  42. <li class="dropdown user user-menu">
  43. <!-- Menu Toggle Button -->
  44. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  45. <!-- The user image in the navbar-->
  46. <img src="/lib/adminlte/dist/img/default.png" class="user-image" alt="User Image">
  47. <!-- hidden-xs hides the username on small devices so only the image appears. -->
  48. <span class="hidden-xs">@Model.Name</span>
  49. </a>
  50. <ul class="dropdown-menu">
  51. <!-- The user image in the menu -->
  52. <li class="user-header">
  53. <img src="/lib/adminlte/dist/img/default.png" class="img-circle" alt="User Image">
  54. <p>
  55. @Model.JobNo / @Model.Name
  56. <small>@Model.RoleName</small>
  57. <small>创建时间. @Model.CreateTime</small>
  58. </p>
  59. </li>
  60. <li class="user-footer">
  61. <div class="pull-left">
  62. <a class="btn btn-default btn-flat" onclick="modelChangePassword()">修改密码</a>
  63. </div>
  64. <div class="pull-right">
  65. <a href="/Account/LoginOut" class="btn btn-default btn-flat">退出</a>
  66. </div>
  67. </li>
  68. </ul>
  69. </li>
  70. <!-- Control Sidebar Toggle Button -->
  71. <li>
  72. <a data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
  73. </li>
  74. </ul>
  75. </div>
  76. </nav>
  77. </header>
  78. <!-- Left side column. contains the logo and sidebar -->
  79. <aside class="main-sidebar" style="z-index: 9000">
  80. <section class="sidebar">
  81. <ul id="sidebar-menu" class="sidebar-menu" data-widget="tree" route_controller="@ViewBag.TitleController" route_action="@ViewBag.TitleAction">
  82. @* <li class="header">HEADER</li>*@
  83. @for (int i = 0; i < Model.MenuDtos.Count(); i++)
  84. {
  85. @if (Model.MenuDtos[i].Items.Count > 0)
  86. {
  87. <li flag="menu" class="treeview">
  88. <a href="#">
  89. <i class="@Model.MenuDtos[i].Icon"></i> <span>@Model.MenuDtos[i].Name</span>
  90. <span class="pull-right-container">
  91. <i class="fa fa-angle-left pull-right"></i>
  92. </span>
  93. </a>
  94. <ul class="treeview-menu">
  95. @for (int j = 0; j < Model.MenuDtos[i].Items.Count(); j++)
  96. {
  97. <li flag="menu">
  98. <a href="@Model.MenuDtos[i].Items[j].Url">
  99. <i class="fa fa-circle-o"></i>
  100. <span>@Model.MenuDtos[i].Items[j].Name</span>
  101. </a>
  102. </li>
  103. }
  104. </ul>
  105. </li>
  106. }
  107. else
  108. {
  109. <li flag="menu">
  110. <a href="@Model.MenuDtos[i].Url">
  111. <i class="@Model.MenuDtos[i].Icon"></i>
  112. <span>@Model.MenuDtos[i].Name</span>
  113. </a>
  114. </li>
  115. }
  116. }
  117. </ul>
  118. </section>
  119. </aside>
  120. <div class="content-wrapper">
  121. @*<section class="content-header">
  122. <h1>
  123. @ViewBag.TitleAction
  124. <small>@ViewBag.TitleActionDescription</small>
  125. </h1>
  126. <ol class="breadcrumb">
  127. <li><a href="#">@ViewBag.TitleController</a></li>
  128. <li class="active">@ViewBag.TitleAction</li>
  129. </ol>
  130. </section>*@
  131. <section class="content container-fluid">
  132. @RenderBody()
  133. </section>
  134. </div>
  135. @* <footer class="main-footer">
  136. <strong>版权 &copy; 2022.</strong> 川奇光电科技(扬州)有限公司.
  137. </footer>*@
  138. </div>
  139. <!-- Change Password Modal -->
  140. <div class="modal fade" id="modal_change_password" tabindex="-1" role="dialog" aria-labelledby="modal_change_password_label" data-backdrop="static">
  141. <div class="modal-dialog" role="document" style="width:80%">
  142. <div class="modal-content">
  143. <div class="modal-header">
  144. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  145. <h4 class="modal-title">修改密码</h4>
  146. </div>
  147. <div class="modal-body">
  148. <form id="form" role="form" action="" class="form-horizontal">
  149. <input id="JobNo" name="JobNo" value="@Model.JobNo" type="hidden" />
  150. <div class="form-group">
  151. <label for="Password" class="col-sm-2 control-label">原密码</label>
  152. <div class="col-sm-10">
  153. <input id="Password" type="password" name="Password" data-msg-required="必须填写原密码" class="form-control"
  154. data-rule-required="true" value="" />
  155. </div>
  156. </div>
  157. <div class="form-group">
  158. <label for="NewPassword" class="col-sm-2 control-label">新密码</label>
  159. <div class="col-sm-10">
  160. <input type="password" id="NewPassword" name="NewPassword" data-msg-required="必须填写新密码" class="form-control"
  161. data-rule-required="true" value="" />
  162. </div>
  163. </div>
  164. <div class="form-group">
  165. <label for="AgainNewPassword" class="col-sm-2 control-label">再次输入</label>
  166. <div class="col-sm-10">
  167. <input type="password" id="AgainNewPassword" name="AgainNewPassword" data-msg-required="必须填写新密码" class="form-control"
  168. data-rule-required="true" value="" />
  169. </div>
  170. </div>
  171. </form>
  172. </div>
  173. <div class="modal-footer">
  174. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  175. <button onclick="changePassword()" type="button" data-loading-text="正在处理..." class="btn btn-primary">修改</button>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. <script src="~/lib/adminlte/bower/jquery/dist/jquery.min.js"></script>
  181. <script src="~/lib/adminlte/bower/bootstrap/dist/js/bootstrap.min.js"></script>
  182. <script src="~/lib/adminlte/dist/js/adminlte.min.js"></script>
  183. <script src="~/js/adminlte-extend.js"></script>
  184. <script src="~/js/site.js" asp-append-version="true"></script>
  185. @RenderSection("footer", required: false)
  186. </body>
  187. </html>