日历接口调整
This commit is contained in:
parent
b5cbd71a56
commit
1a9dd0ba50
@ -514,8 +514,8 @@ export async function getliveinfo(id: number){
|
||||
|
||||
|
||||
|
||||
export async function getdatelist(start: string, end: string) {
|
||||
return (await get("teacherCalendar")).data
|
||||
export async function getdatelist(start: string, end: string, teacherid: number) {
|
||||
return (await get("teacherCalendar",{start, end, teacherid})).data
|
||||
}
|
||||
|
||||
|
||||
|
@ -189,6 +189,7 @@
|
||||
import { defineComponent, ref } from 'vue';
|
||||
import { getdate } from "@/utils/date"
|
||||
import { getdatelist } from '@/api';
|
||||
import store from '@/store';
|
||||
|
||||
export default defineComponent({
|
||||
props:{
|
||||
@ -211,7 +212,7 @@ export default defineComponent({
|
||||
getdates()
|
||||
}
|
||||
async function getdates(){
|
||||
getdatelist(month.value.start, month.value.end).then((res)=>{
|
||||
getdatelist(month.value.start, month.value.end, store.state.userinfo.memberid).then((res)=>{
|
||||
console.log(res)
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user