You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
714 B
35 lines
714 B
<!--
|
|
@ 作者: 鲁智强
|
|
@ 时间: 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:1===number}" @click="chnage(0)">部门指标</el-button>
|
|
<el-button :class="{newStyle:0===number}" @click="chnage(1)">岗位指标</el-button>
|
|
<div v-show="0===number">
|
|
<cc></cc>
|
|
</div>
|
|
<div v-show="1===number">
|
|
<bb></bb>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<style lang='scss' scoped>
|
|
*{
|
|
background-color: #fff;
|
|
}
|
|
.asd{
|
|
width:100px;
|
|
}
|
|
</style>
|
|
|