Browse Source

未标记节点导出

master
wbc 2 months ago
parent
commit
a44006b336
  1. 17
      src/views/projectBoard/unfinishNode/api.ts
  2. 18
      src/views/projectBoard/unfinishNode/index.vue

17
src/views/projectBoard/unfinishNode/api.ts

@ -3,21 +3,16 @@ import { downloadFile } from "../../../api/common/api"
export enum Api {
queryBoardInfo = '/huzhouProject/queryBoardInfo',
addPeriodicallab="/huzhouPeriodicallab/addPeriodicallab",
modifyPeriodicallab = '/huzhouPeriodicallab/modifyPeriodicallab',
getperiodicallabById="/huzhouPeriodicallab/getperiodicallabById",
deletePeriodicallab = '/huzhouPeriodicallab/deletePeriodicallab',
batchdownloadPeriodicallabFiles="/huzhouPeriodicallab/batchdownloadPeriodicallabFiles",
projectBoardInfo="/export/projectBoardInfo",
timeOutInfo = '/export/timeOutInfo',
projectResult="/export/projectResult",
}
export const queryBoardInfo = () => defHttp.get({ url: Api.queryBoardInfo,timeout:20*60*1000})
export const getperiodicallabById = (params) => defHttp.get({ url: Api.getperiodicallabById, params })
export const batchdownloadPeriodicallabFiles = () => downloadFile(Api.batchdownloadPeriodicallabFiles,"批量导出.zip")
export const addPeriodicallab = (params?) =>defHttp.post({ url: Api.addPeriodicallab,headers:{ "Content-Type": "multipart/form-data" }, params })
export const projectBoardInfo = () => downloadFile(Api.projectBoardInfo,"晾晒看报.zip")
export const timeOutInfo = () => downloadFile(Api.timeOutInfo,"评分表.zip")
export const projectResult = () => downloadFile(Api.projectResult,"项目成果.zip")
export const modifyPeriodicallab = (params?) =>defHttp.post({ url: Api.modifyPeriodicallab,headers:{ "Content-Type": "multipart/form-data" }, params })
export const deletePeriodicallab = (params?) =>defHttp.post({ url: Api.deletePeriodicallab, params })

18
src/views/projectBoard/unfinishNode/index.vue

@ -1,9 +1,9 @@
<template>
<div style="margin: 1% 1% 1% 1%" >
<div style="margin: 2% 0 2% 0">
<el-button type="primary" round @click="handleBatchdownload"> 导出晾晒看报</el-button>
<el-button type="primary" round @click="handleBatchdownload"> 导出晾晒比分评分表</el-button>
<el-button type="primary" round @click="handleBatchdownload"> 导出项目成果</el-button>
<el-button type="primary" round @click="handleProjectBoardInfo"> 导出晾晒看报</el-button>
<el-button type="primary" round @click="handleTimeOutInfo"> 导出晾晒比分评分表</el-button>
<el-button type="primary" round @click="handleProjectResult"> 导出项目成果</el-button>
<el-button type="primary" style="float: right; margin-right: 2%" @click="getInfo">
查询</el-button
>
@ -26,7 +26,7 @@
<script lang="ts" setup>
//ts
import { queryBoardInfo, batchdownloadPeriodicallabFiles } from './api';
import { queryBoardInfo, projectBoardInfo, timeOutInfo,projectResult} from './api';
import { onMounted, ref } from 'vue';
const tableLoading = ref(false)
const dataSource = ref([]);
@ -86,8 +86,14 @@
console.log(res);
dataSource.value = res;
};
function handleBatchdownload() {
batchdownloadPeriodicallabFiles();
function handleProjectBoardInfo() {
projectBoardInfo();
}
function handleTimeOutInfo() {
timeOutInfo();
}
function handleProjectResult() {
projectResult();
}
//
const getRowSpanMap = (name) => {

Loading…
Cancel
Save