mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 07:16:44 +08:00
pageIndex
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
clearable></el-input>
|
||||
</el-col>
|
||||
<el-col :span="14">
|
||||
<el-button type="primary" @click="loadData(1)" style="margin-left: 20px" icon="el-icon-search" >搜索</el-button>
|
||||
<el-button type="primary" @click="getsearch(1)" style="margin-left: 20px" icon="el-icon-search" >搜索</el-button>
|
||||
<el-button icon="el-icon-refresh-right" type="primary" @click="reset"> 重置 </el-button>
|
||||
<el-button type="primary" @click="addQuestion(1)" style="margin-left: 10px" icon="el-icon-plus"> 添加 </el-button>
|
||||
<div style="display: inline-block;margin-left: 10px;">
|
||||
@@ -395,10 +395,16 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
getsearch(){
|
||||
this.params.pageIndex = 1;
|
||||
this.loadData(1)
|
||||
|
||||
},
|
||||
reset(){
|
||||
this.params.ownership = []
|
||||
this.params.type = ''
|
||||
this.params.title = ''
|
||||
this.params.ownership = [];
|
||||
this.params.type = '';
|
||||
this.params.title = '';
|
||||
this.params.pageIndex = 1;
|
||||
this.loadData(1)
|
||||
},
|
||||
...mapActions({
|
||||
|
||||
Reference in New Issue
Block a user