问题提交

This commit is contained in:
NiSen
2023-06-26 11:39:57 +08:00
parent 889e4e11e9
commit 422efc7a64
2 changed files with 7 additions and 5 deletions

View File

@@ -115,7 +115,7 @@
<span>{{ state.fileName }}</span>
<span> {{
{
done: "上传成",
done: "上传成",
uploading: "正在上传",
error: "上传失败",
removed: "正在上传",
@@ -335,9 +335,6 @@ const handleChange = (info) => {
state.uploadpercent = -1
state.fileList = []
state.importId = ''
state.fileList = info.fileList
state.fileName = info.file.name;
state.status = info.file.status
if (info) {
var FileExt = info.file.name.replace(/.+\./, "");
@@ -349,6 +346,10 @@ const handleChange = (info) => {
return;
}
}
state.fileList = info.fileList
state.fileName = info.file.name;
state.status = info.file.status
state.uploadpercent = parseInt(info.file.percent);
const status = info.file.status;
if (status !== "uploading") {

View File

@@ -62,6 +62,7 @@
import { ref, onMounted, reactive } from "vue";
import { Form, message } from "ant-design-vue";
import { boeRequest } from "@/api/request";
import useDownload from '@/hooks/useDownload'
import {
RECOMMEND_PAGE,
deleteResearch,
@@ -245,7 +246,7 @@ function handleOper(record, type) {
const downloadInfo = (record) => {
caseInfoDownload({ casesRecommendId: record.id })
.then((res) => {
console.log(res);
useDownload(res.data, '案例信息.xls', 'application/vnd.ms-excel;charset=Windows-1252')
})
.catch(() => {
message.info("信息下载失败");