index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <el-aside class="MainAside">
  3. <el-menu class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" background-color="transparent"
  4. text-color="#fff" active-text-color="#19c3eb" :default-active="$route.path" :collapse="isCollapse" router>
  5. <dv-decoration-12 style="width:100px;height:100px;margin: 0 auto;" />
  6. <dv-decoration-4 :reverse="true" style="width:200px;height:5px;" />
  7. <el-menu-item index="/home/taskManagement">
  8. <dv-decoration-11 style="width:200px;height:60px;">任务管理显控</dv-decoration-11>
  9. </el-menu-item>
  10. <el-menu-item index="/home/networkManagement">
  11. <dv-decoration-11 style="width:200px;height:60px;">通信管理显控</dv-decoration-11>
  12. </el-menu-item>
  13. <el-menu-item index="/home/functionalityManagement">
  14. <dv-decoration-11 style="width:200px;height:60px;">健康管理显控</dv-decoration-11>
  15. </el-menu-item>
  16. <el-submenu index="1">
  17. <template slot="title">
  18. <dv-decoration-11 style="width:200px;height:60px;">侦察资源显控</dv-decoration-11>
  19. </template>
  20. <el-menu-item index="/home/radarInvestigation">
  21. <dv-decoration-7 style="width:200px;height:60px;">雷侦显控</dv-decoration-7>
  22. </el-menu-item>
  23. <el-menu-item disabled index="/home/telecomInvestigation">
  24. <dv-decoration-7 style="width:200px;height:60px;">通侦显控</dv-decoration-7>
  25. </el-menu-item>
  26. <el-menu-item disabled index="/home/opticalInvestigation">
  27. <dv-decoration-7 style="width:200px;height:60px;">光电成像显控</dv-decoration-7>
  28. </el-menu-item>
  29. <el-menu-item disabled index="/home/sarInvestigation">
  30. <dv-decoration-7 style="width:200px;height:60px;">雷达成像显控</dv-decoration-7>
  31. </el-menu-item>
  32. </el-submenu>
  33. <el-menu-item index="/home/intelESMProcess">
  34. <dv-decoration-11 style="width:200px;height:60px;">情报处理分发</dv-decoration-11>
  35. </el-menu-item>
  36. <el-menu-item index="/home/situation">
  37. <dv-decoration-11 style="width:200px;height:60px;">态势显控</dv-decoration-11>
  38. </el-menu-item>
  39. <el-menu-item index="/home/dataManagement">
  40. <dv-decoration-11 style="width:200px;height:60px;">数据管理显控</dv-decoration-11>
  41. </el-menu-item>
  42. </el-menu>
  43. </el-aside>
  44. </template>
  45. <script>
  46. import { mapGetters } from 'vuex'
  47. export default {
  48. name: 'Aside',
  49. data() {
  50. return {
  51. };
  52. },
  53. computed: {
  54. ...mapGetters([
  55. 'isCollapse'
  56. ]),
  57. },
  58. methods: {
  59. handleOpen(key, keyPath) {
  60. console.log(key, keyPath);
  61. },
  62. handleClose(key, keyPath) {
  63. console.log(key, keyPath);
  64. }
  65. }
  66. }
  67. </script>
  68. <style scoped>
  69. .MainAside {
  70. width: unset !important;
  71. max-width: 300px;
  72. position: relative;
  73. }
  74. .MainAside::-webkit-scrollbar {
  75. display: none;
  76. }
  77. .el-menu-vertical-demo:not(.el-menu--collapse) {
  78. width: 200px;
  79. min-height: 400px;
  80. }
  81. .el-menu-item:hover{
  82. color: #f46827 !important;
  83. background: none !important;
  84. text-decoration: underline;
  85. }
  86. .el-menu-item:hover i {
  87. color: #f46827 !important;
  88. }
  89. .el-menu-item{
  90. padding-left: 0px !important;
  91. height: 70px;
  92. }
  93. /deep/ .el-submenu__title{
  94. padding-left: 0px !important;
  95. height: 70px;
  96. }
  97. /deep/ .el-submenu__title:hover{
  98. color: #f46827 !important;
  99. background: none !important;
  100. text-decoration: underline;
  101. }
  102. /deep/ .el-submenu__title:hover i{
  103. color: #f46827 !important;
  104. background: none !important;
  105. text-decoration: underline;
  106. }
  107. /deep/ .el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow{
  108. display: none;
  109. }
  110. /deep/ .el-submenu>.el-submenu__title .el-submenu__icon-arrow{
  111. display: none;
  112. }
  113. .el-menu {
  114. border: none;
  115. }
  116. .el-menu--collapse {
  117. width: 0px;
  118. }
  119. .collapse {
  120. position: absolute;
  121. bottom: 40px;
  122. width: 100%;
  123. }
  124. </style>