|
@@ -37,19 +37,12 @@
|
|
|
<el-button :loading="closeLoading" @click="onCloseSubject"
|
|
|
>关闭</el-button
|
|
|
>
|
|
|
-
|
|
|
- <el-dropdown @command="onExportCommand">
|
|
|
- <el-button class="is-shade">
|
|
|
- 导出
|
|
|
- <el-icon class="el-icon--right"><CaretBottom /> </el-icon>
|
|
|
- </el-button>
|
|
|
- <template #dropdown>
|
|
|
- <el-dropdown-menu>
|
|
|
- <el-dropdown-item command="fhy">整体评卷进度</el-dropdown-item>
|
|
|
- <el-dropdown-item command="fhy">评卷员工作量</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </template>
|
|
|
- </el-dropdown>
|
|
|
+ <el-button @click="onExportCommand('exportMarkProgress')"
|
|
|
+ >导出评卷进度</el-button
|
|
|
+ >
|
|
|
+ <el-button @click="onExportCommand('exportMarkWorkload')"
|
|
|
+ >导出工作量</el-button
|
|
|
+ >
|
|
|
</el-space>
|
|
|
</div>
|
|
|
|
|
@@ -118,7 +111,6 @@
|
|
|
<script setup lang="ts">
|
|
|
import { reactive, ref, computed, onMounted } from 'vue';
|
|
|
import { ElMessage } from 'element-plus';
|
|
|
- import { CaretBottom } from '@element-plus/icons-vue';
|
|
|
import { useAppStore } from '@/store';
|
|
|
|
|
|
import {
|
|
@@ -134,6 +126,7 @@
|
|
|
import useTable from '@/hooks/table';
|
|
|
import useLoading from '@/hooks/loading';
|
|
|
import { modalConfirm } from '@/utils/ui';
|
|
|
+ import { downloadExport } from '@/utils/download-export';
|
|
|
|
|
|
defineOptions({
|
|
|
name: 'MarkProgress',
|
|
@@ -270,8 +263,10 @@
|
|
|
}
|
|
|
|
|
|
// 导出
|
|
|
- const onExportCommand = (command: string) => {
|
|
|
- console.log('导出命令:', command);
|
|
|
+ const onExportCommand = async (
|
|
|
+ command: 'exportMarkProgress' | 'exportMarkWorkload'
|
|
|
+ ) => {
|
|
|
+ downloadExport(command);
|
|
|
};
|
|
|
|
|
|
// 获取统计信息
|