Browse Source

移除前端验证必须排完限制

wolyshaw 4 years ago
parent
commit
9a9b6fc635
1 changed files with 9 additions and 9 deletions
  1. 9 9
      src/views/teamDetail/components/modals/classroom-setting.vue

+ 9 - 9
src/views/teamDetail/components/modals/classroom-setting.vue

@@ -195,15 +195,15 @@ export default {
       }
     },
     submit() {
-      for (const key in this.surplustime) {
-        if (this.surplustime.hasOwnProperty(key)) {
-          const item = this.surplustime[key];
-          if (item > 0) {
-            this.$message.error(`${this.courseTypeListByName[key]},还剩余${item}分钟剩余可排时长`)
-            return
-          }
-        }
-      }
+      // for (const key in this.surplustime) {
+      //   if (this.surplustime.hasOwnProperty(key)) {
+      //     const item = this.surplustime[key];
+      //     if (item > 0) {
+      //       this.$message.error(`${this.courseTypeListByName[key]},还剩余${item}分钟剩余可排时长`)
+      //       return
+      //     }
+      //   }
+      // }
       this.$refs.form.validate(async valid => {
         if (valid) {
           const list = []