<template>
	<div class="app-container">
		<div class="content">
			<div class="combined-title">
				<div class="title-right">
					<div class="tab">
						<div style="position:relative" v-for="(itme,i)  in personnelList"
							:class="itme.status==true?'active':'' " :key='i' @click="personnelListbtn(i)">
							<p>{{itme.value}}</p>
						</div>
					</div>

				</div>
			</div>
			<p class="solid"></p>
		</div>
		<!-- 重点项目清单 -->
		<MajorProject v-if="personnelHerf=='MajorProject'" />
		<!-- 政府专项债 -->
		<debtProject v-if="personnelHerf=='debtProject'" />
		<!-- 土地交易 -->
		<Land v-if="personnelHerf=='Land'" />
		<!-- 拟建项目 -->
		<Establishment v-if="personnelHerf=='Establishment'" />
		<!-- 招标计划 -->
		<Bidding v-if="personnelHerf=='Bidding'" />
		<!-- 标讯pro -->
		<!--<bxprozbgg v-if="personnelHerf=='bxprozbgg'" />-->
		<!-- 公招标讯 -->
		<Tender v-if="personnelHerf=='Tender'" />
		<!-- 开标记录 -->
		<BidRecord v-if="personnelHerf=='BidRecord'" />



	</div>
</template>
<script>
	import debtProject from "./components/debtProject/index.vue";
	import Land from "./components/Land/index.vue";
	import Establishment from "./components/Establishment/index.vue";
	import bxprozbgg from "./components/bxprozbgg/index.vue";
	import Tender from "./components/Tender/index.vue";
	import BidRecord from "./components/BidRecord/index.vue";
	import Bidding from "./components/Bidding/index.vue";
	import MajorProject from "./components/MajorProject/index.vue";

	import "@/assets/styles/public.scss";
	export default {
		name: 'Radar',
		components: { MajorProject,debtProject,Land,Establishment,bxprozbgg,Tender,BidRecord,Bidding },
		data() {
			return {
				personnelList: [
					{
						key: 'MajorProject',
						status: true,
						value: '重点项目清单',

					},
					{
						key: 'debtProject',
						status: false,
						value: '政府专项债项目',

					},
					{
						key: 'Land',
						status: false,
						value: '土地交易',

					},
					{
						key: 'Establishment',
						status: false,
						value: '拟建项目',

					},
					{
						key: 'Bidding',
						status: false,
						value: '招标计划',

					},
					// {
					// 	key: 'bxprozbgg',
					// 	status: false,
					// 	value: '标讯pro',
					//
					// },
					{
						key: 'Tender',
						status: false,
						value: '公招标讯',

					},
					{
						key: 'BidRecord',
						status: false,
						value: '开标记录',

					},

				],
				personnelHerf:'MajorProject'
			}
		},
		created() {
			// console.log(this.$route.name)
		},
		methods: {
			personnelListbtn(index) {
				for (var i = 0; i < this.personnelList.length; i++) {
					this.personnelList[i].status = false;
				}
				this.personnelList[index].status = true;
        this.personnelHerf=this.personnelList[index].key;
			},
		}
	}
</script>

<style lang="scss" scoped>

	.app-container {
		margin: 12px 24px;
		padding: 0;
	}
	.content{
		padding: 0px 16px;
       background: #FFFFFF;

	}

	.app-container .combined-title {
		display: flex;
		padding-top: 10px;
		align-items: center
	}

	.app-container .combined-title .title-icon {
		display: inline-block;
		width: 6px;
		height: 26px;
		background: #1373D9;
		border-radius: 0px 0px 0px 0px;
		opacity: 1;
		margin-right: 18px;
	}

	.app-container .combined-title .title-right {
		display: flex;
		width: 100%;
		position: relative;
		height: 40px;
	}

	.app-container .combined-title .title-right .title-text {
		font-size: 16px;
		font-weight: bold;
		color: #333333;
		line-height: 40px;
	}

	.app-container .combined-title .title-right .title-add {
		color: #1373D9;
		cursor: pointer;
		position: absolute;
		right: 0;
	}

	.app-container .combined-title .title-right .title-addyj {
		top: 5px;
	}

	.app-container .combined-title .title-right .title-add .add-img {
		position: relative;
		top: -1px;
		margin-right: 6px;
	}
	.app-container .content{
		position: relative;
	}

	.app-container   .solid {
		width: 100%;
		height: 1px;
		background-color: #EEEEEE;
		position: absolute;
		bottom: -1px;
		left: 0;
		z-index: 1;
	}

	.tab {
		display: flex;
		z-index: 2;
	}

	.tab_p_32 {
		padding-right: 32px;
		padding-left: 32px;
	}

	.tab div {
		cursor: pointer;
		color: #666666;
		font-size: 16px;
		text-align: center;
		margin-right: 32px;
		line-height: 40px;
	}

	.tab div p {
		display: inline-block;
		padding: 0px;

	}

	.tab div .logo {
		color: #fff;
		font-weight: 400;
		font-size: 10px;
		position: absolute;
		top: -6px;
		right: -24px;
		display: inline-block;
		line-height: 14px;
		padding: 1px 2px;
		text-align: center;
		background: #3663DE;
		border-radius: 2px 2px 2px 2px;

	}

	.tab div .triangle {
		display: inline-block;
		width: 0px;
		height: 0px;
		border-left: 3px solid transparent;
		border-right: 3px solid transparent;
		border-top: 4px solid #3663DE;
		position: absolute;
		top: 9.5px;
		right: -3px;
	}

	 .tab .active {
		color: #1373D9;
	}

	 .tab .active .triangle {
		border-top: 4px solid #1373D9;
	}

	 .tab .active .logo {
		background: #1373D9;
	}

	 .tab .active p {
		border-bottom: 2px solid #1373D9;
		font-weight: bold;
	}
</style>
