Selaa lähdekoodia

阅卷按钮置灰

xiatian 6 vuotta sitten
vanhempi
commit
cdcfe138ac
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 8 0
      src/modules/marking/views/MarkSettingWork.vue

+ 8 - 0
src/modules/marking/views/MarkSettingWork.vue

@@ -49,6 +49,7 @@
               <template slot-scope="scope">
                 <div class="pull-left">
                   <el-button
+                    :disabled="markingBtnDisable(scope.row)"
                     @click="marking(scope.row)"
                     type="primary"
                     size="mini"
@@ -98,6 +99,13 @@ export default {
     };
   },
   methods: {
+    markingBtnDisable(row) {
+      if (row.progress == 100) {
+        return true;
+      } else {
+        return false;
+      }
+    },
     initMarkWork() {
       this.loading = true;
       this.$http