index.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <div class="container">
  3. <div class="left-side">
  4. <div class="panel">
  5. <Banner />
  6. <ContentChart />
  7. </div>
  8. </div>
  9. <div class="right-side">
  10. <el-row :gutter="16" style="height: 100%;">
  11. <el-col :span="24" class="panel">
  12. <div style="max-height: 50%;">
  13. <TodoList2 />
  14. </div>
  15. </el-col>
  16. <el-col :span="24" class="panel">
  17. <div style="max-height: 50%; margin-top: 3px">
  18. <MyNoticePageList2 />
  19. </div>
  20. </el-col>
  21. <el-col class="panel" :span="24">
  22. <Announcement />
  23. </el-col>
  24. </el-row>
  25. </div>
  26. </div>
  27. </template>
  28. <script>
  29. import Banner from "./components/banner.vue";
  30. import DataPanel from "./components/data-panel.vue";
  31. import ContentChart from "./components/content-chart.vue";
  32. import PopularContent from "./components/popular-content.vue";
  33. import CateforiesPercent from "./components/categories-percent.vue";
  34. import RecentlyVisited from "./components/recently-visited.vue";
  35. import QuickOperation from "./components/quick-operation.vue";
  36. // import TodoList from './components/todoList.vue'
  37. import Announcement from "./components/announcement.vue";
  38. import TodoList2 from "./components/TodoList2.vue";
  39. import MyNoticePageList2 from "./components/MyNoticePageList2.vue";
  40. import Carousel from "./components/carousel.vue";
  41. import Docs from "./components/docs.vue";
  42. import Wx from "./components/wx.vue";
  43. import Footer from "@/components/footer/index.vue";
  44. export default {
  45. name: "Dashboard", // If you want the include property of keep-alive to take effect, you must name the component
  46. components: {
  47. Banner,
  48. DataPanel,
  49. ContentChart,
  50. PopularContent,
  51. CateforiesPercent,
  52. RecentlyVisited,
  53. QuickOperation,
  54. Announcement,
  55. TodoList2,
  56. MyNoticePageList2,
  57. Carousel,
  58. Docs,
  59. Wx,
  60. Footer,
  61. },
  62. };
  63. </script>
  64. <style lang="less" scoped>
  65. .adminui-topbar + .container {
  66. padding: 12px 12px 8px 12px;
  67. }
  68. .container {
  69. padding: 8px 12px;
  70. display: flex;
  71. }
  72. .left-side {
  73. flex: 1;
  74. overflow: hidden;
  75. .panel {
  76. background-color: #fff;
  77. }
  78. }
  79. .right-side {
  80. width: 680px;
  81. margin-left: 16px;
  82. }
  83. .panel {
  84. border-radius: 4px;
  85. overflow: hidden;
  86. margin-bottom: 16px;
  87. }
  88. :deep(.panel-border) {
  89. margin-bottom: 0;
  90. border-bottom: 1px solid rgb(242, 243, 245);
  91. }
  92. .moduler-wrap {
  93. border-radius: 4px;
  94. background-color: #fff;
  95. :deep(.text) {
  96. font-size: 14px;
  97. text-align: center;
  98. color: #515a6e;
  99. }
  100. :deep(.wrapper) {
  101. margin-bottom: 8px;
  102. text-align: center;
  103. cursor: pointer;
  104. &:last-child {
  105. .text {
  106. margin-bottom: 0;
  107. }
  108. }
  109. &:hover {
  110. .text {
  111. color: var(--el-color-primary);
  112. }
  113. }
  114. }
  115. :deep(.icon) {
  116. display: inline-block;
  117. margin-bottom: 4px;
  118. line-height: 32px;
  119. font-size: 16px;
  120. text-align: center;
  121. background-color: rgb(247, 248, 250);
  122. border-radius: 4px;
  123. }
  124. }
  125. </style>
  126. <style lang="less" scoped>
  127. // responsive
  128. .mobile {
  129. .container {
  130. display: block;
  131. margin-bottom: 10px;
  132. }
  133. .right-side {
  134. // display: none;
  135. width: 100%;
  136. margin-left: 0;
  137. margin-top: 16px;
  138. }
  139. }
  140. </style>