Przeglądaj źródła

Merge branch 'manage-cicle' into jenkins

liushengqiang 2 lat temu
rodzic
commit
829207cf38

+ 1 - 0
src/views/subject-echarts/component/CircleProgress.tsx

@@ -85,6 +85,7 @@ export default defineComponent({
       let t = this.duration / this.value
       this.timer = setInterval(() => {
         if (this.now >= this.value) {
+          this.now = this.value
           return clearInterval(this.timer)
         }
         this.now++

+ 1 - 1
src/views/subject-echarts/index.tsx

@@ -231,7 +231,7 @@ export default defineComponent({
           noMemberNum: Math.floor(Math.random() * 1000),
           noPassNum: Math.floor(Math.random() * 1000),
           passNum: Math.floor(Math.random() * 1000),
-          practiceRate: Math.ceil(Math.random() * 100)
+          practiceRate: parseFloat((Math.random() * 100).toFixed(2))
         },
         practiceThisWeeks: new Array(Math.ceil(Math.random() * 9)).fill(1).map((n, i) => {
           return {