1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <template>
- <view :class="['result-data-search-summary', 'content-padding', tabsActiveChild == 2 && 'content-padding-top']">
- <view class="content-ul">
- <view class="report-ul" style="margin-right: 10rpx">
- <block v-for="(item, index) in resultList" :key="index">
- <view v-if="index % 2 == 0">
- <ReportItem v-if="item.Source == 1" :list="item" />
- <ChartItem v-else :list="item" :isMyChartCollection="false" />
- </view>
- </block>
- </view>
- <view class="report-ul">
- <block v-for="(item, index) in resultList" :key="index">
- <view v-if="index % 2 != 0">
- <ReportItem v-if="item.Source == 1" :list="item" />
- <ChartItem v-else :list="item" :isMyChartCollection="false" />
- </view>
- </block>
- </view>
- </view>
- </view>
- </template>
- <script>
- import ChartItem from "@/components/ItemComponent/chartItem.vue";
- import ReportItem from "@/components/ItemComponent/reportItem.vue";
- export default {
- props: {
- resultList: {
- type: Array,
- default: [],
- },
- tabsActiveChild: {
- type: Number,
- },
- },
- data() {
- return {};
- },
- components: {
- ChartItem,
- ReportItem,
- },
- methods: {},
- };
- </script>
- <style lang="scss">
- .result-data-search-summary {
- padding-left: 15rpx;
- display: flex;
- justify-content: space-between;
- background-color: #f5f6fa;
- .report-ul {
- width: 48%;
- }
- .content-ul {
- display: flex;
- }
- }
- .content-padding {
- padding-top: 90rpx !important;
- }
- .content-padding-top {
- padding-top: 20rpx !important;
- }
- </style>
|