Merge pull request 'xbx' (#51) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/51
This commit is contained in:
commit
9db63a6a1d
@ -101,7 +101,7 @@ interface Teacherliked {
|
||||
export async function getteacherliked(data?:any){
|
||||
const res = await get<Array<Teacherliked>>('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
|
||||
}
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<div class="mid">
|
||||
<!-- {{teacherlikedlist}} -->
|
||||
<div class="studentlist">
|
||||
<div class="stuitem" v-for="(i,j) in teacherlikedlist" :key="j">
|
||||
<div class="stuitem" v-for="(i,j) in teacherlikedlist.data" :key="j">
|
||||
<img :src="i.img" alt="" class="photo" />
|
||||
<div>
|
||||
<div class="info">
|
||||
@ -54,7 +54,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="pages">
|
||||
<a-pagination v-model:current="page" :total="500" :showLessItems="true" />
|
||||
<a-pagination v-model:current="page" :total="teacherlikedlist.total" :showLessItems="true" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -168,7 +168,9 @@ export default defineComponent({
|
||||
components: {},
|
||||
setup() {
|
||||
const page = ref(1);
|
||||
const teacherlikedlist =ref<Array<any>>([]);
|
||||
const teacherlikedlist =ref<any>({
|
||||
|
||||
});
|
||||
const title=ref('')
|
||||
const condition = ref<any>({
|
||||
title:""
|
||||
|
@ -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…
Reference in New Issue
Block a user