|
@@ -27,11 +27,17 @@
|
|
|
:title="file.originalFileName"
|
|
|
ondragstart="return false;"
|
|
|
@click="
|
|
|
- () =>
|
|
|
+ () => {
|
|
|
+ logger({
|
|
|
+ page: '离线考试页',
|
|
|
+ button: '下载作答按钮',
|
|
|
+ action: '点击',
|
|
|
+ });
|
|
|
downloadOfflineFile(
|
|
|
file.offlineFileUrl,
|
|
|
file.originalFileName
|
|
|
- )
|
|
|
+ );
|
|
|
+ }
|
|
|
"
|
|
|
>
|
|
|
<i-icon type="ios-cloud-download"></i-icon>下载作答
|
|
@@ -55,7 +61,16 @@
|
|
|
href="#"
|
|
|
download
|
|
|
ondragstart="return false;"
|
|
|
- @click="() => tempDisableBtnAndDownloadPaper(course)"
|
|
|
+ @click="
|
|
|
+ () => {
|
|
|
+ logger({
|
|
|
+ page: '离线考试页面',
|
|
|
+ button: '下载试卷按钮',
|
|
|
+ action: '点击',
|
|
|
+ });
|
|
|
+ tempDisableBtnAndDownloadPaper(course);
|
|
|
+ }
|
|
|
+ "
|
|
|
>
|
|
|
下载试卷
|
|
|
</a>
|
|
@@ -145,6 +160,12 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async enterExam(course) {
|
|
|
+ this.logger({
|
|
|
+ page: "离线考试页面",
|
|
|
+ button: "抽取试卷按钮",
|
|
|
+ action: "点击",
|
|
|
+ examStudentId: course.examStudentId,
|
|
|
+ });
|
|
|
// 若出错,直接报网络异常
|
|
|
await this.$http.get(
|
|
|
"/api/branch_ecs_oe_admin/offlineExam/startOfflineExam",
|
|
@@ -156,6 +177,11 @@ export default {
|
|
|
},
|
|
|
previewPaper(course) {
|
|
|
window._hmt.push(["_trackEvent", "离线考试页面", "预览"]);
|
|
|
+ this.logger({
|
|
|
+ page: "离线考试页面",
|
|
|
+ button: "查看试卷按钮",
|
|
|
+ action: "点击",
|
|
|
+ });
|
|
|
var user = {
|
|
|
loginName: course.examStudentId,
|
|
|
backUrl: window.document.location.href,
|
|
@@ -220,6 +246,11 @@ export default {
|
|
|
return this.downloadIds.has(course.examStudentId);
|
|
|
},
|
|
|
uploadHandler(course) {
|
|
|
+ this.logger({
|
|
|
+ page: "离线考试页面",
|
|
|
+ button: "上传答案按钮",
|
|
|
+ action: "点击",
|
|
|
+ });
|
|
|
this.selectedCourse = course;
|
|
|
// setTimeout(() => {
|
|
|
// console.log(this.$refs);
|