日历接口调整

This commit is contained in:
luyuan 2020-10-16 14:47:35 +08:00
parent b5cbd71a56
commit 1a9dd0ba50
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 4 additions and 3 deletions

View File

@ -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
}

View File

@ -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)
})
}