<template>
  <div>
    <!--引用表格-->
    <BasicTable @register="registerTable">
      <template #tableTitle>
        <el-button type="primary" round @click="handleBatchdownload"> 批量导出</el-button>
      </template>
    </BasicTable>

  </div>
</template>

<script lang="ts" name="system-user" setup>
//ts语法
import { BasicTable, useTable } from '@/components/Table';
import { columns } from './data';
import { periodicallabPageList, batchdownloadPeriodicallabFiles } from './api';

const [registerTable, { reload, getForm }] = useTable({
  title: '项目节点未完成数',
  api: periodicallabPageList,
  columns: columns,
  useSearchForm: false,
  showIndexColumn: false,
  //表单查询项设置

});


function handleBatchdownload() {
  let { getFieldsValue } = getForm()
  let fromData = getFieldsValue()
  batchdownloadPeriodicallabFiles(fromData)
  reload()
}


</script>

<style scoped></style>