xbx #51

Merged
theluyuan merged 4 commits from xbx into master 2020-10-16 06:53:55 +00:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 1a9dd0ba50 - Show all commits

View File

@ -514,8 +514,8 @@ export async function getliveinfo(id: number){
export async function getdatelist(start: string, end: string) { export async function getdatelist(start: string, end: string, teacherid: number) {
return (await get("teacherCalendar")).data return (await get("teacherCalendar",{start, end, teacherid})).data
} }

View File

@ -189,6 +189,7 @@
import { defineComponent, ref } from 'vue'; import { defineComponent, ref } from 'vue';
import { getdate } from "@/utils/date" import { getdate } from "@/utils/date"
import { getdatelist } from '@/api'; import { getdatelist } from '@/api';
import store from '@/store';
export default defineComponent({ export default defineComponent({
props:{ props:{
@ -211,7 +212,7 @@ export default defineComponent({
getdates() getdates()
} }
async function 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) console.log(res)
}) })
} }