<template>
  <div>
    <!--引用表格-->
    <BasicTable @register="registerTable" :ellipsis="false">
    </BasicTable>
   
  </div>
</template>

<script setup lang="ts">
  import { BasicColumn, BasicTable } from '/@/components/Table';
  import { useListPage } from '/@/hooks/system/useListPage';
  import { aqlyltj } from './api';
  import { searchFormSchemalyl } from './data';

  const columns: BasicColumn[] = [
    {
        title: '年度',
        dataIndex: 'nd',
        resizable: true,
    },
    {
        title: '行政区划',
        resizable: true,
        dataIndex: 'name',
    },
    {
        title: '落实风险管控和修复要求的重点建设用地数量',
        resizable: true,
        dataIndex: 'lsfxgkhxfyqdzdjsydsl',
    },
    {
        title: '重点建设用地数量',
        resizable: true,
        dataIndex: 'zdjsydsl',
    },
    {
        title: '安全利用率',
        dataIndex: 'aqlyl',
        resizable: true,
    }
];
  
  // 列表页面公共参数、方法
  const { tableContext } = useListPage({
    tableProps: {
      title: '重点建设用地安全利用率统计',
      api: aqlyltj,
      columns,
      canResize: false,
      showActionColumn: false,
      formConfig: {
        labelWidth: 120,
        schemas: searchFormSchemalyl,
        autoSubmitOnEnter: true,
        showAdvancedButton: false,
      },
    },
  });
  //BasicTable绑定注册
  const [registerTable, {}, {}] = tableContext;

  
  
</script>
