小组管理-4-24
parent
c02cd7d29c
commit
3b2cf07915
|
@ -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
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/** 查询班级管理列表 */
|
/** 查询班级管理列表 */
|
||||||
|
|
Loading…
Reference in New Issue