|
@@ -195,7 +195,7 @@
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
markerTaskList,
|
|
markerTaskList,
|
|
- markerLevelStatData,
|
|
|
|
|
|
+ markerLevelTotalStatData,
|
|
areaList,
|
|
areaList,
|
|
workLevelList,
|
|
workLevelList,
|
|
subjectDetail,
|
|
subjectDetail,
|
|
@@ -322,7 +322,7 @@ export default {
|
|
this.selectPaper(this.curPaperIndex);
|
|
this.selectPaper(this.curPaperIndex);
|
|
},
|
|
},
|
|
async getStepLevels() {
|
|
async getStepLevels() {
|
|
- const data = await markerLevelStatData(
|
|
|
|
|
|
+ const data = await markerLevelTotalStatData(
|
|
this.filter.markerId,
|
|
this.filter.markerId,
|
|
this.filter.questionId
|
|
this.filter.questionId
|
|
);
|
|
);
|
|
@@ -368,6 +368,31 @@ export default {
|
|
this.curStep = curStep;
|
|
this.curStep = curStep;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ updateStepLevel(curStep, curLevel, count) {
|
|
|
|
+ if (curStep.type === "done") {
|
|
|
|
+ const lpos = this.steps.levelStep.findIndex(
|
|
|
|
+ item => item.name === curStep.name
|
|
|
|
+ );
|
|
|
|
+ this.steps.levelStep[lpos].count -= count;
|
|
|
|
+ } else {
|
|
|
|
+ const opos = this.steps.otherStep.findIndex(
|
|
|
|
+ item => item.type === curStep.type
|
|
|
|
+ );
|
|
|
|
+ this.steps.otherStep[opos].count -= count;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const pos = this.steps.levelStep.findIndex(
|
|
|
|
+ item => item.name === curLevel
|
|
|
|
+ );
|
|
|
|
+ this.steps.levelStep[pos].count += count;
|
|
|
|
+
|
|
|
|
+ this.steps.levelStep.forEach(item => {
|
|
|
|
+ item.percent =
|
|
|
|
+ item.finalKdTotal && item.count
|
|
|
|
+ ? ((100 * item.count) / item.finalKdTotal).toFixed(3)
|
|
|
|
+ : 0;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
async getWorkLevels() {
|
|
async getWorkLevels() {
|
|
const data = await workLevelList(this.workId);
|
|
const data = await workLevelList(this.workId);
|
|
this.levels = data.map(item => {
|
|
this.levels = data.map(item => {
|
|
@@ -402,6 +427,7 @@ export default {
|
|
this.current = 1;
|
|
this.current = 1;
|
|
this.isFullscreenMarking = false;
|
|
this.isFullscreenMarking = false;
|
|
await this.getList();
|
|
await this.getList();
|
|
|
|
+ this.getStepLevels();
|
|
if (this.papers.length) {
|
|
if (this.papers.length) {
|
|
this.selectPaper(0);
|
|
this.selectPaper(0);
|
|
} else {
|
|
} else {
|
|
@@ -411,6 +437,7 @@ export default {
|
|
areaChange() {
|
|
areaChange() {
|
|
this.getStepLevels();
|
|
this.getStepLevels();
|
|
this.toPage(1);
|
|
this.toPage(1);
|
|
|
|
+ this.updateHistory();
|
|
},
|
|
},
|
|
// selectMultiplePaper
|
|
// selectMultiplePaper
|
|
selectMultiplePaper(paper) {
|
|
selectMultiplePaper(paper) {
|
|
@@ -425,7 +452,7 @@ export default {
|
|
const multipleGradingListCount = this.multipleGradingList.length;
|
|
const multipleGradingListCount = this.multipleGradingList.length;
|
|
|
|
|
|
let result = true;
|
|
let result = true;
|
|
- await paperSelectLevelBatch(
|
|
|
|
|
|
+ const papers = await paperSelectLevelBatch(
|
|
this.multipleGradingList.map(item => item.id).join(), // is taskId
|
|
this.multipleGradingList.map(item => item.id).join(), // is taskId
|
|
level.name,
|
|
level.name,
|
|
"LEVEL"
|
|
"LEVEL"
|
|
@@ -437,8 +464,9 @@ export default {
|
|
if (!result) return;
|
|
if (!result) return;
|
|
|
|
|
|
this.multipleGradingList = [];
|
|
this.multipleGradingList = [];
|
|
- this.getStepLevels();
|
|
|
|
- this.updateHistory();
|
|
|
|
|
|
+ // this.getStepLevels();
|
|
|
|
+ this.updateStepLevel(this.curStep, level.name, multipleGradingListCount);
|
|
|
|
+ this.updateCacheHistory(papers);
|
|
|
|
|
|
// update paper list
|
|
// update paper list
|
|
if (
|
|
if (
|
|
@@ -514,13 +542,14 @@ export default {
|
|
this.selectPaper(this.curPaperIndex);
|
|
this.selectPaper(this.curPaperIndex);
|
|
},
|
|
},
|
|
async gradeCurPaper(level) {
|
|
async gradeCurPaper(level) {
|
|
- await paperSelectLevelOrScore(
|
|
|
|
|
|
+ const paper = await paperSelectLevelOrScore(
|
|
this.curPaper.id, // is taskId
|
|
this.curPaper.id, // is taskId
|
|
level.name,
|
|
level.name,
|
|
"LEVEL"
|
|
"LEVEL"
|
|
);
|
|
);
|
|
- this.getStepLevels();
|
|
|
|
- this.updateHistory();
|
|
|
|
|
|
+ // this.getStepLevels();
|
|
|
|
+ this.updateStepLevel(this.curStep, level.name, 1);
|
|
|
|
+ this.updateCacheHistory([paper]);
|
|
this.toActionNextPaper();
|
|
this.toActionNextPaper();
|
|
},
|
|
},
|
|
async passCurPaper() {
|
|
async passCurPaper() {
|
|
@@ -530,6 +559,9 @@ export default {
|
|
updateHistory() {
|
|
updateHistory() {
|
|
this.$refs.GradeHistoryPaper.updatePapers();
|
|
this.$refs.GradeHistoryPaper.updatePapers();
|
|
},
|
|
},
|
|
|
|
+ updateCacheHistory(papers) {
|
|
|
|
+ this.$refs.GradeHistoryPaper.updateCachePapers(papers);
|
|
|
|
+ },
|
|
// paper carousel
|
|
// paper carousel
|
|
toViewCarouselPaper(paperIndex, papers, type) {
|
|
toViewCarouselPaper(paperIndex, papers, type) {
|
|
this.carouselType = type;
|
|
this.carouselType = type;
|