|
@@ -1767,12 +1767,15 @@ export default {
|
|
|
status: 1,
|
|
|
passScore: this.passScore,
|
|
|
doType: this.examsType,
|
|
|
- simulateConfigJson:
|
|
|
- this.examsType === 2 && this.simulateStatus == 1
|
|
|
- ? this.$refs["papersort"].form
|
|
|
- : null,
|
|
|
simulateStatus: this.simulateStatus,
|
|
|
};
|
|
|
+ if (this.examsType === 2 && this.simulateStatus == 1) {
|
|
|
+ if (this.$refs["papersort"] && this.$refs["papersort"].form) {
|
|
|
+ data.simulateConfigJson = this.$refs["papersort"].form;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ data.simulateConfigJson = null;
|
|
|
+ }
|
|
|
if (this.djTimeType === 0) {
|
|
|
data.answerTime = 0;
|
|
|
} else {
|