index.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <script lang="ts" setup>
  2. /**
  3. * @Name: index.vue
  4. * @Description: 评论详情
  5. * @Author: Cheney
  6. */
  7. import AverageMonthly from '/@/views/product-manage/comment-detail/component/AverageMonthly.vue';
  8. import TitleCard from './component/TitleCard.vue';
  9. const isShowComment = defineModel({ default: false });
  10. const props = defineProps({
  11. rowData: <any>Object,
  12. title: String
  13. });
  14. const { rowData } = props;
  15. </script>
  16. <template>
  17. <div class="drawer-container">
  18. <el-drawer
  19. ref="editDrawer"
  20. v-model="isShowComment"
  21. :show-close="false"
  22. :title="`${title} - 评论详情`"
  23. direction="btt"
  24. size="85%"
  25. style="background-color:#F3F4FB;">
  26. <div class="sticky top-0" style="background-color:#F3F4FB; min-height: 20px; z-index: 2"></div>
  27. <div class="px-5">
  28. <!-- Title Card -->
  29. <TitleCard :asin="rowData.asin" :img="rowData.img" :title="rowData.title" :url="rowData.url" />
  30. <!-- Chart -->
  31. <!--<el-row :gutter="20" class="mt-5" style="z-index: 1">-->
  32. <!-- <el-col :span="12">-->
  33. <!-- <NegativeLabel />-->
  34. <!-- </el-col>-->
  35. <!-- <el-col :span="12">-->
  36. <!-- <NegativeClassification />-->
  37. <!-- </el-col>-->
  38. <!--</el-row>-->
  39. <!-- Chart -->
  40. <div class="mt-5">
  41. <AverageMonthly :asin="rowData.asin" />
  42. </div>
  43. </div>
  44. </el-drawer>
  45. </div>
  46. </template>
  47. <style scoped>
  48. .drawer-container :deep(.el-drawer__header) {
  49. border-bottom: none;
  50. font-weight: 500;
  51. }
  52. .drawer-container :deep(.el-drawer__title) {
  53. font-size: 18px;
  54. }
  55. </style>