index.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <div style="height: 100vh;width: 100%;background-color: #F5F6F8;display: flex;">
  3. <div style="width: 12%;background-color: white;margin-top: 2%;margin-left: 10%;height: 82vh;">
  4. <div style="text-align: center;">
  5. <svg-icon icon-class="头像" style="height: 70px;width: 70PX;margin-top: -15%;"/>
  6. </div>
  7. <div style="text-align: center;margin-top: 4%;">
  8. 北京金水公司
  9. </div>
  10. <el-menu default-active="/workSpace" class="custom-menu" style="width: 100%;;margin-top: 10%;" router>
  11. <el-menu-item index="/workSpace" @click="pushTo">
  12. <svg-icon icon-class="产品工作台" style="height: 1rem;width:1rem;"/>
  13. <span style="margin-left: 2%;">工作台</span>
  14. </el-menu-item>
  15. <el-sub-menu index="111" >
  16. <template #title>
  17. <svg-icon icon-class="申请" style="height: 1rem;width:1rem;"/>
  18. <span style="margin-left: 2%;">我的申请</span>
  19. </template>
  20. <el-menu-item-group>
  21. <el-menu-item index="/shenqing">信息资源申请</el-menu-item>
  22. </el-menu-item-group>
  23. </el-sub-menu>
  24. <el-sub-menu index="122" >
  25. <template #title>
  26. <svg-icon icon-class="收藏" style="height: 1rem;width:1rem;"/>
  27. <span style="margin-left: 2%;">浏览收藏</span>
  28. </template>
  29. <el-menu-item-group>
  30. <el-menu-item index="/ziyuan">资源浏览记录</el-menu-item>
  31. </el-menu-item-group>
  32. </el-sub-menu>
  33. <el-menu-item index="/fankui">
  34. <svg-icon icon-class="我的待办" style="height: 1rem;width:1rem;"/>
  35. <span style="margin-left: 2%;">问题反馈</span>
  36. </el-menu-item>
  37. <el-sub-menu index="1" >
  38. <template #title>
  39. <svg-icon icon-class="配置管理" style="height: 1rem;width:1rem;"/>
  40. <span style="margin-left: 2%;">配置管理</span>
  41. </template>
  42. <el-menu-item-group>
  43. <el-menu-item index="/yingyong">应用管理</el-menu-item>
  44. </el-menu-item-group>
  45. </el-sub-menu>
  46. </el-menu>
  47. </div>
  48. <div style="width: 67%;background-color: white;margin-top: 2%;margin-left: 1%;height: 82%;background-color: ;">
  49. <router-view></router-view>
  50. </div>
  51. </div>
  52. </template>
  53. <script setup>
  54. import { ref, onMounted } from 'vue';
  55. const router = useRouter();
  56. function pushTo(){
  57. router.push('/workSpace');
  58. }
  59. onMounted(() => {
  60. pushTo()
  61. });
  62. </script>
  63. <style scoped>
  64. .custom-menu {
  65. border-right: none !important;
  66. }
  67. </style>