<template>
	<view class="content">
		<view  style="text-align: right;margin: 20rpx 40rpx;font-size: 28rpx;">
			总合计：{{count}}人
		</view>
		<view class="content-box">
			<view class="content-box-title" v-for="(item,index) in datatitleList" :key="index">
				<text class="title">{{item}}</text>
			</view>
		</view>
		<view class="content-sam-box" v-for="(pointItem,index) in otherList" :key="index">
			<span class="content-box-title cell">{{pointItem.parentName}}</span>
			<span class="content-box-title cell">{{pointItem.name}}</span>
			<span class="content-box-title cell">{{pointItem.levelName}}</span>
			<span class="content-box-title cell">{{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
			},
			count: {
				type: Number
			}
		},
		// components:{
		// 	MyteamTable
		// },
		data() {
			return {
				// datatitleList: ['成员', '职级', '上级', '关系'],
				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
			// }))
		}
	}
</script>

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

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

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