litian
2025-01-03 84ce401711710579b25fcc300cb1133cfff817ce
src/books/aviationEtiquette/view/components/chapter003.vue
@@ -465,7 +465,7 @@
              value="1"
              id="1"
              :disabled="evaluation.isComplete"
              v-model="evaluation.evaluationThreeValue.Two"
              v-model="evaluation.evaluationThreeValue.two"
              @change="setEvaluation"
            />A.直接冲到那个同事面前,和他大吵一顿</p>
          <p class="block"><input
@@ -474,7 +474,7 @@
              value="2"
              id="1"
              :disabled="evaluation.isComplete"
              v-model="evaluation.evaluationThreeValue.Two"
              v-model="evaluation.evaluationThreeValue.two"
              @change="setEvaluation"
            />B.向领导说明情况,请领导调查真相</p>
          <p class="block"><input
@@ -483,7 +483,7 @@
              value="3"
              id="1"
              :disabled="evaluation.isComplete"
              v-model="evaluation.evaluationThreeValue.Two"
              v-model="evaluation.evaluationThreeValue.two"
              @change="setEvaluation"
            />C.清者自清,不去理睬,和以前一样干好工作</p>
          <p class="block">3.如果父母性格不合,经常吵架,你会怎么办?</p>
@@ -2333,13 +2333,23 @@
    goCheckThree(){
      let obj = 0
      let index = 0
      for (let key in this.evaluation.evaluationThreeValue) {
        if (this.evaluation.evaluationThreeValue[key] != '') {
        if (this.evaluation.evaluationThreeValue[key] !== '') {
          let cont = Number(this.evaluation.evaluationThreeValue[key])
          obj = obj + cont
        }else{
          index ++
        }
      }
      if(obj){
      console.log(index,this.evaluation.evaluationThreeValue)
      if(index > 0 || Object.keys(this.evaluation.evaluationThreeValue).length < 10) {
        this.$message({
            message: "您还有题目未选择答案",
            type: "warning"
          });
          return;
      }else{
        this.evaluatioThreeResults = obj
        this.evaluation.showCheckAnswerThree = true
        localStorage.setItem("aviationEtiquette-book-evaluation-three",this.evaluatioThreeResults);
@@ -2352,13 +2362,22 @@
    },
    goCheckFour(){
      let obj = 0
      let index = 0
      for (let key in this.evaluation.evaluationFourValue) {
        if (this.evaluation.evaluationFourValue[key] != '') {
        if (this.evaluation.evaluationFourValue[key] !== '') {
          let cont = Number(this.evaluation.evaluationFourValue[key])
          obj = obj + cont
        }else{
          index++
        }
      }
      if(obj){
      if(index > 0 || Object.keys(this.evaluation.evaluationFourValue).length < 6) {
        this.$message({
            message: "您还有题目未选择答案",
            type: "warning"
          });
          return;
      }else{
        this.evaluationFourResults = obj
        this.evaluation.showCheckAnswerFour = true
        localStorage.setItem("aviationEtiquette-book-evaluation-four",this.evaluationFourResults);
@@ -2371,13 +2390,22 @@
    },
    goCheckFive(){
      let obj = 0
      let index = 0
      for (let key in this.evaluation.evaluationFiveValue) {
        if (this.evaluation.evaluationFiveValue[key] != '') {
        if (this.evaluation.evaluationFiveValue[key] !== '') {
          let cont = Number(this.evaluation.evaluationFiveValue[key])
          obj = obj + cont
        }else{
          index++
        }
      }
      if(obj){
      if(index > 0 || Object.keys(this.evaluation.evaluationFiveValue).length < 12) {
        this.$message({
            message: "您还有题目未选择答案",
            type: "warning"
          });
          return;
      }else{
        this.evaluationFiveResults = obj
        this.evaluation.showCheckAnswerFive = true
        localStorage.setItem("aviationEtiquette-book-evaluation-five",this.evaluationFiveResults);