update:bug修复
This commit is contained in:
parent
19b35fc9b9
commit
386ae57249
@ -22,11 +22,11 @@ export function ModifyTeacher(params) {
|
||||
}
|
||||
|
||||
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) {
|
||||
return http.get(`/api/Student/GetStudentList?ClassId=${a}`)
|
||||
return http.get(`/api/Student/GetStudentList?ClassId=${a ?? 0}`)
|
||||
}
|
||||
|
||||
export function AddStudent(params) {
|
||||
@ -328,7 +328,10 @@ export function getSchoolReservationList(pageIndex, 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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 zhCN from 'ant-design-vue/es/locale/zh_CN';
|
||||
import { getSchoolReservationList } from '@/api/grade';
|
||||
import { changeSchoolReservationStatus } from '@/api/grade';
|
||||
|
||||
|
||||
// Component logic goes here
|
||||
@ -71,6 +72,12 @@ const handleChange = (value) => {
|
||||
searchSchoolStatus.value = value;
|
||||
getSchoolList();
|
||||
}
|
||||
|
||||
const changeStutus = async (id ) =>{
|
||||
const res = await changeSchoolReservationStatus(id,2);
|
||||
message.success('状态变更成功');
|
||||
getSchoolList();
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@ -108,7 +115,7 @@ const handleChange = (value) => {
|
||||
title="是否变更联系状态状态?"
|
||||
ok-text="是"
|
||||
cancel-text="否"
|
||||
@confirm="changeStutus(record.id)"
|
||||
@confirm="changeStutus(record.id, record.status)"
|
||||
@cancel="cancel"
|
||||
v-if="record.status == 1"
|
||||
>
|
||||
|
@ -273,7 +273,7 @@ const nowStudentShow = ref(false);
|
||||
const lookStudent = (id) => {
|
||||
console.log('查看学员详情', id);
|
||||
nowStudentShow.value = true;
|
||||
getStundList(id == allStudentClass.value.id ? 0 : id);
|
||||
getStundList( id);
|
||||
}
|
||||
|
||||
watch(open, (newVal) => {
|
||||
@ -330,13 +330,13 @@ const handleSearch = () => {
|
||||
<template v-if="column.key === 'index'">
|
||||
{{ index + 1 }}
|
||||
</template>
|
||||
<template v-if="column.key === 'studentCount' && record.id == allStudentClass.id">
|
||||
<!-- <template v-if="column.key === 'studentCount' && record.id == allStudentClass.id">
|
||||
{{ studentslist.length }}
|
||||
</template>
|
||||
</template> -->
|
||||
<template v-if="column.key == 'set'">
|
||||
<a @click="lookStudent(record.id)" class="settingg">学员详情</a>
|
||||
<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> -->
|
||||
</template>
|
||||
</template>
|
||||
|
Loading…
x
Reference in New Issue
Block a user