|
@@ -6788,8 +6788,8 @@
|
|
<div class="groupTitle">请设置每组人数</div>
|
|
<div class="groupTitle">请设置每组人数</div>
|
|
<!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
|
|
<!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
|
|
style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
|
|
style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
|
|
- <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
|
|
|
|
- placeholder="请输入2-10的数字"></el-input-number>
|
|
|
|
|
|
+ <el-input v-model="groupJson.number" style="width:150px"
|
|
|
|
+ placeholder="请输入2-10的数字" @change="numberPan"></el-input>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
@@ -12937,6 +12937,12 @@ export default {
|
|
this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
|
|
this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
|
|
this.dialogVisibleGroup2 = true;
|
|
this.dialogVisibleGroup2 = true;
|
|
},
|
|
},
|
|
|
|
+ numberPan(){
|
|
|
|
+ if(/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10){
|
|
|
|
+ this.$message.error('请输入2-10的数字')
|
|
|
|
+ this.groupJson.number = ''
|
|
|
|
+ }
|
|
|
|
+ },
|
|
updateGroupJson() {
|
|
updateGroupJson() {
|
|
for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
|
|
for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
|
|
if (
|
|
if (
|