MerchantRelationGroundingReadonly.vue 1.81 KB
<template>
  <div v-loading="loading" class="merchant-relation-grounding-readonly">
    <div class="section grounding-section-traffic">
      <div class="section-title">
        流量方信息
      </div>
      <MerchantGroundingTrafficProviderInformation :data="trafficProviderData"
                                                   :is-view-mode="true"
                                                   :show-edit-toolbar="false"
                                                   :show-other-service-providers="true" />
    </div>
  </div>
</template>

<script>
import MerchantGroundingTrafficProviderInformation from "./components/MerchantGroundingTrafficProviderInformation.vue";

export default {
	name: "MerchantRelationGroundingReadonly",
	components: {
		MerchantGroundingTrafficProviderInformation,
	},
	provide() {
		return {
			size: "mini",
			GET_BASE_SCENE_CODE: () => this.baseSceneCode,
		};
	},
	props: {
		trafficProviderData: {
			type: Object,
			default: () => ({}),
		},
		businessForm: {
			type: Object,
			default: () => ({}),
		},
		productDetails: {
			type: Array,
			default: () => [],
		},
		loading: {
			type: Boolean,
			default: false,
		},
		baseSceneCode: {
			type: String,
			default: "",
		},
	},
};
</script>

<style scoped lang="scss">
.merchant-relation-grounding-readonly {
	background: #f5f7fa;
	padding: 12px 0 16px;
	box-sizing: border-box;

	.section {
		margin-bottom: 12px;
		background: #fff;
	}

	.section-title {
		height: 48px;
		line-height: 48px;
		margin: 0;
		padding: 0 20px;
		box-sizing: border-box;
		font-size: 14px;
		font-weight: 600;
		color: #333333;
		background: #fff;
		border-bottom: 1px solid #ebeef5;
	}

	.section-sales-category {
		margin-bottom: 0;
	}

	::v-deep .grounding-section-traffic .traffic-provider-information-btns {
		display: none !important;
	}
}
</style>