Dashboard.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <div class="ioc-dashboard">
  3. <a-row>
  4. <a-col :span="18">
  5. <!--常用功能-->
  6. <div class="dashboard-popFunc">
  7. <IocCard title="常用功能">
  8. <template #title-extra>
  9. <a-button type="link" style="color: #C6C8CC;font-size: 12px" @click="openFuncManage">
  10. 功能管理
  11. <a-icon type="right"></a-icon>
  12. </a-button>
  13. </template>
  14. <a-row>
  15. <a-col v-for="(item, index) in commonMenu" :span="6" :key="index">
  16. <IocFunction :item="item"></IocFunction>
  17. </a-col>
  18. </a-row>
  19. </IocCard>
  20. </div>
  21. </a-col>
  22. <a-col :span="6">
  23. <div class="dashboard-msg">
  24. <DashboardMessageCard ></DashboardMessageCard>
  25. </div>
  26. </a-col>
  27. </a-row>
  28. <a-row>
  29. <a-col :span="18">
  30. <div class="dashboard-summary">
  31. <DashboardPortrait ></DashboardPortrait>
  32. </div>
  33. </a-col>
  34. <a-col :span="6">
  35. <div class="dashboard-more">
  36. <DashboardMore></DashboardMore>
  37. </div>
  38. </a-col>
  39. </a-row>
  40. <FunctionManage v-if="showFuncManage" :visible.sync="showFuncManage" :common-function.sync="commonMenu"></FunctionManage>
  41. </div>
  42. </template>
  43. <script>
  44. import IocCard from "@/components/common/card.vue";
  45. import IocFunction from "@/components/dashboard/commonFuncManage/function.vue";
  46. import DataSituation from "@/components/dashboard/more/space/DataSituation.vue";
  47. import DashboardMessageCard from "@/components/dashboard/message/dashboardMessageCard.vue";
  48. import DashboardPortrait from "@/components/dashboard/portrait/dashboardPortrait.vue";
  49. import DashboardMore from "@/components/dashboard/more/dashboardMore.vue";
  50. import FunctionManage from "@/components/dashboard/commonFuncManage/functionManage.vue";
  51. import {requireImg} from "@/utils/requireImg";
  52. export default {
  53. data() {
  54. return {
  55. showFuncManage: false,
  56. commonMenu: []
  57. }
  58. },
  59. components: {
  60. IocCard,
  61. IocFunction,
  62. DataSituation,
  63. DashboardMessageCard,
  64. DashboardPortrait,
  65. DashboardMore,
  66. FunctionManage,
  67. },
  68. mounted() {
  69. this.commonMenu = this.$store.menuStore().commonFunction;
  70. },
  71. methods: {
  72. requireImg,
  73. openFuncManage() {
  74. this.showFuncManage = true;
  75. }
  76. }
  77. }
  78. </script>
  79. <style lang="less" scoped>
  80. .ioc-dashboard {
  81. width: 100%;
  82. height: 100%;
  83. padding: 0 15px 15px;
  84. background-color: #f0f2f5;
  85. overflow-y: auto;
  86. div {
  87. border-radius: 4px;
  88. }
  89. .dashboard-popFunc {
  90. margin-right: 15px;
  91. margin-top: 12px;
  92. height: 220px;
  93. background-color: white;
  94. }
  95. .dashboard-msg {
  96. height: 220px;
  97. background-color: white;
  98. }
  99. .dashboard-summary {
  100. background-color: white;
  101. margin-right: 15px;
  102. margin-top: 12px;
  103. height: 765px;
  104. }
  105. .dashboard-more {
  106. height: 765px;
  107. }
  108. }
  109. </style>