Detailtem.vue 1010 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <view
  3. class="exe-item-top"
  4. v-for="(medical, index) in props.data.exeMedications"
  5. :key="index">
  6. <text class="item-name"> {{ medical.name }}</text>
  7. <view
  8. v-if="index == 0"
  9. class="item-right-li mini">
  10. {{ data.exeDateTime }}
  11. </view>
  12. <view class="tag-container">
  13. <view class="top-btns" v-for="(type, index) in medical.useArr">
  14. <uni-tag :inverted="index === 0 || index === 5 ? false : true" :text="type.label" :type="type.type" />
  15. <slot :visible="index == props.data?.exeMedications?.length - 1"></slot>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="exe-item-bottom">
  20. 开始时间:{{ data.startDeteTime }}
  21. <view class="end-time">停止时间:{{ data.endDeteTime }}</view>
  22. </view>
  23. </template>
  24. <script setup>
  25. import { ref, watch, onMounted, nextTick } from 'vue';
  26. const props = defineProps({
  27. data: {
  28. type: Object,
  29. default: () => ({}),
  30. },
  31. });
  32. </script>
  33. <style scoped>
  34. @import url(../common.css);
  35. </style>