index.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <van-tabs v-model="active" @click-tab="onClickTab">
  3. <van-tab title="问题清单">
  4. <listquestions-component></listquestions-component>
  5. </van-tab>
  6. <van-tab title="问题统计">
  7. <questionstatistics-component></questionstatistics-component>
  8. </van-tab>
  9. </van-tabs>
  10. </template>
  11. <script setup>
  12. import { ref } from "vue";
  13. import ListQuestions from "./listquestions.vue";
  14. import QuestionsTatistics from "./questionstatistics.vue";
  15. import { showToast } from 'vant';
  16. const active = ref('问题清单');
  17. const onClickTab = ({ title }) => showToast(title);
  18. // onMounted(() => {
  19. // getRStLLMaxDate().then(res => {
  20. // console.log(res)
  21. // })
  22. // })
  23. </script>
  24. <style scoped>
  25. /* .container {
  26. padding: 20px;
  27. overflow-y: auto;
  28. }
  29. .card {
  30. background-color: #f9f9f9;
  31. border: 1px solid #ddd;
  32. border-radius: 5px;
  33. padding: 20px;
  34. margin-bottom: 20px;
  35. }
  36. .btn {
  37. display: inline-block;
  38. background-color: #007BFF;
  39. color: white;
  40. padding: 10px 20px;
  41. text-decoration: none;
  42. border-radius: 5px;
  43. } */
  44. </style>