|
@@ -294,13 +294,13 @@
|
|
|
</div>
|
|
|
<div class="groupContent">
|
|
|
<div class="groupTitle">请设置每组人数</div>
|
|
|
- <el-input v-model="groupJson.number" style="width:150px"
|
|
|
+ <el-input v-model="groupJson2.number" style="width:150px"
|
|
|
placeholder="请输入2-10的数字" @change="numberPan"></el-input>
|
|
|
</div>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="updateGroupJson">确定</el-button>
|
|
|
+ <el-button type="primary" @click="updateGroupJson(2)">确定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
|
|
@@ -582,7 +582,7 @@ export default {
|
|
|
}
|
|
|
this.updateGroupJson();
|
|
|
},
|
|
|
- updateGroupJson() {
|
|
|
+ updateGroupJson(type) {
|
|
|
for (var i = 0; i < this.groupJson2.group.length; i++) {
|
|
|
if (!this.groupJson2.group[i].name) {
|
|
|
this.$message.error("请将信息填写完整!");
|
|
@@ -613,8 +613,12 @@ export default {
|
|
|
.post(this.$store.state.api + "setCourseGroup", params)
|
|
|
.then((res) => {
|
|
|
if(this.groupJson2.isopen == 1){
|
|
|
- this.$message.success("开启分组成功");
|
|
|
- }else{
|
|
|
+ if(type == 2){
|
|
|
+ this.$message.success("设置成功");
|
|
|
+ }else{
|
|
|
+ this.$message.success("开启分组成功");
|
|
|
+ }
|
|
|
+ }else if(this.groupJson2.isopen == 2){
|
|
|
this.$message.success("关闭分组成功");
|
|
|
}
|
|
|
// 开启分组成功/关闭分组成功
|