index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <div class="container">
  3. <h3 style="text-align: center;color:#ffffff;margin-bottom: 5px;margin-top:35px">数据导航</h3>
  4. <div class="wrapper" v-for="route in routes" :key="route.label">
  5. <el-button type="info" plain @click="goRouter($event,route.link)">{{route.label}}
  6. <i class="el-icon-right"></i>
  7. </el-button>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. export default {
  13. data(){
  14. return {
  15. routes:[
  16. {label:'1.业绩报表', link:'/?path=results'},
  17. {label:'2.利润看板', link:'/?path=report'},
  18. {label:'3.应收账款', link:'/?path=accountsReceivable'},
  19. {label:'4.订单情况', link:'/?path=newReport'},
  20. {label:'5.发货情况', link:'/?path=stock'},
  21. {label:'2024新业绩报表-测试',link:'/?path=newResults'}
  22. ]
  23. }
  24. },
  25. mounted(){
  26. document.title = "数据导航"
  27. },
  28. methods:{
  29. goRouter(e,link){
  30. e.stopPropagation()
  31. // window.location.hash = link
  32. window.open(link)
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="scss">
  38. .container {
  39. width:100%;
  40. height: 100vh;
  41. position: fixed;
  42. background-image: url(/wel.jpg);
  43. background-size: cover;
  44. background-position: 35%;
  45. }
  46. .wrapper{
  47. display: flex;
  48. padding: 10px;
  49. flex-direction: column;
  50. margin-bottom: 5px;
  51. button{
  52. margin: 0px !important;
  53. }
  54. }
  55. </style>