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

const model = defineModel<string | undefined | null>()
const dropTableColumns = [
  {
    label: '站点名称',
    prop: 'stationName',
  },
  {
    label: '企业名称',
    prop: 'orgName',
  },
]
const dropTableLoader = (param: StationTypes.SearchStationParam) => {
  return StationApi.paging(param).then(res => res.data)

}

</script>

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