| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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> |
| | |
| | | |
| | | 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); |
| | |
| | | }, |
| | | 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); |
| | |
| | | }, |
| | | 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); |