feat:新增小组成员信息

master
JangCan 2024-04-23 20:47:03 +08:00
parent b9ece4be7b
commit df09d27368
2 changed files with 37 additions and 1 deletions

View File

@ -9,6 +9,14 @@ export function listClazz(query) {
}) })
} }
// 查询学生小组列表
export function queryGroup(id) {
return request({
url: '/queryGroup/'+id,
method: 'get'
})
}
// 查询学生详细 // 查询学生详细
export function getClazz(id) { export function getClazz(id) {
return request({ return request({

View File

@ -129,6 +129,13 @@
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['clazz:clazz:edit']" v-hasPermi="['clazz:clazz:edit']"
>修改</el-button> >修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleQueryGroup(scope.row.id)"
v-hasPermi="['clazz:clazz:edit']"
>查询</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -181,16 +188,27 @@
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="小组信息" :visible.sync="dialogTableVisible">
<el-table :data="gridData">
<el-table-column property="stuName" label="姓名" width="150"></el-table-column>
<el-table-column property="stuAge" label="年龄" width="150"></el-table-column>
<el-table-column property="stuGender" label="性别" width="200"></el-table-column>
<el-table-column property="groupName" label="小组名称"></el-table-column>
</el-table>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { listClazz, getClazz, delClazz, addClazz, updateClazz } from "@/api/clazz/clazz"; import {listClazz, getClazz, delClazz, addClazz, updateClazz, queryGroup} from "@/api/clazz/clazz";
export default { export default {
name: "Clazz", name: "Clazz",
data() { data() {
return { return {
gridData:[],
dialogTableVisible:false,
// //
loading: true, loading: true,
// //
@ -232,6 +250,7 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
queryGroup,
/** 查询学生列表 */ /** 查询学生列表 */
getList() { getList() {
this.loading = true; this.loading = true;
@ -241,6 +260,15 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
handleQueryGroup(id){
this.dialogTableVisible=true
this.queryGroup(id).then(res=>{
console.log("小组")
console.log(res)
this.gridData=res.data
})
},
// //
cancel() { cancel() {
this.open = false; this.open = false;