summaryChart.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view :class="['result-data-search-summary', 'content-padding', tabsActiveChild == 2 && 'content-padding-top']">
  3. <view class="content-ul">
  4. <view class="report-ul" style="margin-right: 10rpx">
  5. <block v-for="(item, index) in resultList" :key="index">
  6. <view v-if="index % 2 == 0">
  7. <ReportItem v-if="item.Source == 1" :list="item" />
  8. <ChartItem v-else :list="item" :isMyChartCollection="false" />
  9. </view>
  10. </block>
  11. </view>
  12. <view class="report-ul">
  13. <block v-for="(item, index) in resultList" :key="index">
  14. <view v-if="index % 2 != 0">
  15. <ReportItem v-if="item.Source == 1" :list="item" />
  16. <ChartItem v-else :list="item" :isMyChartCollection="false" />
  17. </view>
  18. </block>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import ChartItem from "@/components/ItemComponent/chartItem.vue";
  25. import ReportItem from "@/components/ItemComponent/reportItem.vue";
  26. export default {
  27. props: {
  28. resultList: {
  29. type: Array,
  30. default: [],
  31. },
  32. tabsActiveChild: {
  33. type: Number,
  34. },
  35. },
  36. data() {
  37. return {};
  38. },
  39. components: {
  40. ChartItem,
  41. ReportItem,
  42. },
  43. methods: {},
  44. };
  45. </script>
  46. <style lang="scss">
  47. .result-data-search-summary {
  48. padding-left: 15rpx;
  49. display: flex;
  50. justify-content: space-between;
  51. background-color: #f5f6fa;
  52. .report-ul {
  53. width: 48%;
  54. }
  55. .content-ul {
  56. display: flex;
  57. }
  58. }
  59. .content-padding {
  60. padding-top: 90rpx !important;
  61. }
  62. .content-padding-top {
  63. padding-top: 20rpx !important;
  64. }
  65. </style>