index.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <script lang="ts" setup>
  2. /**
  3. * @Name: index.vue
  4. * @Description: 历史详情
  5. * @Author: Cheney
  6. */
  7. import { useTableHeight } from '/@/utils/useCustomHeight';
  8. import PriceChart from '/@/views/product-manage/historical-detail/component/PriceChart.vue';
  9. import DataTable from '/@/views/product-manage/historical-detail/component/DataTable.vue';
  10. const isShowHistory = defineModel({ default: false });
  11. const props = defineProps({
  12. rowData: <any>Object,
  13. title: String
  14. });
  15. const { rowData, title } = props;
  16. const heightObj = { topBar: 50, cardMargin: 8, cardPadding: 20 };
  17. const { tableHeight } = useTableHeight(heightObj);
  18. </script>
  19. <template>
  20. <div class="drawer-container">
  21. <el-drawer
  22. ref="editDrawer"
  23. v-model="isShowHistory"
  24. :show-close="false"
  25. :title="`${title} - 历史详情`"
  26. direction="btt"
  27. size="85%"
  28. style="background-color:#F3F4FB;">
  29. <div class="sticky top-0" style="background-color:#F3F4FB; min-height: 20px; z-index: 999"></div>
  30. <div class="px-5">
  31. <PriceChart :asin="rowData.asin" :country="rowData.country_code" />
  32. <DataTable :asin="rowData.asin" :country="rowData.country_code" />
  33. </div>
  34. </el-drawer>
  35. </div>
  36. </template>
  37. <style scoped>
  38. .drawer-container :deep(.el-drawer__header) {
  39. border-bottom: none;
  40. font-weight: 500;
  41. }
  42. .drawer-container :deep(.el-drawer__title) {
  43. font-size: 18px;
  44. }
  45. </style>