<template>
	<view class="content">
		<view  v-for="(item, index) in dataList"  :key="index">
			<view class="content-header">
				<view class="concent-title">
					<text class="concent-text">{{item.areaCenterName}}</text>
				</view>
			</view>
			<view  style="text-align: right;margin: 20rpx 40rpx;">
				合计：{{item.count}}
			</view>
			<view class="" style="margin-bottom: 80rpx;">
				<view class="d-box">
					<view class="d-td">
						<text>辖下组织/成员</text>
					</view>
					<view class="d-td" style="flex: 1;text-align: center;">
						<text>职级</text>
					</view>
					<view class="d-td" style="flex: 1;text-align: center;">
						<text>成员数量</text>
					</view>
				</view>
				<lazy-tree :datatitleList="datatitleList" :dataList="item.memberList" type="2"></lazy-tree>
				<!-- <lazy-tree :datatitleList="datatitleList" :dataList="getList(item,dataList)" type="2"></lazy-tree> -->
					<!-- <myteam-table :datatitleList="datatitleList" :dataList="raiseList" type="2"></myteam-table> -->
		<!-- 		<view class="table-content">
					<span>辖下组织/成员</span>
					<span>职级</span>
					<span>合计</span>
				</view>
				<view class="table-content" v-for="(itemq, index) in item.dataL"  :key="index">
					<span>{{itemq.nameq}}</span>
					<span>{{itemq.rms}}</span>
					<span>{{itemq.smn}}</span>
				</view>
			</view> -->
		</view>

	</view>
	</view>
</template>

<script>
	// import MyteamTable from '@/components/myteam/myteam-table.vue';
	import lazyTree from '@/components/myteam/lazy-tree.vue';
	export default {
		props:{
			raiseList:{
				type:Array
			}
		},
		components:{
			// MyteamTable
			lazyTree
		},
		mounted() {
			this.dataList = this.raiseList
		},
		methods:{
			getList(item,arr){
				return arr.filter((val)=>{
					return item.areaCenterName == val.areaCenterName
				})
			}
		},
		data() {
			return {
				datatitleList:['辖下组织/成员','职级','合计'],
				dataList:[],
				lazyTreeData:[],
				// dataList:[
				// 	{
				// 		name: 'shirley一级服务中心',
				// 		rank: '50',
				// 		dataL:[
				// 			{name:'成员',levelName:'2级别',count:'111'},
				// 			{name:'成员',levelName:'2级别',count:'111'},
				// 			{name:'成员',levelName:'2级别',count:'111'}
				// 		]
				// 		},
				// 		{
				// 			name: '雪梨一级服务中心',
				// 			rank: '80',
				// 			dataL:[
				// 				{name:'成员',levelName:'2级别',count:'111'},
				// 				{name:'成员',levelName:'2级别',count:'111'},
				// 				{name:'成员',levelName:'2级别',count:'111'}
				// 			]
				// 			}
				// ]
				// dataList:[{
				// 	name:'',
				// 	total: '582',
				// 		list:[
				// 			name:'成员',
				// 			rank: '1',
				// 			total: '42',
				// 		],
				// },{
				// 	name:'',
				// 	total: '105',
				// 		list:[
				// 			name:'成员2',
				// 			rank: '2',
				// 			total: '52',
				// 		],
				// }],
			}
		},
	}
</script>

<style lang="scss" scoped>
.content{
	height: 100%;
	width: 100vw;
	margin-top: 20px;
}
.content-header{
	display: flex;
	justify-content: center;
}
	.d-box {
		display: flex;
		justify-content: space-between;
		// padding: 0 20rpx;
		font-size: 32rpx;
		font-weight: 600;

		.d-header {
			text-align: center;
			font-size: 26rpx;
		}

		.d-td {
			align-items: center;
			padding: 5rpx 10rpx;
		}
	}
.concent-title{
	width: 223px;
	height: 40px;
	background: url('../../../static/Group 1623.png');
	background-size: auto 100%;
}
.concent-text{
	font-size: 18px;
	font-weight: 500;
	color: #FFFFFF;
	line-height: 40px;
}
.table-content{
	margin: 10px 20px;
	display: flex;
	justify-content: space-between;
}
</style>
