最大999

This commit is contained in:
zhangsir
2024-10-29 15:57:54 +08:00
parent fd73a396d5
commit 9eaf352cc3

View File

@@ -170,7 +170,7 @@
<el-table-column prop="duration" label="时长(分)" width="100">
<template slot-scope="scope">
<!-- <el-input type="number" :stpe="1" min="0" size="small" step-strictly v-model="scope.row.minute"></el-input> -->
<el-input-number style="width: 78px;" controls-position="right" size="small" :min="0" v-model="scope.row.minute" :step="1" step-strictly></el-input-number>
<el-input-number style="width: 78px;" :max="999" controls-position="right" size="small" :min="0" v-model="scope.row.minute" :step="1" step-strictly></el-input-number>
</template>
</el-table-column>
<el-table-column label="可见性" width="100">
@@ -657,7 +657,7 @@ export default {
if(item.name == ''){
this.$message.error('课件名称不能为空');
return true;
}else if(item.minute==''||item.minute == 0){
}else if(!item.minute||item.minute == undefined){
this.$message.error('时长不能为空并且不能为0');
return true;
}else{