|
@@ -153,7 +153,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="公开(不限难度)" width="110">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.publicAnyDifficulty }}</span>
|
|
|
+ <span>{{ scope.row.publicAnyDifficulty || 0 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="非公开(简单)" width="102">
|
|
@@ -173,7 +173,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="非公开(不限难度)" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.noPublicAnyDifficulty }}</span>
|
|
|
+ <span>{{ scope.row.noPublicAnyDifficulty || 0 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="每题分值" width="80">
|
|
@@ -1139,11 +1139,11 @@ export default {
|
|
|
unitStruct.mediumSum = this.paperUnitForm2.mediumSum;
|
|
|
unitStruct.difficultySum = this.paperUnitForm2.difficultySum;
|
|
|
unitStruct.publicAnyDifficulty =
|
|
|
- this.paperUnitForm2.publicAnyDifficulty;
|
|
|
+ this.paperUnitForm2.publicAnyDifficulty || 0;
|
|
|
unitStruct.noPublicAnyDifficulty =
|
|
|
- this.paperUnitForm2.noPublicAnyDifficulty;
|
|
|
+ this.paperUnitForm2.noPublicAnyDifficulty || 0;
|
|
|
unitStruct.anyDifficultySum =
|
|
|
- this.paperUnitForm2.anyDifficultySum;
|
|
|
+ this.paperUnitForm2.anyDifficultySum || 0;
|
|
|
this.setUnits();
|
|
|
this.paperDetailUnitStructDialog = false;
|
|
|
sessionStorage.setItem(
|
|
@@ -1239,21 +1239,22 @@ export default {
|
|
|
this.paperUnitForm2.noPublicDifficulty =
|
|
|
unitStruct.noPublicDifficulty;
|
|
|
this.paperUnitForm2.publicAnyDifficulty =
|
|
|
- unitStruct.publicAnyDifficulty;
|
|
|
+ unitStruct.publicAnyDifficulty || 0;
|
|
|
this.paperUnitForm2.noPublicAnyDifficulty =
|
|
|
- unitStruct.noPublicAnyDifficulty;
|
|
|
- this.paperUnitForm2.anyDifficultySum = unitStruct.anyDifficultySum;
|
|
|
+ unitStruct.noPublicAnyDifficulty || 0;
|
|
|
+ this.paperUnitForm2.anyDifficultySum =
|
|
|
+ unitStruct.anyDifficultySum || 0;
|
|
|
//实时计算,不存数据库
|
|
|
this.paperUnitForm2.publicSum =
|
|
|
this.paperUnitForm2.publicSimple +
|
|
|
- this.paperUnitForm2.publicMedium +
|
|
|
- this.paperUnitForm2.publicDifficulty +
|
|
|
- this.paperUnitForm2.publicAnyDifficulty;
|
|
|
+ this.paperUnitForm2.publicMedium +
|
|
|
+ this.paperUnitForm2.publicDifficulty +
|
|
|
+ this.paperUnitForm2.publicAnyDifficulty || 0;
|
|
|
this.paperUnitForm2.noPublicSum =
|
|
|
this.paperUnitForm2.noPublicSimple +
|
|
|
- this.paperUnitForm2.noPublicMedium +
|
|
|
- this.paperUnitForm2.noPublicDifficulty +
|
|
|
- this.paperUnitForm2.noPublicAnyDifficulty;
|
|
|
+ this.paperUnitForm2.noPublicMedium +
|
|
|
+ this.paperUnitForm2.noPublicDifficulty +
|
|
|
+ this.paperUnitForm2.noPublicAnyDifficulty || 0;
|
|
|
this.paperUnitForm2.simpleSum =
|
|
|
this.paperUnitForm2.publicSimple +
|
|
|
this.paperUnitForm2.noPublicSimple;
|
|
@@ -1264,8 +1265,8 @@ export default {
|
|
|
this.paperUnitForm2.publicDifficulty +
|
|
|
this.paperUnitForm2.noPublicDifficulty;
|
|
|
this.paperUnitForm2.anyDifficultySum =
|
|
|
- this.paperUnitForm2.publicAnyDifficulty +
|
|
|
- this.paperUnitForm2.noPublicAnyDifficulty;
|
|
|
+ (this.paperUnitForm2.publicAnyDifficulty || 0) +
|
|
|
+ (this.paperUnitForm2.noPublicAnyDifficulty || 0);
|
|
|
}
|
|
|
}
|
|
|
this.getQuesNameList(this.paperUnitForm2.questionType);
|
|
@@ -1334,7 +1335,7 @@ export default {
|
|
|
paperUnitForm.publicDifficulty
|
|
|
);
|
|
|
paperUnitForm.publicAnyDifficulty = parseInt(
|
|
|
- paperUnitForm.publicAnyDifficulty
|
|
|
+ paperUnitForm.publicAnyDifficulty || 0
|
|
|
);
|
|
|
paperUnitForm.noPublicSimple = parseInt(paperUnitForm.noPublicSimple);
|
|
|
paperUnitForm.noPublicMedium = parseInt(paperUnitForm.noPublicMedium);
|
|
@@ -1342,20 +1343,20 @@ export default {
|
|
|
paperUnitForm.noPublicDifficulty
|
|
|
);
|
|
|
paperUnitForm.noPublicAnyDifficulty = parseInt(
|
|
|
- paperUnitForm.noPublicAnyDifficulty
|
|
|
+ paperUnitForm.noPublicAnyDifficulty || 0
|
|
|
);
|
|
|
//公开总数
|
|
|
paperUnitForm.publicSum =
|
|
|
parseInt(paperUnitForm.publicSimple) +
|
|
|
parseInt(paperUnitForm.publicMedium) +
|
|
|
parseInt(paperUnitForm.publicDifficulty) +
|
|
|
- parseInt(paperUnitForm.publicAnyDifficulty);
|
|
|
+ parseInt(paperUnitForm.publicAnyDifficulty || 0);
|
|
|
//非公开总数
|
|
|
paperUnitForm.noPublicSum =
|
|
|
parseInt(paperUnitForm.noPublicSimple) +
|
|
|
parseInt(paperUnitForm.noPublicMedium) +
|
|
|
parseInt(paperUnitForm.noPublicDifficulty) +
|
|
|
- parseInt(paperUnitForm.noPublicAnyDifficulty);
|
|
|
+ parseInt(paperUnitForm.noPublicAnyDifficulty || 0);
|
|
|
//简单总数
|
|
|
paperUnitForm.simpleSum =
|
|
|
parseInt(paperUnitForm.publicSimple) +
|
|
@@ -1370,8 +1371,8 @@ export default {
|
|
|
parseInt(paperUnitForm.noPublicDifficulty);
|
|
|
//不限难度总数
|
|
|
paperUnitForm.anyDifficultySum =
|
|
|
- parseInt(paperUnitForm.publicAnyDifficulty) +
|
|
|
- parseInt(paperUnitForm.noPublicAnyDifficulty);
|
|
|
+ parseInt(paperUnitForm.publicAnyDifficulty || 0) +
|
|
|
+ parseInt(paperUnitForm.noPublicAnyDifficulty || 0);
|
|
|
//总数
|
|
|
paperUnitForm.count =
|
|
|
paperUnitForm.publicSum + paperUnitForm.noPublicSum;
|