mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-24 10:12:54 +08:00
问题提交
This commit is contained in:
@@ -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") {
|
||||
|
||||
@@ -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("信息下载失败");
|
||||
|
||||
Reference in New Issue
Block a user