LeftAside.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <el-aside class="page-home-content">
  3. <div class="left">
  4. <router-link to="/LayOut" active-class="change" exact>
  5. <div class="system-info">
  6. <!-- <img src="../../../assets/system-Selected.png" alt="" /> -->
  7. <img :src="aside[0].path === $route.path ? aside[0].selected : aside[0].normal" alt="" />
  8. <span >系统信息</span>
  9. </div>
  10. </router-link>
  11. <router-link style="margin-top:35px" to="/LayOut/banmange" active-class="change" exact>
  12. <div class="system-info" >
  13. <!-- <img src="../../../assets/ban-Selected.png" alt="" /> -->
  14. <img :src="aside[1].path === $route.path ? aside[1].selected : aside[1].normal" alt="" />
  15. <span >四情封禁</span>
  16. </div>
  17. </router-link>
  18. </div>
  19. </el-aside>
  20. </template>
  21. <script>
  22. export default {
  23. name: 'LeftAside',
  24. data () {
  25. return {
  26. aside: [
  27. { path: '/LayOut', normal: require('../../../assets/system.png'), selected: require('../../../assets/system-Selected.png') },
  28. { path: '/LayOut/banmange', normal: require('../../../assets/ban.png'), selected: require('../../../assets/ban-Selected.png') }
  29. ]
  30. }
  31. }
  32. }
  33. </script>
  34. <style scoped lang="less">
  35. a{
  36. text-decoration: none;
  37. color: #6A7A88 ;
  38. }
  39. .change {
  40. color: white;
  41. }
  42. .el-aside {
  43. // border: 1px solid red;
  44. width: 106px !important ;
  45. }
  46. .page-home-content {
  47. background-color: rgb(240, 242, 245);
  48. box-sizing: border-box;
  49. // height: 875px;
  50. height: calc(98vh - 60px);
  51. width: 100vw;
  52. display: flex;
  53. justify-content: space-between;
  54. .left {
  55. // height: calc(1080px - 203px);
  56. // height: calc(1080px - 61px);
  57. // height: calc(100vh - 61px);
  58. height: 100%;
  59. width: 106px;
  60. min-height: 640px;
  61. background-color: #040e1b;
  62. border-top: 1px solid #ecf0f8;
  63. padding-top: 25px;
  64. box-sizing: border-box;
  65. display: flex;
  66. align-items: center;
  67. flex-direction: column;
  68. }
  69. .system-info {
  70. display: flex;
  71. flex-direction: column;
  72. }
  73. img {
  74. width: 60px;
  75. height: 60px;
  76. }
  77. }
  78. </style>