小组管理-增删改查-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({ return request({
url: '/group/group/list', url: '/group/group/list',
method: 'get', method: 'get',
data params: query
}) })
} }
//添加小祖 //添加小祖
export function addGroup(data) { export function addGroup(data) {
return request({ return request({

View File

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