index.vue 2.12 KB
<template>
	 <div class="content_box">
		<el-tabs v-model="activeName"  @tab-click="handleClick" type="border-card"  >
			<el-tab-pane label="地籍调查表" name="djdcb"><zddcb></zddcb></el-tab-pane>
			<el-tab-pane label="面积分摊表" name="mjftb"><mjftb v-if="mjftbVisible"></mjftb></el-tab-pane>
			<el-tab-pane label="界址点" name="jzd"><jzd v-if="jzdVisible"></jzd></el-tab-pane>
			<el-tab-pane label="界址线" name="jzx"><jzx v-if="jzxVisible"></jzx></el-tab-pane>
			<el-tab-pane label="登记簿" name="djb"><djb v-if="djbVisible"></djb></el-tab-pane>
			<el-tab-pane label="历史回溯" name="lshs"><lshs v-if="lshsVisible"></lshs></el-tab-pane>
			<el-tab-pane label="附件材料" name="fjcl"><fjcl v-if="fjclVisible"></fjcl></el-tab-pane>
		</el-tabs>
	</div> 
</template>

<script>
import zddcb from "./zddcb";
import mjftb from "./mjftb";
import jzd from "./jzd";
import jzx from "./jzx";
import djb from "./djb";
import lshs from "./lshs";
import fjcl from "./fjcl/fjcl"
export default {
	name: "",
	components: {
        zddcb,mjftb,jzd,jzx,djb,lshs,fjcl
    },
	props: {},
	data() {
		return {
			activeName: "djdcb",
			mjftbVisible:false,
			jzdVisible:false,
			jzxVisible:false,
			djbVisible:false,
			lshsVisible:false,
			fjclVisible:false,
		};
	},
	methods: {
		handleClick(tab, event) {
			// console.log(tab, event);
			switch (tab.name) {
				case 'mjftb':
					this.mjftbVisible = true;
					break;
				case 'jzd':
					this.jzdVisible = true;
					break;
				case 'jzx':
					this.jzxVisible = true;
					break;
				case 'djb':
					this.djbVisible = true;
					break;
				case 'lshs':
					this.lshsVisible = true;
					break;
				case 'fjcl':
					this.fjclVisible = true;
					break;
			
				default:
					break;
			}
		},
	},
	created() {},
	mounted() {},
	computed: {},
	watch: {},
};
</script>
<style scoped lang="less">
	.el-tabs{
		height: calc(100% - 50px);
		/deep/.el-tabs__content{
			//height: 100%;
			 /deep/.el-tab-pane{
			 	height: 100%;
			 }
			background: #eaedf5;
			padding: 0;
		}
		/deep/ .el-tabs__item {
			height: 48px;
		}
		/deep/ .el-tabs__header{
			background-color: #ffffff;
		}
	}

</style>