<template>
  <otr-simple-table-workspace title="部门绩效" keyword-placeholder="请输入部门名称" :columns="columns" :fetcher="effectDeptList" />
</template>

<script setup lang="ts">
import { effectDeptList } from '@/api/otr/effect/core'
import OtrSimpleTableWorkspace from '@/modules/otr/_shared/components/OtrSimpleTableWorkspace.vue'

const columns = [
  { prop: 'deptName', label: '部门', width: 140 },
  { prop: 'targetCount', label: '考核数', width: 100 },
  { prop: 'avgScore', label: '平均分', width: 120 },
]
</script>
