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