litian
2025-01-03 84ce401711710579b25fcc300cb1133cfff817ce
ceshi
2个文件已修改
74 ■■■■ 已修改文件
src/books/aviationEtiquette/view/components/chapter001.vue 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/aviationEtiquette/view/components/chapter003.vue 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/aviationEtiquette/view/components/chapter001.vue
@@ -3623,15 +3623,28 @@
    },
    goCheckOne() {
      let obj = 0;
      let index = 0;
      for (let key in this.evaluation.evaluationOneValue) {
        if (this.evaluation.evaluationOneValue[key] == "1") {
        if(this.evaluation.evaluationOneValue[key] === ""){
          index ++
        }
        if (this.evaluation.evaluationOneValue[key] === "1") {
          obj = obj + 1;
        } else{
          obj = obj + 0;
        }
      }
      if(index > 0 || Object.keys(this.evaluation.evaluationOneValue).length < 15) {
        this.$message({
              message: "您还有题目未选择答案",
              type: "warning"
            });
            return;
      }else{
      this.evaluationOneResults = obj;
      localStorage.setItem("aviationEtiquette-book-evaluation-one",this.evaluationOneResults);
      }
    },
    changeCheckData() {
      this.evaluationOneResults = '';
@@ -3641,14 +3654,27 @@
    goCheckTwo() {
      let obj = 0;
      let index = 0;
      for (let key in this.evaluation.evaluationTwoValue) {
        if(this.evaluation.evaluationTwoValue[key] === ""){
          index ++
        }
        if (this.evaluation.evaluationTwoValue[key] == "0") {
          obj = obj + 1;
        }
      }
      console.log(this.evaluation.evaluationTwoValue,index)
      if(index > 0 || Object.keys(this.evaluation.evaluationTwoValue).length < 15) {
        this.$message({
              message: "您还有题目未选择答案",
              type: "warning"
            });
            return;
      }else{
      this.evaluationTwoResults = 105 - obj * 7;
      this.evaluation.showCheckAnswer = true;
      localStorage.setItem("aviationEtiquette-book-evaluation-two",this.evaluationOneResults);
      }
    },
    changeCheckTwo() {
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);