|
@@ -400,7 +400,7 @@
|
|
|
<span
|
|
|
><el-input
|
|
|
v-model="scope.row.publicSimple"
|
|
|
- @change="
|
|
|
+ @input="
|
|
|
sum(
|
|
|
scope.row,
|
|
|
scope.row.publicSimple,
|
|
@@ -424,7 +424,7 @@
|
|
|
<span
|
|
|
><el-input
|
|
|
v-model="scope.row.publicMedium"
|
|
|
- @change="
|
|
|
+ @input="
|
|
|
sum(
|
|
|
scope.row,
|
|
|
scope.row.publicMedium,
|
|
@@ -448,7 +448,7 @@
|
|
|
<span
|
|
|
><el-input
|
|
|
v-model="scope.row.publicDifficulty"
|
|
|
- @change="
|
|
|
+ @input="
|
|
|
sum(
|
|
|
scope.row,
|
|
|
scope.row.publicDifficulty,
|
|
@@ -472,7 +472,7 @@
|
|
|
<span
|
|
|
><el-input
|
|
|
v-model="scope.row.noPublicSimple"
|
|
|
- @change="
|
|
|
+ @input="
|
|
|
sum(
|
|
|
scope.row,
|
|
|
scope.row.noPublicSimple,
|
|
@@ -496,7 +496,7 @@
|
|
|
<span
|
|
|
><el-input
|
|
|
v-model="scope.row.noPublicMedium"
|
|
|
- @change="
|
|
|
+ @input="
|
|
|
sum(
|
|
|
scope.row,
|
|
|
scope.row.noPublicMedium,
|
|
@@ -520,7 +520,7 @@
|
|
|
<span
|
|
|
><el-input
|
|
|
v-model="scope.row.noPublicDifficulty"
|
|
|
- @change="
|
|
|
+ @input="
|
|
|
sum(
|
|
|
scope.row,
|
|
|
scope.row.noPublicDifficulty,
|
|
@@ -853,7 +853,7 @@ export default {
|
|
|
element.noPublicMedium = 0;
|
|
|
element.noPublicDifficulty = 0;
|
|
|
element.count = 0;
|
|
|
- this.tempPapers.push(element);
|
|
|
+ this.tempPapers.push(Object.assign({}, element));
|
|
|
this.tempPaperIds.push(element.id);
|
|
|
});
|
|
|
this.searchPaper();
|
|
@@ -1243,15 +1243,13 @@ export default {
|
|
|
this.searchPaper();
|
|
|
},
|
|
|
sum(row) {
|
|
|
- setTimeout(function () {
|
|
|
- row.count =
|
|
|
- parseFloat(row.publicSimple) +
|
|
|
- parseFloat(row.publicMedium) +
|
|
|
- parseFloat(row.publicDifficulty) +
|
|
|
- parseFloat(row.noPublicSimple) +
|
|
|
- parseFloat(row.noPublicMedium) +
|
|
|
- parseFloat(row.noPublicDifficulty);
|
|
|
- }, 2);
|
|
|
+ row.count =
|
|
|
+ parseFloat(row.publicSimple) +
|
|
|
+ parseFloat(row.publicMedium) +
|
|
|
+ parseFloat(row.publicDifficulty) +
|
|
|
+ parseFloat(row.noPublicSimple) +
|
|
|
+ parseFloat(row.noPublicMedium) +
|
|
|
+ parseFloat(row.noPublicDifficulty);
|
|
|
},
|
|
|
//判断是否为正数
|
|
|
isNumber(num) {
|
|
@@ -1282,34 +1280,10 @@ export default {
|
|
|
showActiveIn(publicity, difficulty, row) {
|
|
|
//console.log('this.genPaper.simpleGenPaperPolicy',row);
|
|
|
if (this.genPaper.simpleGenPaperPolicy == "BY_QUESTIONNUM") {
|
|
|
- this.$http
|
|
|
- .get(
|
|
|
- QUESTION_API +
|
|
|
- "/paper/questionNumbers/" +
|
|
|
- row.id +
|
|
|
- "/" +
|
|
|
- publicity +
|
|
|
- "/" +
|
|
|
- difficulty
|
|
|
- )
|
|
|
- .then((response) => {
|
|
|
- this.message = response.data;
|
|
|
- });
|
|
|
+ this.message = row.quesCount[publicity + "-" + difficulty];
|
|
|
}
|
|
|
if (this.genPaper.simpleGenPaperPolicy == "BY_SCORE") {
|
|
|
- this.$http
|
|
|
- .get(
|
|
|
- QUESTION_API +
|
|
|
- "/paper/questionScores/" +
|
|
|
- row.id +
|
|
|
- "/" +
|
|
|
- publicity +
|
|
|
- "/" +
|
|
|
- difficulty
|
|
|
- )
|
|
|
- .then((response) => {
|
|
|
- this.message = response.data;
|
|
|
- });
|
|
|
+ this.message = row.quesScore[publicity + "-" + difficulty];
|
|
|
}
|
|
|
},
|
|
|
//鼠标离开事件
|