Jelajahi Sumber

上传修改bug27015

namejr 4 tahun lalu
induk
melakukan
e31832e8fc
2 mengubah file dengan 15 tambahan dan 0 penghapusan
  1. 12 0
      EBook.Web/Common/tasklib_book.js
  2. 3 0
      EBook.Web/EBook.Web.csproj

+ 12 - 0
EBook.Web/Common/tasklib_book.js

@@ -34,6 +34,7 @@ var dealCheckBox = function () {
 };
 // 多选点击(多选框是否可选)
 var ControlFlag = true;
+var CheckBoxsIDs = [];  // 保留CheckBox信息
 var clickCheckBox = function (inputId) {
     if (!ControlFlag) {
         return;
@@ -1706,6 +1707,13 @@ function handleAnswerRange() {
     $(".answer-point-range").attr("mobile-type", cTTypeFunc);
     $(".answer-point-range-div").attr("mobile-type", cTTypeFunc);
     $(".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;
 }
 
@@ -1834,9 +1842,11 @@ function getAllAnswer() {
         }
         //mytext = mytext == "" ? "   " : mytext;
         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>");
         }
         else {
+            mytext = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
             $(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 == "未作答") {
@@ -2059,9 +2069,11 @@ function backupAllAnswer(answerJson, statusType) {
                 }
                 //mytext = mytext == "" ? "&nbsp;&nbsp;&nbsp;" : mytext;
                 if (!isanswer) {
+                    mytext = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
                     $(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 {
+                    mytext = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
                     $(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 == "未作答") {

+ 3 - 0
EBook.Web/EBook.Web.csproj

@@ -83,6 +83,9 @@
     <Content Include="AnsText\bug25890视听说主体课文.txt" />
     <Content Include="AnsText\bug25890高亮json.txt" />
     <Content Include="AnsText\bug26010.txt" />
+    <Content Include="AnsText\bug27015Answer.txt" />
+    <Content Include="AnsText\bug27015json.txt" />
+    <Content Include="AnsText\bug27015.txt" />
     <Content Include="AnsText\data202141.txt" />
     <Content Include="AnsText\data2021411高亮.txt" />
     <Content Include="AnsText\data20214121828.txt" />