This commit is contained in:
qsh
2025-04-14 17:07:21 +08:00
parent 74efe8409f
commit f93e1f7187
15 changed files with 206 additions and 46 deletions

View File

@@ -20,7 +20,7 @@
<el-tab-pane label="目标关系树" name="3">
<ObjectList v-if="tabIndex == 3" />
</el-tab-pane>
<el-tab-pane disabled>
<el-tab-pane disabled v-if="employeeList.length > 0">
<template #label>
<div class="w-full">
<el-divider
@@ -31,9 +31,14 @@
</div>
</template>
</el-tab-pane>
<el-tab-pane label="张三">张三</el-tab-pane>
<el-tab-pane label="李四">李四</el-tab-pane>
<el-tab-pane label="王二">王二</el-tab-pane>
<el-tab-pane
v-for="item in employeeList"
:key="item.userId"
:label="item.userName"
:name="item.userId"
>
<MySon v-if="tabIndex == item.userId" :userId="item.userId" />
</el-tab-pane>
</el-tabs>
</div>
</template>
@@ -41,11 +46,21 @@
<script setup name="OkrManagement">
import AllTarget from './Components/AllTarget.vue'
import MyDuty from './Components/MyDuty.vue'
import MySon from './Components/MySon.vue'
import ObjectList from './Components/ObjectList.vue'
import WaitTarget from './Components/WaitTarget.vue'
import { getMyMemberList } from '@/api/okr/okr'
const tabIndex = ref('0')
const height = ref(innerHeight - 115)
const employeeList = ref([])
onMounted(() => {
getMyMemberList().then((res) => {
employeeList.value = res
})
})
</script>
<style lang="scss" scoped>