feature:基础分析文件上传题附件接入下载中心
This commit is contained in:
@@ -57,6 +57,8 @@ import {
|
|||||||
} from "@/api/data-analyse";
|
} from "@/api/data-analyse";
|
||||||
import { convertQueryToString } from "@/utils/httpFormat";
|
import { convertQueryToString } from "@/utils/httpFormat";
|
||||||
|
|
||||||
|
import { addDownloadCenter } from "@/api/download.js";
|
||||||
|
|
||||||
|
|
||||||
import ImagePreview from "./ImagePreview";
|
import ImagePreview from "./ImagePreview";
|
||||||
|
|
||||||
@@ -136,17 +138,22 @@ export default defineComponent({
|
|||||||
async function handleClick() {
|
async function handleClick() {
|
||||||
const sn = props.sn;
|
const sn = props.sn;
|
||||||
const question_index = props.data.question_index;
|
const question_index = props.data.question_index;
|
||||||
const { data } = await downloadAllFile(
|
let data ={ download_type: '3', question_index }
|
||||||
sn,
|
addDownloadCenter(sn,data).then(res=>{
|
||||||
question_index,
|
store.dispatch('downloadCenter/changeCenterUrl',route.path)
|
||||||
searchParams.value
|
store.dispatch('downloadCenter/changeCenterShow',true)
|
||||||
);
|
})
|
||||||
const {title,url} = data.url;
|
// const { data } = await downloadAllFile(
|
||||||
const subdata = {
|
// sn,
|
||||||
fileURL:url,
|
// question_index,
|
||||||
fileName:title
|
// searchParams.value
|
||||||
}
|
// );
|
||||||
store.dispatch('common/fileDown',subdata)
|
// const {title,url} = data.url;
|
||||||
|
// const subdata = {
|
||||||
|
// fileURL:url,
|
||||||
|
// fileName:title
|
||||||
|
// }
|
||||||
|
// store.dispatch('common/fileDown',subdata)
|
||||||
}
|
}
|
||||||
|
|
||||||
const previewVisible = ref(false);
|
const previewVisible = ref(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user