Parcourir la source

排序隐藏恢复,判断bug完善

qinpeng il y a 2 ans
Parent
commit
df50b7bffe

+ 1 - 1
src/components/Adult/preview/InputHasRecord.vue

@@ -462,7 +462,7 @@
                 @handleWav="handleWav"
                 :answerRecordList="
                   judgeAnswer != 'standardAnswer'
-                    ? curQue.Bookanswer[0].recordList
+                    ? curQue.Bookanswer[indexs].recordList
                     : []
                 "
                 :tmIndex="indexs"

+ 13 - 0
src/components/Adult/preview/Ligature.vue

@@ -555,6 +555,19 @@ export default {
     this.allimgnumber = 0;
     if (!this.curQue.Bookanswer) {
       // sData = JSON.parse(sessionStorage.getItem("LineData"));
+      let isanswer = false;
+      this.curQue.con.forEach((con) => {
+        if (
+          Object.prototype.toString.call(con.AnswerList).indexOf("Number") != -1
+        ) {
+          isanswer = true;
+        }
+      });
+      if (isanswer) {
+        this.data.userAnswerJudge = "[JUDGE##F##JUDGE]";
+      } else {
+        this.data.userAnswerJudge = "";
+      }
       this.curQue.Bookanswer = this.data;
     } else {
       this.data = JSON.parse(JSON.stringify(this.curQue.Bookanswer));

+ 12 - 6
src/components/Adult/preview/SentenceInput.vue

@@ -218,6 +218,7 @@
             <a
               :class="[
                 'right-btn',
+                !judgeAnswer ? 'isHover' : '',
                 judgeAnswer == 'standardAnswer'
                   ? items.judge
                     ? 'active active-right-btn'
@@ -231,6 +232,8 @@
             <a
               :class="[
                 'error-btn',
+                !judgeAnswer ? 'isHover' : '',
+
                 judgeAnswer == 'standardAnswer'
                   ? items.judge
                     ? ''
@@ -249,7 +252,7 @@
               @handleWav="handleWav"
               :answerRecordList="
                 judgeAnswer != 'standardAnswer'
-                  ? curQue.Bookanswer[0].recordList
+                  ? curQue.Bookanswer[indexs].recordList
                   : []
               "
               :tmIndex="indexs"
@@ -264,7 +267,7 @@
               @handleWav="handleWav"
               :answerRecordList="
                 judgeAnswer != 'standardAnswer'
-                  ? curQue.Bookanswer[0].recordList
+                  ? curQue.Bookanswer[indexs].recordList
                   : []
               "
               :tmIndex="indexs"
@@ -310,8 +313,10 @@ export default {
       if (this.dataType.indexOf("sentence_judge_chs") != -1) {
         // 判断题
         if (
-          this.curQue.Bookanswer[index].answer == "right" &&
-          this.curQue.option[index].judge
+          (this.curQue.Bookanswer[index].answer == "right" &&
+            this.curQue.option[index].judge) ||
+          (this.curQue.Bookanswer[index].answer == "error" &&
+            !this.curQue.option[index].judge)
         ) {
           this.curQue.Bookanswer[index].userAnswerJudge = "[JUDGE##T##JUDGE]";
         } else {
@@ -678,6 +683,7 @@ export default {
             cursor: not-allowed;
           }
         }
+
         a {
           width: 32px;
           height: 32px;
@@ -686,7 +692,7 @@ export default {
           background-size: 24px;
           border-radius: 8px;
           border: 1px solid rgba(0, 0, 0, 0.1);
-          &:hover,
+          &.isHover:hover,
           &.active {
             background-color: #e5fff0;
             border-color: #00c850;
@@ -697,7 +703,7 @@ export default {
             center no-repeat;
           background-size: 24px;
           margin-left: 4px;
-          &:hover,
+          &.isHover:hover,
           &.active {
             background-color: #ffe5e5;
             border-color: #de4444;

+ 1 - 1
src/components/Adult/preview/SentenceSortQP.vue

@@ -62,7 +62,7 @@
             </div>
           </transition-group>
         </draggable>
-        <div class="fw">
+        <div class="fw" v-if="!TaskModel || TaskModel != 'ANSWER'">
           <span
             class="fw-btn"
             :class="[!TaskModel || TaskModel != 'ANSWER' ? 'sure-active' : '']"

+ 1 - 1
src/components/Adult/preview/TextInputRecord.vue

@@ -89,7 +89,7 @@
             @handleWav="handleWav"
             :answerRecordList="
               judgeAnswer != 'standardAnswer'
-                ? curQue.Bookanswer[0].recordList
+                ? curQue.Bookanswer[indexs].recordList
                 : []
             "
             :tmIndex="indexs"