<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 15:01:23
@ 备注: 
-->
<script lang='ts' setup>
import cc from './cc.vue'
import bb from './bb.vue'
import { addPostCont } from '@/api/opk/api'
import {ref} from 'vue'
const number = ref(0);
const chnage = (tab) => {
	console.log(tab.index);
  	number.value = tab.index;
};
</script>
<template class="asd">
	<el-tabs @tab-click="chnage">
		<el-tab-pane label="部门方案" name="bb"></el-tab-pane>
		<el-tab-pane label="岗位方案" name="cc"></el-tab-pane>
	</el-tabs>
<div>
	<div v-if="number == 0">
		<bb></bb>
	</div>
	<div v-if="number == 1">
		<cc></cc>
	</div>
</div>
</template>
<style  lang='scss' scoped>
*{
	background-color: #fff;
}
.asd{
	width:100px;
	background-color:
}
</style>
