<template> <!-- 年度考核 --> <div class="monthjxPagekh"> <yearuser v-if="totalScore == ''"></yearuser> <yearcomp v-else></yearcomp > </div> </template> <script> import { reactive, toRefs, onBeforeMount, onMounted, ref, h ,computed} from 'vue'; import { Search, Add, Book } from '@vicons/ionicons5'; import { NInputNumber, NInput,NTag } from 'naive-ui'; import yearuser from './yearuser.vue';//个人 import yearcomp from './yearcomp.vue';//上级领导 import bus from '@/utils/util'; export default { name: 'monthjxPage', components: { Search, Add, Book, yearuser, yearcomp, }, setup() { const allData = reactive({ totalScore :'user', }); onMounted(() => { }); onBeforeMount(() => { bus.off('getCurrentData'); }); return { ...toRefs(allData), }; }, }; </script> <style lang="less" scoped> </style>