<script lang="ts" setup>
import ADropTable from '@/components/a-drop-table/ADropTable.vue'
import OrgApi from '@/pages/cst/org/org-api.ts'

const model = defineModel<string | undefined | null>()
const dropTableColumns = [
  {
    label: '企业名称',
    prop: 'orgName',
  },
  {
    label: '负责人',
    prop: 'customerName',
  },
  {
    label: '负责人电话',
    prop: 'customerPhone',
  },
]
const dropTableLoader = (param: OrgTypes.SearchOrgParam) => {
  return OrgApi.paging(param).then(res => res.data)

}

</script>

<template>
  <ADropTable v-model="model"
    :columns="dropTableColumns"
    :loader="dropTableLoader"
    display-field="orgName"/>
</template>
