|
@@ -127,7 +127,7 @@ export default {
|
|
|
this.loading = false;
|
|
|
|
|
|
if (this.instance.paperInfoJson) {
|
|
|
- const { basicPaperInfo, paperStructureInfo, groupInfo } = JSON.parse(
|
|
|
+ const { paperStructureInfo, groupInfo } = JSON.parse(
|
|
|
this.instance.paperInfoJson
|
|
|
);
|
|
|
this.infos = {
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
...paperStructureInfo.subjectiveQuestionList
|
|
|
],
|
|
|
groupInfo,
|
|
|
- basicPaperInfo
|
|
|
+ basicPaperInfo: { ...this.instance }
|
|
|
};
|
|
|
} else {
|
|
|
this.infos = {
|
|
@@ -241,6 +241,23 @@ export default {
|
|
|
compReady(type = false) {
|
|
|
this.loading = type;
|
|
|
},
|
|
|
+ getBaseInfo(baseInfo) {
|
|
|
+ return this.$objAssign(
|
|
|
+ {
|
|
|
+ examPaperStructureId: null,
|
|
|
+ examId: null,
|
|
|
+ thirdRelateId: null,
|
|
|
+ thirdRelateName: "",
|
|
|
+ courseName: "",
|
|
|
+ courseCode: "",
|
|
|
+ paperNumber: null,
|
|
|
+ paperType: "",
|
|
|
+ sequence: null,
|
|
|
+ status: ""
|
|
|
+ },
|
|
|
+ baseInfo
|
|
|
+ );
|
|
|
+ },
|
|
|
async submit() {
|
|
|
if (this.loading) return;
|
|
|
this.loading = true;
|
|
@@ -252,7 +269,7 @@ export default {
|
|
|
subjectiveStartPos = this.infos.paperStructureInfo.length;
|
|
|
}
|
|
|
const datas = {
|
|
|
- basicPaperInfo: this.infos.basicPaperInfo,
|
|
|
+ basicPaperInfo: this.getBaseInfo(this.infos.basicPaperInfo),
|
|
|
paperStructureInfo: {
|
|
|
objectiveQuestionList: this.infos.paperStructureInfo.slice(
|
|
|
0,
|
|
@@ -264,8 +281,6 @@ export default {
|
|
|
},
|
|
|
groupInfo: this.infos.groupInfo
|
|
|
};
|
|
|
- console.log(JSON.stringify(datas));
|
|
|
-
|
|
|
const res = await examStructureSubmit(datas).catch(() => false);
|
|
|
this.loading = false;
|
|
|
|