index.vue 3.2 KB

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