iocDashboard.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <div class="ioc-dashboard">
  3. <a-row :gutter="[12,12]">
  4. <a-col :span="18">
  5. <!--常用功能-->
  6. <div class="dashboard-popFunc card-style">
  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. <div @click="toRoute(item.router)">
  17. <IocFunction :item="item" ></IocFunction>
  18. </div>
  19. </a-col>
  20. </a-row>
  21. </IocCard>
  22. </div>
  23. </a-col>
  24. <a-col :span="6">
  25. <div class="dashboard-msg card-style">
  26. <DashboardMessageCard ></DashboardMessageCard>
  27. </div>
  28. </a-col>
  29. <a-col :span="18">
  30. <div class="dashboard-summary card-style">
  31. <DashboardPortrait ></DashboardPortrait>
  32. </div>
  33. </a-col>
  34. <a-col :span="6">
  35. <div class="dashboard-more card-style">
  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 DashboardMessageCard from "@/components/dashboard/message/dashboardMessageCard.vue";
  47. import DashboardPortrait from "@/components/dashboard/portrait/dashboardPortrait.vue";
  48. import DashboardMore from "@/components/dashboard/more/dashboardMore.vue";
  49. import FunctionManage from "@/components/dashboard/commonFuncManage/functionManage.vue";
  50. export default {
  51. data() {
  52. return {
  53. showFuncManage: false,
  54. commonMenu: []
  55. }
  56. },
  57. components: {
  58. IocCard,
  59. IocFunction,
  60. DashboardMessageCard,
  61. DashboardPortrait,
  62. DashboardMore,
  63. FunctionManage,
  64. },
  65. mounted() {
  66. this.commonMenu = this.$store.menuStore().commonFunction;
  67. },
  68. methods: {
  69. openFuncManage() {
  70. this.showFuncManage = true;
  71. },
  72. toRoute(route) {
  73. this.$router.push({path: route})
  74. },
  75. }
  76. }
  77. </script>
  78. <style lang="less" scoped>
  79. .ioc-dashboard {
  80. width: 100%;
  81. height: 100%;
  82. padding: 12px 18px;
  83. background-color: #f0f2f5;
  84. overflow-y: auto;
  85. .dashboard-popFunc {
  86. height: 220px;
  87. background-color: white;
  88. }
  89. .dashboard-msg {
  90. height: 220px;
  91. background-color: white;
  92. }
  93. .dashboard-summary {
  94. background-color: white;
  95. height: 765px;
  96. overflow-y: hidden;
  97. }
  98. .dashboard-more {
  99. background-color: white;
  100. height: 765px;
  101. overflow-y: hidden;
  102. }
  103. }
  104. </style>