update:bug修复

This commit is contained in:
ltx 2025-07-16 10:04:46 +08:00
parent 19b35fc9b9
commit 386ae57249
3 changed files with 18 additions and 8 deletions

View File

@ -22,11 +22,11 @@ export function ModifyTeacher(params) {
} }
export function StudentGetClassPageList(a, b, c, d, e, f, g) { export function StudentGetClassPageList(a, b, c, d, e, f, g) {
return http.get(`/api/Student/GetStudentPageList?ClassId=${a}&StudentNo=${b}&StudentName=${c}&Sex=${d}&StudentStatus=${e}&PageIndex=${f}&PageSize=${g}`) return http.get(`/api/Student/GetStudentPageList?ClassId=${a ?? 0}&StudentNo=${b}&StudentName=${c}&Sex=${d}&StudentStatus=${e}&PageIndex=${f}&PageSize=${g}`)
} }
export function StudentGetClassAll(a) { export function StudentGetClassAll(a) {
return http.get(`/api/Student/GetStudentList?ClassId=${a}`) return http.get(`/api/Student/GetStudentList?ClassId=${a ?? 0}`)
} }
export function AddStudent(params) { export function AddStudent(params) {
@ -328,7 +328,10 @@ export function getSchoolReservationList(pageIndex, status) {
//更新预约状态 //更新预约状态
export function changeSchoolReservationStatus(id, status) { export function changeSchoolReservationStatus(id, status) {
return http.post(`/api/School/UpdateSchoolAccountApplicationStatus?id=${id}0&Status=${status ? status : 0}`) return http.post(`/api/School/UpdateSchoolAccountApplicationStatus?id=${id}&Status=${status ? status : 0}`,{
status: status ? status : 0,
id: id
})
} }

View File

@ -3,6 +3,7 @@ import { ref, onMounted } from 'vue'
import { Table, Tag, Divider, ConfigProvider, Input, Button, Modal, Select, Pagination, message ,Popconfirm} from 'ant-design-vue'; import { Table, Tag, Divider, ConfigProvider, Input, Button, Modal, Select, Pagination, message ,Popconfirm} from 'ant-design-vue';
import zhCN from 'ant-design-vue/es/locale/zh_CN'; import zhCN from 'ant-design-vue/es/locale/zh_CN';
import { getSchoolReservationList } from '@/api/grade'; import { getSchoolReservationList } from '@/api/grade';
import { changeSchoolReservationStatus } from '@/api/grade';
// Component logic goes here // Component logic goes here
@ -71,6 +72,12 @@ const handleChange = (value) => {
searchSchoolStatus.value = value; searchSchoolStatus.value = value;
getSchoolList(); getSchoolList();
} }
const changeStutus = async (id ) =>{
const res = await changeSchoolReservationStatus(id,2);
message.success('状态变更成功');
getSchoolList();
}
</script> </script>
<template> <template>
@ -108,7 +115,7 @@ const handleChange = (value) => {
title="是否变更联系状态状态?" title="是否变更联系状态状态?"
ok-text="是" ok-text="是"
cancel-text="否" cancel-text="否"
@confirm="changeStutus(record.id)" @confirm="changeStutus(record.id, record.status)"
@cancel="cancel" @cancel="cancel"
v-if="record.status == 1" v-if="record.status == 1"
> >

View File

@ -273,7 +273,7 @@ const nowStudentShow = ref(false);
const lookStudent = (id) => { const lookStudent = (id) => {
console.log('查看学员详情', id); console.log('查看学员详情', id);
nowStudentShow.value = true; nowStudentShow.value = true;
getStundList(id == allStudentClass.value.id ? 0 : id); getStundList( id);
} }
watch(open, (newVal) => { watch(open, (newVal) => {
@ -330,13 +330,13 @@ const handleSearch = () => {
<template v-if="column.key === 'index'"> <template v-if="column.key === 'index'">
{{ index + 1 }} {{ index + 1 }}
</template> </template>
<template v-if="column.key === 'studentCount' && record.id == allStudentClass.id"> <!-- <template v-if="column.key === 'studentCount' && record.id == allStudentClass.id">
{{ studentslist.length }} {{ studentslist.length }}
</template> </template> -->
<template v-if="column.key == 'set'"> <template v-if="column.key == 'set'">
<a @click="lookStudent(record.id)" class="settingg">学员详情</a> <a @click="lookStudent(record.id)" class="settingg">学员详情</a>
<a @click="setCilck(record.id, record.className, record.teacherName)" <a @click="setCilck(record.id, record.className, record.teacherName)"
v-if="record.id != allStudentClass.id" class="settingg">编辑</a> class="settingg">编辑</a>
<!-- <a @click="setCilck" class="settingg">删除</a> --> <!-- <a @click="setCilck" class="settingg">删除</a> -->
</template> </template>
</template> </template>