|
@@ -34,12 +34,12 @@ src/features/student/studentInspect/MarkBody.vue 整卷渲染的组件,凡是
|
|
|
1. 分数之间的关系,(理想设计)
|
|
|
1. 来源: question.score 和 track.score, history.task.markerScore 评卷时不参与给分板的计算和显示
|
|
|
1. 初始收集: markResult.scoreList markResult.trackList.score markResult.markerScore 要区分 0 分和 null
|
|
|
- 1. 轨迹改变:track.score 动态计算 scoreList,再显示到给分板上(单题和总分自动计算),只有轨迹改变才去计算 scoreList 对应的题的分数,这样可以尽可能长的显示旧分数
|
|
|
+ 1. 轨迹改变:track.score 动态计算 scoreList,再显示到给分板上(单题和总分自动计算),只有轨迹改变才去计算 scoreList 对应的题的分数,这样可以尽可能长时间的显示旧分数
|
|
|
1. 普通改变:scoreList\[index\]的值
|
|
|
1. 回评时普通模式评分的记录在轨迹模式下如何保持?先将 task 中的 question.score 转移到 markResult.scoreList,如果 trackList 有变化,则更新对应 scoreList,不然则保持原样。
|
|
|
+1. 优化
|
|
|
1. markResult 放到 task 里面? 回评清理它的 markResult . DONE!
|
|
|
- 1. 使用 pinia ?
|
|
|
- 1. eslint 找出未使用的 import
|
|
|
+ 1. 使用 pinia . DONE!
|
|
|
|
|
|
### watch 的层次(列出有外部影响的状态):
|
|
|
|
|
@@ -49,4 +49,4 @@ src/features/student/studentInspect/MarkBody.vue 整卷渲染的组件,凡是
|
|
|
2. header watch setting / status
|
|
|
3. history watch open , change currentTask
|
|
|
4. body watch trackList, computed score? emit 'trackListChange'('add', questionIndex, trackList)/('removeLast', questionIndex)/('removeAll',questionIndex)
|
|
|
-5. markboard watch scoreList / markerScore, emit 'updateScore'
|
|
|
+5. markboard watch currentQuestion, normal mode -> change scoreList[index]
|