소스 검색

互联网电视

hujunwei@agilestar.cn 2 년 전
부모
커밋
7652bea224
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/pages/main/internetAssessment/internetAssessment.vue

+ 3 - 3
src/pages/main/internetAssessment/internetAssessment.vue

@@ -1418,7 +1418,7 @@ export default {
             });
         },
         onInputFocus(i, v) {
-            let a = 0.0
+            let a = 0.00
             console.log(a);
             if (this.fromList.assessmentTemplate == '1') {
                 this.fromList.content1.tableData1.map((item, index) => {
@@ -1448,8 +1448,8 @@ export default {
                     a -= parseFloat(item.score)
                 })
             }
-            Math.floor(a * 100) / 100
-            this.$set(this.fromList, 'currentScore', Math.floor(a * 100) / 100)
+            console.log(a.toFixed(2));
+            this.$set(this.fromList, 'currentScore', a.toFixed(2))
         },
         onInputFocus1(i, v) {
             if (v == '') {