|
@@ -17,7 +17,7 @@
|
|
<td>{{ course.startTime }} <br> ~ <br> {{ course.endTime }}</td>
|
|
<td>{{ course.startTime }} <br> ~ <br> {{ course.endTime }}</td>
|
|
<td>
|
|
<td>
|
|
<div v-if="course.offlineFileUrl">
|
|
<div v-if="course.offlineFileUrl">
|
|
- <a :href="course.offlineFileUrl" download>
|
|
|
|
|
|
+ <a @click="() => downloadOfflineFile(course.offlineFileUrl)" :href="course.offlineFileUrl" download>
|
|
<i-icon type="ios-cloud-download"></i-icon>下载作答
|
|
<i-icon type="ios-cloud-download"></i-icon>下载作答
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
@@ -29,7 +29,7 @@
|
|
<template v-if="!course.isvalid">
|
|
<template v-if="!course.isvalid">
|
|
<div v-if="course.paperId" style="display: grid; grid-gap: 10px">
|
|
<div v-if="course.paperId" style="display: grid; grid-gap: 10px">
|
|
<i-button class="qm-primary-button" @click="previewPaper(course)">查看试卷</i-button>
|
|
<i-button class="qm-primary-button" @click="previewPaper(course)">查看试卷</i-button>
|
|
- <a class="qm-primary-button" v-show="!disableDownloadPaperBtn" @click="tempDisableBtn" :href="tk_server_url+'/api/ecs_ques/paper/export/'+course.paperId+'/PAPER/'+user.rootOrgName+'/'+course.paperId + '/offLine?$key='+user.key+'&$token='+user.token" download>下载试卷</a>
|
|
|
|
|
|
+ <a class="qm-primary-button" v-show="!disableDownloadPaperBtn" @click="() => tempDisableBtn(course)" href="#" download>下载试卷</a>
|
|
<i-button v-if="disableDownloadPaperBtn" class="qm-primary-button">下载中</i-button>
|
|
<i-button v-if="disableDownloadPaperBtn" class="qm-primary-button">下载中</i-button>
|
|
<!-- <i-button class="qm-primary-button">
|
|
<!-- <i-button class="qm-primary-button">
|
|
<a class="qm-primary-button" href="https://ecs-static.qmth.com.cn/offline-exam/答题卡.zip" download>下载答题卡</a>
|
|
<a class="qm-primary-button" href="https://ecs-static.qmth.com.cn/offline-exam/答题卡.zip" download>下载答题卡</a>
|
|
@@ -94,9 +94,25 @@ export default {
|
|
course.paperId +
|
|
course.paperId +
|
|
"?isback=true";
|
|
"?isback=true";
|
|
},
|
|
},
|
|
- tempDisableBtn() {
|
|
|
|
|
|
+ downloadOfflineFile(url) {
|
|
|
|
+ window.location.href = url;
|
|
|
|
+ },
|
|
|
|
+ tempDisableBtn(course) {
|
|
this.disableDownloadPaperBtn = true;
|
|
this.disableDownloadPaperBtn = true;
|
|
setTimeout(() => (this.disableDownloadPaperBtn = false), 10 * 1000);
|
|
setTimeout(() => (this.disableDownloadPaperBtn = false), 10 * 1000);
|
|
|
|
+
|
|
|
|
+ window.location.href =
|
|
|
|
+ this.tk_server_url +
|
|
|
|
+ "/api/ecs_ques/paper/export/" +
|
|
|
|
+ course.paperId +
|
|
|
|
+ "/PAPER/" +
|
|
|
|
+ this.user.rootOrgName +
|
|
|
|
+ "/" +
|
|
|
|
+ course.paperId +
|
|
|
|
+ "/offLine?$key=" +
|
|
|
|
+ this.user.key +
|
|
|
|
+ "&$token=" +
|
|
|
|
+ this.user.token;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|