<template>
	<view class="content">
		<view  style="text-align: right;margin: 20rpx 40rpx;">
			总合计：{{count}}人
		</view>
		<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.name}}</span>
			<span class="content-box-title">{{pointItem.levelName}}</span>
			<span class="content-box-title">{{pointItem.parentName}}</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
			},
			count: {
				type: Number
			}
		},
		// 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
			// }))
		}
	}
</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>
