考试
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="OnlineClass">
|
||||
<div class="search_box">
|
||||
<u-search placeholder="请输入需要搜索的课程" bg-color="#FFF" v-model="keyword" :show-action="false"></u-search>
|
||||
<u-search placeholder="请输入需要搜索的课程" bg-color="#FFF" v-model="title" :show-action="false"></u-search>
|
||||
</div>
|
||||
|
||||
<p class="all_class">全部课程</p>
|
||||
@@ -27,7 +27,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
current: 1,
|
||||
keyword: '',
|
||||
title: '',
|
||||
classList: [],
|
||||
}
|
||||
},
|
||||
@@ -37,17 +37,17 @@ export default {
|
||||
|
||||
methods: {
|
||||
getList() {
|
||||
// this.$instance.post(``, null, {
|
||||
// params: {
|
||||
// current: this.current,
|
||||
// size: 10,
|
||||
// title: this.title
|
||||
// }
|
||||
// }).then(res=> {
|
||||
// if(res?.data) {
|
||||
// this.classList = res.data.records
|
||||
// }
|
||||
// })
|
||||
this.$instance.post(`/app/appcourseinfo/list`, null, {
|
||||
params: {
|
||||
current: this.current,
|
||||
size: 10,
|
||||
title: this.title
|
||||
}
|
||||
}).then(res=> {
|
||||
if(res?.data) {
|
||||
this.classList = res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
handleToDetail() {
|
||||
this.$emit('toDetail')
|
||||
|
||||
Reference in New Issue
Block a user