|
@@ -6,11 +6,6 @@
|
|
|
<main class="safety-platform-container__main">
|
|
<main class="safety-platform-container__main">
|
|
|
<div class="search-table-container">
|
|
<div class="search-table-container">
|
|
|
<header>
|
|
<header>
|
|
|
- <div style="position: relative">
|
|
|
|
|
- <el-button plain class="search-table-container--button" @click="handleDownload">
|
|
|
|
|
- 导出
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
|
|
<div class="act-search">
|
|
<div class="act-search">
|
|
|
<section class="select-box">
|
|
<section class="select-box">
|
|
@@ -52,6 +47,9 @@
|
|
|
<section class="search-btn">
|
|
<section class="search-btn">
|
|
|
<el-button type="primary" @click="handleSearch">查询</el-button>
|
|
<el-button type="primary" @click="handleSearch">查询</el-button>
|
|
|
<el-button @click="handleReset">重置</el-button>
|
|
<el-button @click="handleReset">重置</el-button>
|
|
|
|
|
+ <el-button plain @click="handleDownload">
|
|
|
|
|
+ 导出
|
|
|
|
|
+ </el-button>
|
|
|
</section>
|
|
</section>
|
|
|
</div>
|
|
</div>
|
|
|
</header>
|
|
</header>
|
|
@@ -108,7 +106,7 @@
|
|
|
import type { QueryPageRequest } from '@/types/basic-query';
|
|
import type { QueryPageRequest } from '@/types/basic-query';
|
|
|
import {
|
|
import {
|
|
|
queryDrawLessonsAdminDeptPage,
|
|
queryDrawLessonsAdminDeptPage,
|
|
|
- exportDrawLessonsAdminPage,
|
|
|
|
|
|
|
+ exportDrawLessonsAdminPageDept,
|
|
|
type DrawLessonsQueryParam,
|
|
type DrawLessonsQueryParam,
|
|
|
} from '@/api/drawLessons';
|
|
} from '@/api/drawLessons';
|
|
|
import { downloadByData } from '@/utils/file/download';
|
|
import { downloadByData } from '@/utils/file/download';
|
|
@@ -209,7 +207,7 @@
|
|
|
|
|
|
|
|
const handleDownload = async () => {
|
|
const handleDownload = async () => {
|
|
|
try {
|
|
try {
|
|
|
- const response = await exportDrawLessonsAdminPage();
|
|
|
|
|
|
|
+ const response = await exportDrawLessonsAdminPageDept();
|
|
|
if (response) {
|
|
if (response) {
|
|
|
const fileName = `举一反三_${new Date().toISOString().split('T')[0]}.xlsx`;
|
|
const fileName = `举一反三_${new Date().toISOString().split('T')[0]}.xlsx`;
|
|
|
downloadByData(response, fileName);
|
|
downloadByData(response, fileName);
|