wolyshaw 4 лет назад
Родитель
Сommit
2045fd182f
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/views/teamDetail/components/modals/classroom-setting-item.vue

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

@@ -75,6 +75,7 @@
               filterable>
               <el-option v-for="(item,index) in pricesArray"
                 :key="index"
+                :disabled="surplustime < item"
                 :label="item"
                 :value="item">
               </el-option>
@@ -140,7 +141,7 @@
       type="info"
       size="small"
       plain
-      :disabled="surplustime < (selectPrice || 0) || Math.min(...pricesArray)"
+      :disabled="surplustime < ((selectPrice || 0) || Math.min(...pricesArray))"
       @click="create"
       style="margin-top: 10px;width: 100%;"
     >添加循环</el-button>
@@ -184,8 +185,7 @@ export default {
       ]
     },
     pricesArray() {
-      console.log(this.prices, this.type)
-      return (this.prices[this.type] || '').split(',') || []
+      return (this.prices[this.type] || '').split(',').filter(item => !!item)
     }
   },
   methods: {