history.vue 569 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <div class="history-container">
  3. <LeftCard />
  4. <RightCard @goBack="goBack"/>
  5. </div>
  6. </template>
  7. <script setup lang="ts">
  8. import LeftCard from './components/history/LeftCard.vue';
  9. import RightCard from './components/history/RightCard.vue';
  10. const { patientInfo } = defineProps<{ patientInfo: any }>()
  11. const emit = defineEmits(['change']);
  12. const goBack = () => {
  13. emit('change','enteralNutrition')
  14. };
  15. </script>
  16. <style lang="scss" scoped>
  17. .history-container {
  18. display: flex;
  19. gap: 20px;
  20. min-height: 100vh;
  21. background: #f5f7fa;
  22. }
  23. </style>