|
@@ -34,6 +34,7 @@ var dealCheckBox = function () {
|
|
|
};
|
|
};
|
|
|
// 多选点击(多选框是否可选)
|
|
// 多选点击(多选框是否可选)
|
|
|
var ControlFlag = true;
|
|
var ControlFlag = true;
|
|
|
|
|
+var CheckBoxsIDs = []; // 保留CheckBox信息
|
|
|
var clickCheckBox = function (inputId) {
|
|
var clickCheckBox = function (inputId) {
|
|
|
if (!ControlFlag) {
|
|
if (!ControlFlag) {
|
|
|
return;
|
|
return;
|
|
@@ -1706,6 +1707,13 @@ function handleAnswerRange() {
|
|
|
$(".answer-point-range").attr("mobile-type", cTTypeFunc);
|
|
$(".answer-point-range").attr("mobile-type", cTTypeFunc);
|
|
|
$(".answer-point-range-div").attr("mobile-type", cTTypeFunc);
|
|
$(".answer-point-range-div").attr("mobile-type", cTTypeFunc);
|
|
|
$(".answer-text").attr("data-astatus", "0");
|
|
$(".answer-text").attr("data-astatus", "0");
|
|
|
|
|
+ CheckBoxsIDs = [];
|
|
|
|
|
+ $.each($(".checkbox"), function (index, item) {
|
|
|
|
|
+ var AnswerID = $(this).attr("answer-id");
|
|
|
|
|
+ if (AnswerID != undefined && AnswerID != null && AnswerID != "") {
|
|
|
|
|
+ CheckBoxsIDs.push(AnswerID);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
return answerData;
|
|
return answerData;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1834,9 +1842,11 @@ function getAllAnswer() {
|
|
|
}
|
|
}
|
|
|
//mytext = mytext == "" ? " " : mytext;
|
|
//mytext = mytext == "" ? " " : mytext;
|
|
|
if (!isanswer) {
|
|
if (!isanswer) {
|
|
|
|
|
+ mytext = " ";
|
|
|
$(item).prop("outerHTML", "<div class='answer-body' answer-id='" + answerid + "' parent-anid='" + parentid + "' answer-anstext='" + answerText + "' answer-isky='2' data-astatus='1' data-errstatus='0' onclick='ClickRecFunc(" + parentid + ")'><div class='answer-audio-range'><img class='nextpic' src='" + PicInfo.recordPlayImgUrl + "'/><span class='answer-audio-text'>作答音频</span></div><div class='answer-point-range' style='display:none;'><div class='answer-point-range-div'><img class='nextpic' src='" + PicInfo.answerPointImgUrl + "'/><span class='answer-point-text'>答题点</span></div></div><buttom class='answer-text no-answer' style='display:inline-block;'>" + mytext + "</buttom></div>");
|
|
$(item).prop("outerHTML", "<div class='answer-body' answer-id='" + answerid + "' parent-anid='" + parentid + "' answer-anstext='" + answerText + "' answer-isky='2' data-astatus='1' data-errstatus='0' onclick='ClickRecFunc(" + parentid + ")'><div class='answer-audio-range'><img class='nextpic' src='" + PicInfo.recordPlayImgUrl + "'/><span class='answer-audio-text'>作答音频</span></div><div class='answer-point-range' style='display:none;'><div class='answer-point-range-div'><img class='nextpic' src='" + PicInfo.answerPointImgUrl + "'/><span class='answer-point-text'>答题点</span></div></div><buttom class='answer-text no-answer' style='display:inline-block;'>" + mytext + "</buttom></div>");
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
|
|
+ mytext = " ";
|
|
|
$(item).prop("outerHTML", "<div class='answer-body' answer-id='" + answerid + "' parent-anid='" + parentid + "' answer-anstext='" + answerText + "' answer-isky='2' data-astatus='1' data-errstatus='0' onclick='ClickRecFunc(" + parentid + ")'><div class='answer-audio-range'><img class='nextpic' src='" + PicInfo.recordPlayImgUrl + "'/><span class='answer-audio-text'>作答音频</span></div><div class='answer-point-range' style='display:none;'><div class='answer-point-range-div'><img class='nextpic' src='" + PicInfo.answerPointImgUrl + "'/><span class='answer-point-text'>答题点</span></div></div><buttom class='answer-text' style='display:inline-block;'>" + mytext + "</buttom></div>");
|
|
$(item).prop("outerHTML", "<div class='answer-body' answer-id='" + answerid + "' parent-anid='" + parentid + "' answer-anstext='" + answerText + "' answer-isky='2' data-astatus='1' data-errstatus='0' onclick='ClickRecFunc(" + parentid + ")'><div class='answer-audio-range'><img class='nextpic' src='" + PicInfo.recordPlayImgUrl + "'/><span class='answer-audio-text'>作答音频</span></div><div class='answer-point-range' style='display:none;'><div class='answer-point-range-div'><img class='nextpic' src='" + PicInfo.answerPointImgUrl + "'/><span class='answer-point-text'>答题点</span></div></div><buttom class='answer-text' style='display:inline-block;'>" + mytext + "</buttom></div>");
|
|
|
}
|
|
}
|
|
|
if (mytext == "未作答") {
|
|
if (mytext == "未作答") {
|
|
@@ -2059,9 +2069,11 @@ function backupAllAnswer(answerJson, statusType) {
|
|
|
}
|
|
}
|
|
|
//mytext = mytext == "" ? " " : mytext;
|
|
//mytext = mytext == "" ? " " : mytext;
|
|
|
if (!isanswer) {
|
|
if (!isanswer) {
|
|
|
|
|
+ mytext = " ";
|
|
|
$(item).prop("outerHTML", "<div class='answer-body' answer-id='" + answerid + "' parent-anid='" + parentid + "' answer-anstext='" + answerText + "' answer-isky='2' answer-text='" + mytext + "' data-astatus='" + statusType + "' data-errstatus='0' onclick='ClickRecFunc(" + parentid + ")'><div class='answer-audio-range'><img class='nextpic' src='" + PicInfo.recordPlayImgUrl + "'/><span class='answer-audio-text'>作答音频</span></div><div class='answer-point-range' style='display:none;'><div class='answer-point-range-div'><img class='nextpic' src='" + PicInfo.answerPointImgUrl + "'/><span class='answer-point-text'>答题点</span></div></div><buttom class='answer-text no-answer' style='display:inline-block;'>" + mytext + "</buttom></div>");
|
|
$(item).prop("outerHTML", "<div class='answer-body' answer-id='" + answerid + "' parent-anid='" + parentid + "' answer-anstext='" + answerText + "' answer-isky='2' answer-text='" + mytext + "' data-astatus='" + statusType + "' data-errstatus='0' onclick='ClickRecFunc(" + parentid + ")'><div class='answer-audio-range'><img class='nextpic' src='" + PicInfo.recordPlayImgUrl + "'/><span class='answer-audio-text'>作答音频</span></div><div class='answer-point-range' style='display:none;'><div class='answer-point-range-div'><img class='nextpic' src='" + PicInfo.answerPointImgUrl + "'/><span class='answer-point-text'>答题点</span></div></div><buttom class='answer-text no-answer' style='display:inline-block;'>" + mytext + "</buttom></div>");
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
|
|
+ mytext = " ";
|
|
|
$(item).prop("outerHTML", "<div class='answer-body' answer-id='" + answerid + "' parent-anid='" + parentid + "' answer-anstext='" + answerText + "' answer-isky='2' answer-text='" + mytext + "' data-astatus='" + statusType + "' data-errstatus='0' onclick='ClickRecFunc(" + parentid + ")'><div class='answer-audio-range'><img class='nextpic' src='" + PicInfo.recordPlayImgUrl + "'/><span class='answer-audio-text'>作答音频</span></div><div class='answer-point-range' style='display:none;'><div class='answer-point-range-div'><img class='nextpic' src='" + PicInfo.answerPointImgUrl + "'/><span class='answer-point-text'>答题点</span></div></div><buttom class='answer-text' style='display:inline-block;'>" + mytext + "</buttom></div>");
|
|
$(item).prop("outerHTML", "<div class='answer-body' answer-id='" + answerid + "' parent-anid='" + parentid + "' answer-anstext='" + answerText + "' answer-isky='2' answer-text='" + mytext + "' data-astatus='" + statusType + "' data-errstatus='0' onclick='ClickRecFunc(" + parentid + ")'><div class='answer-audio-range'><img class='nextpic' src='" + PicInfo.recordPlayImgUrl + "'/><span class='answer-audio-text'>作答音频</span></div><div class='answer-point-range' style='display:none;'><div class='answer-point-range-div'><img class='nextpic' src='" + PicInfo.answerPointImgUrl + "'/><span class='answer-point-text'>答题点</span></div></div><buttom class='answer-text' style='display:inline-block;'>" + mytext + "</buttom></div>");
|
|
|
}
|
|
}
|
|
|
if (mytext == "未作答") {
|
|
if (mytext == "未作答") {
|