小组管理-增删改查-2

master
31353 2024-04-23 21:45:33 +08:00
parent 51416cc951
commit c02cd7d29c
2 changed files with 7 additions and 5 deletions

View File

@ -51,15 +51,16 @@ export function findUnconditional() {
})
}
//查看小组信息
export function findGroup(data) {
// 查询小组管理列表
export function listGroup(query) {
return request({
url: '/group/group/list',
method: 'get',
data
params: query
})
}
//添加小祖
export function addGroup(data) {
return request({

View File

@ -1,5 +1,6 @@
<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
@ -228,7 +229,7 @@ import {
updateClass,
findGroup,
findUnconditional,
addGroup, updateGroup, delGroup
addGroup, updateGroup, delGroup, listGroup
} from "@/api/school/class";
export default {
@ -362,7 +363,7 @@ export default {
},
findByGroup(classId){
this.queryGroup.classId = classId
findGroup(this.queryGroup).then(res=>{
listGroup(this.queryGroup).then(res=>{
this.dialogTableVisible = true
this.grouptotal = res.data.total
this.groupList = res.data.rows