Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

index.vue 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <template>
  2. <el-scrollbar wrapClass="scrollbar-wrapper">
  3. <!-- <div class="sideColumn">
  4. <hamburger
  5. class="hamburger-container"
  6. :toggleClick="toggleSideBar"
  7. :isActive="sidebar.opened"
  8. ></hamburger>
  9. </div>-->
  10. <!-- <el-menu
  11. mode="vertical"
  12. :unique-opened="uniqueOpened"
  13. :show-timeout="200"
  14. :default-active="$route.path"
  15. :collapse="isCollapse"
  16. background-color="#304156"
  17. text-color="#bfcbd9"
  18. active-text-color="#409EFF"
  19. >-->
  20. <div class="logo">
  21. <img src="/static/img/logo.8dbb9fd.png" alt />
  22. </div>
  23. <el-menu
  24. mode="vertical"
  25. :unique-opened="uniqueOpened"
  26. :show-timeout="200"
  27. :default-active="$route.path"
  28. background-color="#304156"
  29. text-color="#bfcbd9"
  30. active-text-color="#409EFF"
  31. >
  32. <sidebar-item
  33. v-for="(route, index) in permission_routers"
  34. :key="route.name"
  35. :item="route"
  36. :base-path="route.path"
  37. :index="index"
  38. @a="b"
  39. ></sidebar-item>
  40. </el-menu>
  41. </el-scrollbar>
  42. <!-- <div class="mianLeft">
  43. <div class="logo">
  44. <img src="/static/img/logo.8dbb9fd.png" alt="" />
  45. </div>
  46. <div class="navBox">
  47. <div
  48. class="navOne"
  49. :class="activeClass == index ? 'active' : ''"
  50. v-for="(item, index) in permission_routers"
  51. :key="item.name"
  52. v-if="!item.hidden && item.children"
  53. >
  54. <div v-if="item.meta" @click="onClick(index)" class="one">
  55. <router-link :to="item.children[0].path">
  56. <svg-icon
  57. v-if="item.meta && item.meta.icon"
  58. :icon-class="item.meta.icon"
  59. ></svg-icon>
  60. <p v-if="item.meta && item.meta.title">
  61. {{ generateTitle(item.meta.title) }}
  62. </p>
  63. </router-link>
  64. </div>
  65. <div v-else @click="onClick(index)">
  66. <router-link :to="item.children[0].path" class="one">
  67. <svg-icon :icon-class="item.children[0].meta.icon"></svg-icon>
  68. <p>
  69. {{ generateTitle(item.children[0].meta.title) }}
  70. </p>
  71. </router-link>
  72. </div>
  73. </div>
  74. </div>
  75. </div>-->
  76. </template>
  77. <script>
  78. import { mapGetters } from "vuex";
  79. import SidebarItem from "./SidebarItem";
  80. import Hamburger from "@/components/Hamburger";
  81. import { generateTitle } from "@/utils/i18n";
  82. export default {
  83. components: { SidebarItem, Hamburger },
  84. computed: {
  85. ...mapGetters(["permission_routers", "sidebar"]),
  86. isCollapse() {
  87. return !this.sidebar.opened;
  88. }
  89. },
  90. data() {
  91. return {
  92. uniqueOpened: true,
  93. activeClass: 0,
  94. index: 0
  95. };
  96. },
  97. methods: {
  98. toggleSideBar() {
  99. this.$store.dispatch("toggleSideBar");
  100. },
  101. generateTitle,
  102. resolvePath(...paths) {
  103. return path.resolve(this.basePath, ...paths);
  104. },
  105. b(index) {
  106. // console.log(index);
  107. // this.index = index;
  108. // this.activeClass = index;
  109. this.$emit("callBackIndex", index);
  110. }
  111. },
  112. created() {
  113. console.log(1111111121121111111, this.permission_routers);
  114. // this.permission_routers.map(item => {
  115. // console.log(item.children);
  116. // });
  117. }
  118. };
  119. </script>
  120. <style rel="stylesheet/scss" lang="scss" scoped>
  121. .mianLeft {
  122. width: 150px;
  123. height: 100%;
  124. overflow-y: auto;
  125. background: #304155;
  126. .navBox {
  127. display: flex;
  128. flex-wrap: wrap;
  129. .navOne {
  130. width: 50%;
  131. height: 75px;
  132. display: flex;
  133. align-items: center;
  134. justify-content: space-around;
  135. color: #fff;
  136. .one {
  137. display: flex;
  138. align-items: center;
  139. flex-direction: column;
  140. p {
  141. margin-top: 10px;
  142. font-size: 14px;
  143. }
  144. }
  145. }
  146. .active {
  147. background: #409eff;
  148. }
  149. }
  150. }
  151. .logo {
  152. width: 100px;
  153. height: 32px;
  154. margin: 20px auto 0;
  155. img {
  156. width: 100%;
  157. height: 100%;
  158. display: block;
  159. }
  160. }
  161. .sideColumn {
  162. background-color: rgb(48, 65, 86);
  163. .head {
  164. text-align: center;
  165. padding: 20px 0 0 0;
  166. .tx {
  167. .img {
  168. width: 45px;
  169. height: 45px;
  170. border-radius: 50%;
  171. -o-object-fit: cover;
  172. object-fit: cover;
  173. -o-object-position: center;
  174. object-position: center;
  175. }
  176. }
  177. .title {
  178. font-size: 14px;
  179. color: #bfcbd9;
  180. padding: 10px 10px 15px 10px;
  181. line-height: 22px;
  182. }
  183. }
  184. .headShrink {
  185. .tx {
  186. .img {
  187. width: 30px;
  188. height: 30px;
  189. }
  190. }
  191. .title {
  192. display: none;
  193. }
  194. }
  195. }
  196. </style>
  197. <style lang="scss">
  198. .scrollbar-wrapper {
  199. background-color: rgb(48, 65, 86);
  200. }
  201. </style>