index.vue 900 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div >
  3. <div class="flex-container">
  4. <h2>欢迎进入传染病溯源预测系统</h2>
  5. </div>
  6. <div class="button-container">
  7. <el-button size="mini" plain @click="godata" >样本管理</el-button>
  8. <el-button size="mini" plain @click="godata2" >解读中心</el-button>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. export default {
  14. name: "Index",
  15. data() {
  16. return {
  17. }
  18. },
  19. methods: {
  20. godata() {
  21. this.$router.push({
  22. path: '/sample/sampleInfo'
  23. });
  24. },
  25. godata2() {
  26. this.$router.push({
  27. path: '/read/sampleExperiment'
  28. });
  29. }
  30. }
  31. }
  32. </script>
  33. <style scoped="scoped">
  34. .flex-container {
  35. display: flex;
  36. justify-content: center;
  37. align-items: center;
  38. height: 80vh; /* 使容器高度占满整个视口 */
  39. }
  40. .button-container{
  41. display: flex;
  42. justify-content: center;
  43. margin-top:-35vh;
  44. }
  45. </style>