<template>
  <div>
    <!--引用表格-->
    <BasicTable @register="registerTable" bordered >
      <template #tableTitle>
        <el-button type="primary" round @click="handleBatchdownload"> 导出晾晒看报</el-button>
        <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 { queryBoardInfo, batchdownloadPeriodicallabFiles } from './api';

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

});


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


</script>

<style scoped></style>