测评上传

This commit is contained in:
zhangsir
2024-03-26 17:07:07 +08:00
parent 6f033b3207
commit 30b012577d
3 changed files with 42 additions and 16 deletions

View File

@@ -9,7 +9,7 @@
</div>
<div class="evadown">
<div class="down_header">
<div class="down_header_title">
<div class="down_header_title" @click="downloadAll">
<div class="down_header_btn">
<div class="btnText">全量下载</div>
</div>
@@ -42,7 +42,7 @@
>
<template #operation="{ record, column }">
<a-space>
<a-button type="link">
<a-button type="link" @click="downloadItem(record)">
<a-tooltip>
<template #title>下载</template>
<span class="download"></span>
@@ -146,9 +146,12 @@ import { useStore } from "vuex";
state.params.pageNo = page
state.params.pageSize = pageSize
}
const downloadAll = (record) => {
window.open(`/activityApi/evaluation/download?id=${route.query.id}`);
}
const listData = async () => {
await getPage({
pid:route.query.id,
id:route.query.id,
}).then((res) => {
state.tableData = res.data.records,
@@ -157,6 +160,9 @@ import { useStore } from "vuex";
})
}
const downloadItem = (record) => {
window.open(`/activityApi/evaluation/detail/downloadById?id=${record.id}`)
};
const deleteItem = (record) => {
dialog({
content: '请您确认是否要删除该报告?',
@@ -176,8 +182,10 @@ import { useStore } from "vuex";
...toRefs(state),
columns,
deleteItem,
downloadItem,
pagination,
listData,
downloadAll,
userInfo,
}
},