湖州项目前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
920 B

<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>