You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
1.8 KiB

2 months ago
2 months ago
2 months ago
2 months ago
  1. <script setup>
  2. import image_403 from "@/assets/403.png"
  3. </script>
  4. <template>
  5. <div class="error-page">
  6. <!-- 背景装饰元素 -->
  7. <div class="bg-decoration"></div>
  8. <el-row class="error-container">
  9. <el-col :span="24" class="error-content">
  10. <!-- 错误图标/图片区域 -->
  11. <div class="error-img">
  12. <img :src="image_403" alt="无权限访问" class="error-image">
  13. </div>
  14. <!-- 文本信息区域 -->
  15. <div class="error-message">
  16. <h2>暂无权限</h2>
  17. <p>您当前的账号没有访问该页面的权限请联系管理员添加权限</p>
  18. </div>
  19. </el-col>
  20. </el-row>
  21. </div>
  22. </template>
  23. <style scoped>
  24. .error-page {
  25. display: flex;
  26. flex-direction: column;
  27. overflow: hidden;
  28. position: relative;
  29. }
  30. /* 背景装饰 */
  31. .bg-decoration {
  32. position: absolute;
  33. width: 100%;
  34. z-index: 0;
  35. }
  36. .error-container {
  37. flex: 1;
  38. display: flex;
  39. justify-content: center;
  40. align-items: center;
  41. padding: 2rem;
  42. position: relative;
  43. z-index: 1;
  44. }
  45. .error-content {
  46. max-width: 800px;
  47. width: 100%;
  48. text-align: center;
  49. animation: fadeIn 0.8s ease-out;
  50. }
  51. /* 错误图片区域 */
  52. .error-img {
  53. position: relative;
  54. margin-bottom: 2.5rem;
  55. }
  56. .error-image {
  57. max-width: 280px;
  58. width: 100%;
  59. height: auto;
  60. transition: transform 0.3s ease;
  61. }
  62. .error-image:hover {
  63. transform: scale(1.03);
  64. }
  65. /* 文本信息区域 */
  66. .error-message {
  67. margin-bottom: 2.5rem;
  68. }
  69. .error-message h2 {
  70. font-size: 2.2rem;
  71. margin-bottom: 1rem;
  72. font-weight: 600;
  73. }
  74. .error-message p {
  75. font-size: 1.1rem;
  76. max-width: 600px;
  77. margin: 0 auto;
  78. line-height: 1.6;
  79. }
  80. /* 操作按钮区域 */
  81. .error-actions {
  82. display: flex;
  83. justify-content: center;
  84. gap: 1rem;
  85. margin-bottom: 2rem;
  86. }
  87. </style>