湖州项目前端
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.

42 lines
1.0 KiB

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