| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- @using Abp.Collections.Extensions
- @model Abp.Web.Mvc.Models.ErrorViewModel
- @{
- ViewBag.Title = L("ErrorPage");
- }
- <style>
- body {
- width: 100vw;
- height: 100vh;
- overflow: hidden;
- }
- </style>
- @*
- <div class="row">
- <section class="col-lg-12">
- <div class="panel panel-warning">
- <div class="panel-heading">
- <h3 class="panel-title">@Model.ErrorInfo.Message</h3>
- </div>
- <div class="panel-body">
- <p>
- @(!string.IsNullOrEmpty(Model.ErrorInfo.Details) ? Model.ErrorInfo.Details : Model.ErrorInfo.Message)
- </p>
- $1$ Show validation errors #1#
- @if (!Model.ErrorInfo.ValidationErrors.IsNullOrEmpty())
- {
- <ul>
- @foreach (var validationError in Model.ErrorInfo.ValidationErrors)
- {
- <li>
- @validationError.Message
- @if (validationError.Members != null && validationError.Members.Any())
- {
- <text>(@string.Join(", ", validationError.Members))</text>
- }
- </li>
- }
- </ul>
- }
- </div>
- </div>
- </section>
- </div>
- *@
- <section class="content" style="min-height: 300px;height: 100%;display: flex;justify-content: center;align-items: center;">
- <div class="error-page">
- @*<h2 class="headline text-danger">500</h2>*@
- <div class="error-content" style="height: 120px;display: flex;flex-direction: column;justify-content: center;">
- <h3 style="font-size: 2rem;"><i class="fa fa-exclamation-triangle text-danger mr-2"></i>系统错误</h3>
- <p class=" text-danger" style="font-size: 1.5rem;">
- @(!string.IsNullOrEmpty(Model.ErrorInfo.Details) ? Model.ErrorInfo.Details : Model.ErrorInfo.Message)
- </p>
- </div>
- </div>
- <!-- /.error-page -->
- </section>
- @section scripts{
- <script>
- console.log('@(Model.Exception.Message)');
- console.log('@(Model.Exception.ToString())');
- </script>
- }
|