|
@@ -371,7 +371,17 @@
|
|
size="mini"
|
|
size="mini"
|
|
></el-input-number>
|
|
></el-input-number>
|
|
</div>
|
|
</div>
|
|
- <Paper-sort ref="papersort" v-if="examsType == 2"></Paper-sort>
|
|
|
|
|
|
+ <div class="margin_bs" v-if="examsType === 2">
|
|
|
|
+ 模拟做题:
|
|
|
|
+ <el-radio-group v-model="simulateStatus">
|
|
|
|
+ <el-radio :label="1">开启</el-radio>
|
|
|
|
+ <el-radio :label="0">关闭</el-radio>
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </div>
|
|
|
|
+ <Paper-sort
|
|
|
|
+ ref="papersort"
|
|
|
|
+ v-if="examsType == 2 && simulateStatus == 1"
|
|
|
|
+ ></Paper-sort>
|
|
<div class="margin_bs" v-if="examsType === 2">
|
|
<div class="margin_bs" v-if="examsType === 2">
|
|
答卷时长:
|
|
答卷时长:
|
|
<el-radio-group v-model="djTimeType">
|
|
<el-radio-group v-model="djTimeType">
|
|
@@ -957,7 +967,8 @@ export default {
|
|
localStart: false, //定时器是否已经开始
|
|
localStart: false, //定时器是否已经开始
|
|
pageId: "", //试卷ID
|
|
pageId: "", //试卷ID
|
|
uploadStatus: false, //是否同步预览
|
|
uploadStatus: false, //是否同步预览
|
|
- simulateConfigJson: '', //随机抽题目分组排序
|
|
|
|
|
|
+ simulateConfigJson: "", //随机抽题目分组排序
|
|
|
|
+ simulateStatus: 1,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -1114,7 +1125,8 @@ export default {
|
|
this.djNum = res.data.answerNum;
|
|
this.djNum = res.data.answerNum;
|
|
this.examsType = res.data.doType;
|
|
this.examsType = res.data.doType;
|
|
this.passScore = res.data.passScore;
|
|
this.passScore = res.data.passScore;
|
|
- this.simulateConfigJson = res.data.simulateConfigJson || '';
|
|
|
|
|
|
+ this.simulateStatus = res.data.simulateStatus;
|
|
|
|
+ this.simulateConfigJson = res.data.simulateConfigJson || "";
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// --------------------------分割线---------------------------
|
|
// --------------------------分割线---------------------------
|
|
@@ -1708,7 +1720,10 @@ export default {
|
|
passScore: this.passScore,
|
|
passScore: this.passScore,
|
|
doType: this.examsType,
|
|
doType: this.examsType,
|
|
simulateConfigJson:
|
|
simulateConfigJson:
|
|
- this.examsType === 2 ? this.$refs["papersort"].form : null,
|
|
|
|
|
|
+ this.examsType === 2 && this.simulateStatus == 1
|
|
|
|
+ ? this.$refs["papersort"].form
|
|
|
|
+ : null,
|
|
|
|
+ simulateStatus: this.simulateStatus,
|
|
};
|
|
};
|
|
if (this.djTimeType === 0) {
|
|
if (this.djTimeType === 0) {
|
|
data.answerTime = 0;
|
|
data.answerTime = 0;
|