index.vue 1.3 KB

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