|
@@ -328,21 +328,14 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.loading = true;
|
|
|
- let subjectiveStartPos = this.infos.paperStructureInfo.findIndex(
|
|
|
- item => item.qType === "subjective"
|
|
|
- );
|
|
|
- if (subjectiveStartPos === -1) {
|
|
|
- subjectiveStartPos = this.infos.paperStructureInfo.length;
|
|
|
- }
|
|
|
const datas = {
|
|
|
basicPaperInfo: this.getBaseInfo(this.infos.basicPaperInfo),
|
|
|
paperStructureInfo: {
|
|
|
- objectiveQuestionList: this.infos.paperStructureInfo.slice(
|
|
|
- 0,
|
|
|
- subjectiveStartPos
|
|
|
+ objectiveQuestionList: this.infos.paperStructureInfo.filter(
|
|
|
+ item => item.qType === "objective"
|
|
|
),
|
|
|
- subjectiveQuestionList: this.infos.paperStructureInfo.slice(
|
|
|
- subjectiveStartPos
|
|
|
+ subjectiveQuestionList: this.infos.paperStructureInfo.filter(
|
|
|
+ item => item.qType === "subjective"
|
|
|
)
|
|
|
},
|
|
|
groupInfo: this.infos.groupInfo
|