小组管理-4-24

master
31353 2024-04-24 09:06:59 +08:00
parent c02cd7d29c
commit 3b2cf07915
1 changed files with 16 additions and 8 deletions

View File

@ -1,6 +1,5 @@
<template>
<div class="app-container">
{{this.queryGroup}}
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="班级名称" prop="className">
<el-input
@ -135,11 +134,15 @@
<el-form-item label="小组人员" prop="groupPersonnel">
<el-input v-model="group.groupPersonnel" placeholder="请输入小组人员" />
</el-form-item>
<el-form-item label="班级">
<el-select v-model="group.classId" placeholder="请选择班级">
<el-option v-for="item in classDown" :label="item.className" :value="item.classId"></el-option>
</el-select>
<el-form-item label="班级ID" prop="groupPersonnel">
<el-input v-model="group.classId" placeholder="请输入小组人员" />
</el-form-item>
<!-- <el-form-item label="班级">-->
<!-- <el-select v-model="group.classId" placeholder="请选择班级">-->
<!-- <el-option v-for="item in classDown" :label="item.className" :value="item.classId"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitFormgroup"> </el-button>
@ -252,7 +255,9 @@ export default {
classId: 0,
},
//
group: {},
group: {
classId:0
},
//
addupdate:false,
//
@ -286,6 +291,7 @@ export default {
className: null,
classState: null,
},
classIdStr:'',
//
form: {},
//
@ -347,12 +353,12 @@ export default {
groupName: null,
groupPeople: null,
groupPersonnel: null,
classId: null
}
},
handleAddGroup(){
this.resetgroup();
this.addupdate = true;
this.resetgroup();
this.group.classId = this.classIdStr
this.title = "添加小组管理";
},
//
@ -362,11 +368,13 @@ export default {
})
},
findByGroup(classId){
this.classIdStr = classId
this.queryGroup.classId = classId
listGroup(this.queryGroup).then(res=>{
this.dialogTableVisible = true
this.grouptotal = res.data.total
this.groupList = res.data.rows
})
},
/** 查询班级管理列表 */