|
|
@@ -1603,12 +1603,13 @@ function backupAllAnswer(answerJson, statusType) {
|
|
|
if (statusType == 2) {
|
|
|
$.each($(".answer-body"), function (num, item) {
|
|
|
var parentid = $(item).attr("parent-anid");
|
|
|
- if (answerList[num].Score == 0) {
|
|
|
+ var answerid = $(".answer-body[parent-anid=" + parentid + "]").attr("answer-id");
|
|
|
+ if (answerList[answerid].Score == 0) {
|
|
|
if (!$(item).children(".answer-text").hasClass("good-answer")) {
|
|
|
$(item).children(".answer-text").addClass("bad-answer");
|
|
|
}
|
|
|
}
|
|
|
- if (answerList[num].Score > 0) {
|
|
|
+ if (answerList[answerid].Score > 0) {
|
|
|
//遍历同一小题的评阅,并加上样式
|
|
|
$.each($(".answer-body[parent-anid=" + parentid + "]"), function (n, item) {
|
|
|
$(item).children(".answer-text").addClass("good-answer");
|