index.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <div class="widget-groupPage">
  3. <!--地图模块-->
  4. <BaseMap :show="showGroupPage" />
  5. <!--头部菜单模块-->
  6. <Header />
  7. <!--集团、分公司级页面模块-->
  8. <GroupPageModules :show="showGroupPage" />
  9. <!--项目级页面模块-->
  10. <DistrictPageModules :show="showDistrictPage" />
  11. </div>
  12. </template>
  13. <script>
  14. import Flexible from './flexible'
  15. import Header from './header/header.vue'
  16. //地图模块
  17. import BaseMap from './baseMap/baseMap.vue'
  18. //集团、分公司级页面模块
  19. import GroupPageModules from './groupPageModules/index.vue'
  20. //项目级页面模块
  21. import DistrictPageModules from './districtPageModules/index.vue'
  22. //
  23. import { getBlockPage } from '@/views/groupPage/apis'
  24. export default {
  25. name: 'groupPage', //决策分析平台
  26. components: {
  27. Header,
  28. BaseMap,
  29. GroupPageModules,
  30. DistrictPageModules
  31. },
  32. data() {
  33. return {
  34. showGroupPage: true,
  35. showDistrictPage: false,
  36. flexibleObject: null
  37. }
  38. },
  39. mounted() {
  40. this.flexibleObject = new Flexible()
  41. // getBlockPage({ size: 999 }).then((res) => {
  42. // console.log('code列表', res)
  43. // })
  44. },
  45. methods: {},
  46. destroyed() {
  47. this.flexibleObject.removeflexible()
  48. this.flexibleObject = null
  49. }
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. .widget-groupPage {
  54. width: 100%;
  55. height: 100%;
  56. position: fixed;
  57. /* 设置滚动条的样式 */
  58. ::-webkit-scrollbar {
  59. width: 0.026042rem /* 5/192 */;
  60. height: 0.052083rem /* 10/192 */;
  61. }
  62. /* 滚动槽 */
  63. ::-webkit-scrollbar-track {
  64. background-color: transparent;
  65. box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  66. border-radius: 10px;
  67. }
  68. /* 滚动条滑块 */
  69. ::-webkit-scrollbar-thumb {
  70. border-radius: 10px;
  71. background: #0f669a;
  72. box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
  73. }
  74. //修改子组件下所有下拉菜单背景,需设置:popper-append-to-body="false"
  75. /deep/ .el-select-dropdown {
  76. background: #023c5d;
  77. border-color: #023c5d;
  78. .popper__arrow,
  79. .popper__arrow::after {
  80. border-bottom-color: rgba(43, 167, 255, 0.2);
  81. }
  82. .el-scrollbar__wrap {
  83. margin: 0 !important;
  84. overflow: auto;
  85. }
  86. .el-select-dropdown__item {
  87. color: #fff;
  88. }
  89. .el-select-dropdown__item.selected {
  90. color: #409eff;
  91. font-weight: 500;
  92. }
  93. .el-select-dropdown__item.hover,
  94. .el-select-dropdown__item:hover {
  95. background-color: rgba(43, 167, 255, 0.2);
  96. }
  97. }
  98. //修改子组件下所有多选框样式
  99. /deep/ .el-checkbox__inner {
  100. background: #0a1525;
  101. border-color: rgba(3, 109, 190, 1);
  102. }
  103. /deep/ .el-checkbox__inner::after {
  104. border: 2px solid rgba(17, 156, 255, 1);
  105. border-left: 0;
  106. border-top: 0;
  107. }
  108. /deep/ .el-checkbox__input.is-checked .el-checkbox__inner {
  109. background: #0a1525;
  110. border-color: rgba(3, 109, 190, 1);
  111. }
  112. /deep/ .el-checkbox__input.is-checked + .el-checkbox__label {
  113. color: #fff;
  114. }
  115. }
  116. </style>>