mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 09:46:45 +08:00
测评上传
This commit is contained in:
@@ -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,
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user