<template>
	<view class="content">
		<view class="content-box">
			<view class="content-box-title" v-for="item in datatitleList">
				<text class="title">{{item}}</text>
			</view>
		</view>
		<view class="content-sam-box" v-for="pointItem in otherList">
			<span class="content-box-title">{{pointItem.org}}</span>
			<span class="content-box-title">{{pointItem.levelName}}</span>
			<span class="content-box-title">{{pointItem.name}}</span>
			<span class="content-box-title">{{pointItem.referrer}}</span>
		</view>
	<!-- 	<view class="">
			<myteam-table  :datatitleList="datatitleList" :dataList="dataList"  tabletype="1" type="3"></myteam-table>
		</view> -->
	</view>
</template>

<script>
	// import MyteamTable from '@/components/myteam/myteam-table.vue';
	export default {
		props: {
			otherList: {
				type: Array,
				default: null
			}
		},
		// components:{
		// 	MyteamTable
		// },
		data() {
			return {
				datatitleList: ['所属组织', '职级', '姓名', '推荐关系'],
				dataList:[],
				// dataList: [{
				// 		title: '所属组织1',
				// 		rank: 1,
				// 		name: 'sun',
				// 		recommend: '很好'
				// 	},
				// 	{
				// 		title: '所属组织2',
				// 		rank: 1,
				// 		name: 'sun',
				// 		recommend: '很好'
				// 	},
				// 	{
				// 		title: '所属组织3',
				// 		rank: 1,
				// 		name: 'sun',
				// 		recommend: '很好'
				// 	},
				// ]
			}
		},
		mounted() {
			// this.dataList = this.otherList.map((x,index) => ({
			// 	org:x.org,
			// 	levelName:x.levelName,
			// 	name: x.name,
			// 	referrer:x.referrer
			// }))
			// console.log(this.otherList, 7778878788)
		}
	}
</script>

<style lang="scss">
.content{
	height: 100%;
	width: 100vw;
	margin-top: 20px;
}

	.content-box {
		background-color: #fff;
		display: flex;
		font-weight: 600;
		align-items: center;
		justify-content: space-between;
	}

	.content-box-title {
		flex: 1;
	}
	.content-sam-box{
		background-color: #fff;
		display: flex;
		align-items: center;
		font-size: 26rpx;
		justify-content: space-between;
		padding: 10px 0;
		color: #333333;
		border-bottom: 1px solid #F2F2F2;;
	}
</style>
