diff --git a/src/api/index.ts b/src/api/index.ts index cdfd7b6..52aeb32 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -101,7 +101,7 @@ interface Teacherliked { export async function getteacherliked(data?:any){ const res = await get>('teacherliked',data); // console.log(res) - return res.data + return res; } @@ -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 } diff --git a/src/views/regime/Subscriber.vue b/src/views/regime/Subscriber.vue index f45439c..67cad05 100644 --- a/src/views/regime/Subscriber.vue +++ b/src/views/regime/Subscriber.vue @@ -10,7 +10,7 @@
-
+
@@ -54,7 +54,7 @@
- +
@@ -168,7 +168,9 @@ export default defineComponent({ components: {}, setup() { const page = ref(1); - const teacherlikedlist =ref>([]); + const teacherlikedlist =ref({ + + }); const title=ref('') const condition = ref({ title:"" diff --git a/src/views/regime/date.vue b/src/views/regime/date.vue index 846c744..81ae416 100644 --- a/src/views/regime/date.vue +++ b/src/views/regime/date.vue @@ -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) }) }