<!--
@ 作者: 鲁智强
@ 时间: 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 = (index:any) => {
  number.value = index;
};
</script>
<template class="asd">
	<div>
	<el-button :class="{newStyle:0===number}" @click="chnage(0)">部门指标</el-button>
	<el-button :class="{newStyle:1===number}" @click="chnage(1)">岗位指标</el-button>
	<div v-show="0===number">
		<bb></bb>
	</div>
	<div v-show="1===number">
		<bb></cc>
	</div>
	</div>
</template>
<style  lang='scss' scoped>
*{
	background-color: #fff;
}
.asd{
	width:100px;
}
</style>
