Commit 4589a332 authored by 黄奎's avatar 黄奎

页面修改

parent eb9de802
......@@ -318,10 +318,11 @@ export function DeletePaperDetails(data) {
* 题库下载
* @param {*} data
*/
export function DownLoadBank(data) {
export function downLoadBank(data) {
return request({
url: '/Question/DownLoadBank',
method: 'post',
data
})
}
\ No newline at end of file
......@@ -77,7 +77,7 @@
import {
queryQuestionBankPage,
RemoveQuestionBank,
DownLoadBank
downLoadBank
} from '../../api/question/question';
import {
EduDownLoad
......@@ -157,15 +157,18 @@
let msg = {
BankId: item.BankId,
}
var fileName = item.BankName + ".doc";
this.loading=true;
EduDownLoad(
"/Question/DownLoadBank",
msg,
fileName, res => {
this.loading=false;
this.loading = true;
downLoadBank(msg).then(res => {
this.loading = false;
if (res.Code == 1) {
let cApiUrl = process.env.API + res.Data;
let link = document.createElement('a');
link.href = cApiUrl;
link.setAttribute("download", item.BankName + ".zip");
document.body.appendChild(link);
link.click();
}
);
})
},
research() {
this.getQuestionBankPage();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment