|
@@ -1,9 +1,14 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <el-dialog title="个性化提升手册" :visible="visible" width="530px" @close="handleClose">
|
|
|
|
|
|
|
+ <el-dialog title="个性化提升手册" class="mm_dialog" :visible="visible" width="360px" @close="handleClose">
|
|
|
<div class="box">
|
|
<div class="box">
|
|
|
- <div class="item" :class="{ active: active === 1 }" @click="changeAnswer(1)">答案解析在每题后</div>
|
|
|
|
|
- <div class="item" :class="{ active: active === 2 }" @click="changeAnswer(2)">答案解析在尾部</div>
|
|
|
|
|
- <div class="item" :class="{ active: active === 0 }" @click="changeAnswer(0)">无答案解析</div>
|
|
|
|
|
|
|
+ <div class="item" :class="{ isAnswer: isAnswer === 1 }" @click="isAnswer = 1">
|
|
|
|
|
+ 有答案解析
|
|
|
|
|
+ <i class="iconfont icon_Check" v-if="isAnswer === 1"></i>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="item" :class="{ isAnswer: isAnswer === 0 }" @click="isAnswer = 0">
|
|
|
|
|
+ 无答案解析
|
|
|
|
|
+ <i class="iconfont icon_Check" v-if="isAnswer === 0"></i>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="handleClose">取 消</el-button>
|
|
<el-button @click="handleClose">取 消</el-button>
|
|
@@ -34,7 +39,7 @@ export default {
|
|
|
|
|
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- active: 1
|
|
|
|
|
|
|
+ isAnswer: 1
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -43,22 +48,12 @@ export default {
|
|
|
this.$emit('update:visible', false);
|
|
this.$emit('update:visible', false);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- changeAnswer(value) {
|
|
|
|
|
- this.active = value;
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
download() {
|
|
download() {
|
|
|
const loadingInstance = CreateLoadingInstance()
|
|
const loadingInstance = CreateLoadingInstance()
|
|
|
- let isAnswer = this.active;
|
|
|
|
|
-
|
|
|
|
|
- if (this.active === 1 || this.active === 2) {
|
|
|
|
|
- isAnswer = 1;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
downloadStudentErrorQuestion({
|
|
downloadStudentErrorQuestion({
|
|
|
examId: this.examId,
|
|
examId: this.examId,
|
|
|
subjectCode: this.subjectCode,
|
|
subjectCode: this.subjectCode,
|
|
|
- isAnswer
|
|
|
|
|
|
|
+ isAnswer: this.isAnswer
|
|
|
}).then(response => {
|
|
}).then(response => {
|
|
|
const blob2 = new Blob([response.data], {
|
|
const blob2 = new Blob([response.data], {
|
|
|
type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
|
|
type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
|
|
@@ -81,19 +76,19 @@ export default {
|
|
|
.box {
|
|
.box {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
- padding: 20px 0;
|
|
|
|
|
|
|
|
|
|
.item {
|
|
.item {
|
|
|
|
|
+ width: 150px;
|
|
|
|
|
+ height: 50px;
|
|
|
|
|
+ line-height: 50px;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
- line-height: 22px;
|
|
|
|
|
color: #909399;
|
|
color: #909399;
|
|
|
- padding: 15px 20px;
|
|
|
|
|
background: #EDEFF6;
|
|
background: #EDEFF6;
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
- &.active {
|
|
|
|
|
|
|
+ &.isAnswer {
|
|
|
color: #2B65FF;
|
|
color: #2B65FF;
|
|
|
background: #fff;
|
|
background: #fff;
|
|
|
border: 2px solid #2B65FF;
|
|
border: 2px solid #2B65FF;
|
|
@@ -111,16 +106,12 @@ export default {
|
|
|
border-left-color: transparent;
|
|
border-left-color: transparent;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /* 对勾图形(使用伪元素并旋转) */
|
|
|
|
|
- &::before {
|
|
|
|
|
- content: '√';
|
|
|
|
|
- color: #fff;
|
|
|
|
|
|
|
+ .iconfont {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
- right: 5px;
|
|
|
|
|
- bottom: -5px;
|
|
|
|
|
- border-top-color: transparent;
|
|
|
|
|
- border-left-color: transparent;
|
|
|
|
|
- // transform: rotate(45deg);
|
|
|
|
|
|
|
+ right: 0;
|
|
|
|
|
+ bottom: -18px;
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ color: #ffffff;
|
|
|
z-index: 1;
|
|
z-index: 1;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|