mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 13:26:44 +08:00
搜索时修改分页为1
This commit is contained in:
@@ -36,6 +36,11 @@ export default {
|
|||||||
this.total=res.data.page.total
|
this.total=res.data.page.total
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 搜索
|
||||||
|
searchList(){
|
||||||
|
this.params.pageNo = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
// 重置
|
// 重置
|
||||||
closePageFind(){
|
closePageFind(){
|
||||||
this.params.courseName = '';
|
this.params.courseName = '';
|
||||||
@@ -129,15 +134,10 @@ export default {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div v-if="this.couresList.length==0">
|
|
||||||
<div>
|
|
||||||
<div class="zan-wu">暂无数据</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div style="display: flex;justify-content:space-between;position: relative;">
|
<div style="display: flex;justify-content:space-between;position: relative;">
|
||||||
<div style="display: flex;justify-content: flex-start; padding: 12px 32px 10px 12px;">
|
<div style="display: flex;justify-content: flex-start; padding: 12px 32px 10px 12px;">
|
||||||
<div style="margin-left:10px"><el-input v-model="params.courseName" placeholder="请输入认证课程名称" clearable ></el-input></div>
|
<div style="margin-left:10px"><el-input v-model="params.courseName" placeholder="请输入认证课程名称" clearable ></el-input></div>
|
||||||
<div style="padding-left: 10px;"><el-button type="primary" icon="el-icon-search" @click="getList">搜索</el-button></div>
|
<div style="padding-left: 10px;"><el-button type="primary" icon="el-icon-search" @click="searchList">搜索</el-button></div>
|
||||||
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="closePageFind">重置</el-button></div>
|
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="closePageFind">重置</el-button></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -166,6 +166,11 @@ export default {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="this.couresList.length==0">
|
||||||
|
<div>
|
||||||
|
<div class="zan-wu">暂无数据</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div v-if="couresList.length > 0" style="text-align: center; margin-top:57px;">
|
<div v-if="couresList.length > 0" style="text-align: center; margin-top:57px;">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
background
|
background
|
||||||
|
|||||||
Reference in New Issue
Block a user