<template>
  <otr-simple-table-workspace
    title="人员报告"
    keyword-placeholder="请输入姓名/部门"
    :columns="columns"
    :fetcher="personReportList"
  />
</template>

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

const columns = [
  { prop: 'staffName', label: '姓名', width: 120 },
  { prop: 'deptName', label: '部门', width: 140 },
  { prop: 'targetCount', label: '目标数', width: 100 },
  { prop: 'progress', label: '平均进度', width: 120 },
  { prop: 'effectScore', label: '绩效得分', width: 120 },
]
</script>
