Ver Fonte

进度展示调整

zhangjie há 4 anos atrás
pai
commit
0c0431aec3

+ 4 - 1
src/modules/grading/Grading.vue

@@ -110,7 +110,7 @@ export default {
           });
           return;
         }
-        this.getProgressDetail();
+        // this.getProgressDetail();
         this.stepName =
           this.curSubject.test === 2
             ? "试评"
@@ -133,6 +133,9 @@ export default {
     async getParamsSetInfo() {
       this.paramsSet = await getParamsSet(this.workId);
     },
+    setProgress(progress) {
+      this.stepProgress = progress.toFixed(2) + "%";
+    },
     async getProgressDetail() {
       const data = await gradingProgressDetail({
         workId: this.curSubject.workId,

+ 1 - 0
src/modules/grading/GradingProgress.vue

@@ -243,6 +243,7 @@ export default {
         this.areaProgress = [totalInfo, ...this.addProgress(data.areaProgress)];
         this.markerProgress = this.addProgress(data.markerProgress);
       }
+      this.$parent.setProgress(data.totalProgress.progress);
     },
     addProgress(data) {
       return data.map(item => {