mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
pageIndex
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="padding: 0px 5px">
|
<div style="padding: 0px 5px">
|
||||||
<el-button
|
<el-button
|
||||||
@click="getArticleList"
|
@click="getsearch"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
type="primary"
|
type="primary"
|
||||||
>搜索</el-button
|
>搜索</el-button
|
||||||
@@ -167,9 +167,15 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getsearch(){
|
||||||
|
this.pageData.pageIndex = 1;
|
||||||
|
this.getArticleList()
|
||||||
|
|
||||||
|
},
|
||||||
reset() {
|
reset() {
|
||||||
this.pageData.status = ''
|
this.pageData.status = ''
|
||||||
this.pageData.keyword = ''
|
this.pageData.keyword = ''
|
||||||
|
this.pageData.pageIndex = 1;
|
||||||
this.getArticleList()
|
this.getArticleList()
|
||||||
},
|
},
|
||||||
//获取文章列表数据
|
//获取文章列表数据
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8" >
|
<el-col :span="8" >
|
||||||
<div class="grid-content bg-purple" >
|
<div class="grid-content bg-purple" >
|
||||||
<el-button type="primary" style="margin-left: 0px" @click="getSearch()" icon="el-icon-search">搜索</el-button>
|
<el-button type="primary" style="margin-left: 0px" @click="search()" icon="el-icon-search">搜索</el-button>
|
||||||
<el-button @click="reset()" style="margin-left: 20pxpx" type="primary" icon="el-icon-refresh-right">重置</el-button>
|
<el-button @click="reset()" style="margin-left: 20pxpx" type="primary" icon="el-icon-refresh-right">重置</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -356,6 +356,11 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
search(){
|
||||||
|
this.params.pageIndex = 1;
|
||||||
|
this.getSearch();
|
||||||
|
|
||||||
|
},
|
||||||
reset() {
|
reset() {
|
||||||
this.params.self = null;
|
this.params.self = null;
|
||||||
this.params.name = '';
|
this.params.name = '';
|
||||||
@@ -365,6 +370,7 @@ export default {
|
|||||||
this.params.resOwner1 = '';
|
this.params.resOwner1 = '';
|
||||||
this.params.resOwner2 = '';
|
this.params.resOwner2 = '';
|
||||||
this.params.resOwner3 = '';
|
this.params.resOwner3 = '';
|
||||||
|
this.params.pageIndex = 1;
|
||||||
this.getSearch();
|
this.getSearch();
|
||||||
},
|
},
|
||||||
...mapActions({
|
...mapActions({
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<div style="width:390px">
|
<div style="width:390px">
|
||||||
<el-button type="primary" @click="searchData()" icon="el-icon-search" >搜索</el-button>
|
<el-button type="primary" @click="getsearch()" icon="el-icon-search" >搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh-right" type="primary" style="margin-left:5px" @click="reset">重置</el-button>
|
<el-button icon="el-icon-refresh-right" type="primary" style="margin-left:5px" @click="reset">重置</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -507,6 +507,11 @@ export default {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
getsearch(){
|
||||||
|
this.params.pageIndex = 1;
|
||||||
|
this.searchData();
|
||||||
|
|
||||||
|
},
|
||||||
reset(){
|
reset(){
|
||||||
this.resOwner = ''
|
this.resOwner = ''
|
||||||
this.params.sysType = ''
|
this.params.sysType = ''
|
||||||
@@ -519,6 +524,8 @@ export default {
|
|||||||
this.params.sysType1 = '';
|
this.params.sysType1 = '';
|
||||||
this.params.sysType2 = '';
|
this.params.sysType2 = '';
|
||||||
this.params.sysType3 = '';
|
this.params.sysType3 = '';
|
||||||
|
this.params.pageIndex = 1;
|
||||||
|
|
||||||
this.searchData();
|
this.searchData();
|
||||||
},
|
},
|
||||||
...mapActions({
|
...mapActions({
|
||||||
|
|||||||
@@ -178,6 +178,7 @@ export default {
|
|||||||
this.params.keyword = '';
|
this.params.keyword = '';
|
||||||
this.params.status = '';
|
this.params.status = '';
|
||||||
this.params.type = '';
|
this.params.type = '';
|
||||||
|
this.params.pageIndex = 1;
|
||||||
this.getList();
|
this.getList();
|
||||||
this.isSearh = false;
|
this.isSearh = false;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-button type="primary" @click="searchData()" icon="el-icon-search">搜索</el-button>
|
<el-button type="primary" @click="getseatch();" icon="el-icon-search">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
|
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -289,6 +289,10 @@ export default {
|
|||||||
this.loadSysTypes();
|
this.loadSysTypes();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getseatch(){
|
||||||
|
this.params.pageIndex= 1;
|
||||||
|
this.searchData();
|
||||||
|
},
|
||||||
reset(){
|
reset(){
|
||||||
this.resOwner = ''
|
this.resOwner = ''
|
||||||
this.params.sysType = ''
|
this.params.sysType = ''
|
||||||
@@ -300,6 +304,7 @@ export default {
|
|||||||
this.params.sysType1 = '';
|
this.params.sysType1 = '';
|
||||||
this.params.sysType2 = '';
|
this.params.sysType2 = '';
|
||||||
this.params.sysType3 = '';
|
this.params.sysType3 = '';
|
||||||
|
this.params.pageIndex= 1;
|
||||||
this.searchData();
|
this.searchData();
|
||||||
},
|
},
|
||||||
...mapActions({
|
...mapActions({
|
||||||
|
|||||||
@@ -181,6 +181,10 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getseatch(){
|
||||||
|
this.params.pageIndex= 1;
|
||||||
|
this.searchData();
|
||||||
|
},
|
||||||
reset(){
|
reset(){
|
||||||
this.resOwner = ''
|
this.resOwner = ''
|
||||||
this.params.sysType = ''
|
this.params.sysType = ''
|
||||||
@@ -192,6 +196,7 @@ export default {
|
|||||||
this.params.sysType1 = '';
|
this.params.sysType1 = '';
|
||||||
this.params.sysType2 = '';
|
this.params.sysType2 = '';
|
||||||
this.params.sysType3 = '';
|
this.params.sysType3 = '';
|
||||||
|
this.params.pageIndex= 1;
|
||||||
this.searchData();
|
this.searchData();
|
||||||
},
|
},
|
||||||
...mapActions({
|
...mapActions({
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<el-input placeholder="关键词" v-model="params.keyWord" clearable></el-input>
|
<el-input placeholder="关键词" v-model="params.keyWord" clearable></el-input>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0px 5px">
|
<div style="padding: 0px 5px">
|
||||||
<el-button @click="loadData()" icon="el-icon-search" type="primary" >搜索</el-button>
|
<el-button @click="search()" icon="el-icon-search" type="primary" >搜索</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button></div>
|
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button></div>
|
||||||
<div style="margin-left:5px">
|
<div style="margin-left:5px">
|
||||||
@@ -836,10 +836,16 @@ export default {
|
|||||||
ele.select();
|
ele.select();
|
||||||
document.execCommand("Copy");
|
document.execCommand("Copy");
|
||||||
},
|
},
|
||||||
|
search(){
|
||||||
|
this.params.pageIndex = 1;
|
||||||
|
this.loadData();
|
||||||
|
|
||||||
|
},
|
||||||
reset(){
|
reset(){
|
||||||
this.params.keyWord = ''
|
this.params.keyWord = ''
|
||||||
this.params.published = ''
|
this.params.published = ''
|
||||||
this.ownership = ''
|
this.ownership = ''
|
||||||
|
this.params.pageIndex = 1;
|
||||||
this.loadData();
|
this.loadData();
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
clearable></el-input>
|
clearable></el-input>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="14">
|
<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 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>
|
<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;">
|
<div style="display: inline-block;margin-left: 10px;">
|
||||||
@@ -395,10 +395,16 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getsearch(){
|
||||||
|
this.params.pageIndex = 1;
|
||||||
|
this.loadData(1)
|
||||||
|
|
||||||
|
},
|
||||||
reset(){
|
reset(){
|
||||||
this.params.ownership = []
|
this.params.ownership = [];
|
||||||
this.params.type = ''
|
this.params.type = '';
|
||||||
this.params.title = ''
|
this.params.title = '';
|
||||||
|
this.params.pageIndex = 1;
|
||||||
this.loadData(1)
|
this.loadData(1)
|
||||||
},
|
},
|
||||||
...mapActions({
|
...mapActions({
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0px 5px;"><el-input placeholder="关键词" v-model="params.keyWord" clearable></el-input></div>
|
<div style="padding: 0px 5px;"><el-input placeholder="关键词" v-model="params.keyWord" clearable></el-input></div>
|
||||||
<div style="padding: 0px 5px;"><el-button icon="el-icon-search" @click="searchData" type="primary" >搜索</el-button></div>
|
<div style="padding: 0px 5px;"><el-button icon="el-icon-search" @click="getsearch" type="primary" >搜索</el-button></div>
|
||||||
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button></div>
|
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button></div>
|
||||||
<div style="padding-left:5px;"><el-button icon="el-icon-plus" type="primary" @click="addPaper()" >新建试卷</el-button></div>
|
<div style="padding-left:5px;"><el-button icon="el-icon-plus" type="primary" @click="addPaper()" >新建试卷</el-button></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -427,10 +427,15 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getsearch(){
|
||||||
|
this.params.pageIndex = 1;
|
||||||
|
this.searchData();
|
||||||
|
},
|
||||||
reset(){
|
reset(){
|
||||||
this.ownership = []
|
this.ownership = []
|
||||||
this.params.paperType = ''
|
this.params.paperType = ''
|
||||||
this.params.keyWord = ''
|
this.params.keyWord = ''
|
||||||
|
this.params.pageIndex = 1;
|
||||||
this.searchData();
|
this.searchData();
|
||||||
},
|
},
|
||||||
...mapActions({
|
...mapActions({
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-button type="primary" @click="searchData()" icon="el-icon-search">搜索</el-button>
|
<el-button type="primary" @click="getsearch()" icon="el-icon-search">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
|
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -289,6 +289,10 @@ export default {
|
|||||||
this.loadSysTypes();
|
this.loadSysTypes();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getsearch(){
|
||||||
|
this.params.pageIndex= 1;
|
||||||
|
this.searchData();
|
||||||
|
},
|
||||||
reset(){
|
reset(){
|
||||||
this.resOwner = ''
|
this.resOwner = ''
|
||||||
this.params.sysType = ''
|
this.params.sysType = ''
|
||||||
@@ -300,6 +304,7 @@ export default {
|
|||||||
this.params.sysType1 = '';
|
this.params.sysType1 = '';
|
||||||
this.params.sysType2 = '';
|
this.params.sysType2 = '';
|
||||||
this.params.sysType3 = '';
|
this.params.sysType3 = '';
|
||||||
|
this.params.pageIndex= 1;
|
||||||
this.searchData();
|
this.searchData();
|
||||||
},
|
},
|
||||||
...mapActions({
|
...mapActions({
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-button type="primary" @click="searchData()" icon="el-icon-search">搜索</el-button>
|
<el-button type="primary" @click="getsearch()" icon="el-icon-search">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
|
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -235,6 +235,10 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getsearch(){
|
||||||
|
this.params.pageIndex = 1;
|
||||||
|
this.searchData();
|
||||||
|
},
|
||||||
reset(){
|
reset(){
|
||||||
this.resOwner = ''
|
this.resOwner = ''
|
||||||
this.params.sysType = ''
|
this.params.sysType = ''
|
||||||
@@ -246,6 +250,7 @@ export default {
|
|||||||
this.params.sysType1 = '';
|
this.params.sysType1 = '';
|
||||||
this.params.sysType2 = '';
|
this.params.sysType2 = '';
|
||||||
this.params.sysType3 = '';
|
this.params.sysType3 = '';
|
||||||
|
this.params.pageIndex = 1;
|
||||||
this.searchData();
|
this.searchData();
|
||||||
},
|
},
|
||||||
...mapActions({
|
...mapActions({
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:10px;padding: 0px 5px;">
|
<div style="margin-top:10px;padding: 0px 5px;">
|
||||||
<el-button icon="el-icon-search" type="primary" @click="loadData(1)">搜索</el-button>
|
<el-button icon="el-icon-search" type="primary" @click="getsearch()">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
|
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
|
||||||
<el-button icon="el-icon-circle-plus-outline" type="primary" @click="openDialog">新建教师</el-button>
|
<el-button icon="el-icon-circle-plus-outline" type="primary" @click="openDialog">新建教师</el-button>
|
||||||
<el-button icon="el-icon-folder-opened" type="primary" @click="exportsExcel">导出</el-button>
|
<el-button icon="el-icon-folder-opened" type="primary" @click="exportsExcel">导出</el-button>
|
||||||
@@ -297,9 +297,14 @@
|
|||||||
});
|
});
|
||||||
this.levelData=array;
|
this.levelData=array;
|
||||||
},
|
},
|
||||||
|
getsearch(){
|
||||||
|
this.pageIndex = 1;
|
||||||
|
this.loadData(1);
|
||||||
|
},
|
||||||
reset (){
|
reset (){
|
||||||
this.queryName = '';
|
this.queryName = '';
|
||||||
this.$refs.teacherTable.clearFilter();
|
this.$refs.teacherTable.clearFilter();
|
||||||
|
this.pageIndex = 1;
|
||||||
this.loadData(1);
|
this.loadData(1);
|
||||||
},
|
},
|
||||||
openDialog(){
|
openDialog(){
|
||||||
|
|||||||
@@ -128,8 +128,10 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
reset(){
|
reset(){
|
||||||
|
this.page.pageIndex = 1;
|
||||||
this.query.name = ''
|
this.query.name = ''
|
||||||
this.query.status = ''
|
this.query.status = ''
|
||||||
|
|
||||||
this.loadData(this.page,this.query);
|
this.loadData(this.page,this.query);
|
||||||
},
|
},
|
||||||
handleSizePushChange(val){
|
handleSizePushChange(val){
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0px 10px;"><el-input placeholder="请输入标题" v-model="queryObj.keyword" clearable></el-input></div>
|
<div style="padding: 0px 10px;"><el-input placeholder="请输入标题" v-model="queryObj.keyword" clearable></el-input></div>
|
||||||
<el-button icon="el-icon-search" @click="getQaList" type="primary" >搜索</el-button>
|
<el-button icon="el-icon-search" @click="search" type="primary" >搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
|
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex;justify-content:flex-start;align-items: center;margin-top:10px">
|
<div style="display: flex;justify-content:flex-start;align-items: center;margin-top:10px">
|
||||||
@@ -163,13 +163,17 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
search(){
|
||||||
|
this.queryObj.pageIndex = 1;
|
||||||
|
this.getQaList();
|
||||||
|
},
|
||||||
reset(){
|
reset(){
|
||||||
this.queryObj.orderField = ''
|
this.queryObj.orderField = ''
|
||||||
this.queryObj.status = ''
|
this.queryObj.status = ''
|
||||||
this.queryObj.isResolve = ''
|
this.queryObj.isResolve = ''
|
||||||
this.queryObj.keyword = ''
|
this.queryObj.keyword = ''
|
||||||
this.queryObj.isEssence = ''
|
this.queryObj.isEssence = ''
|
||||||
|
this.queryObj.pageIndex = 1;
|
||||||
this.getQaList();
|
this.getQaList();
|
||||||
},
|
},
|
||||||
//查询问答列表数据
|
//查询问答列表数据
|
||||||
|
|||||||
@@ -116,10 +116,12 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
getlist(){
|
getlist(){
|
||||||
|
this.dataList.pageIndex = 1;
|
||||||
this.isSearh = true;
|
this.isSearh = true;
|
||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
reset(){
|
reset(){
|
||||||
|
this.dataList.pageIndex = 1;
|
||||||
this.dataList.send = ''
|
this.dataList.send = ''
|
||||||
this.getData()
|
this.getData()
|
||||||
this.isSearh = false;
|
this.isSearh = false;
|
||||||
|
|||||||
@@ -108,10 +108,12 @@ export default {
|
|||||||
components: {},
|
components: {},
|
||||||
methods: {
|
methods: {
|
||||||
getList(){
|
getList(){
|
||||||
|
this.dataList.pageIndex = 1;
|
||||||
this.isSearh = true;
|
this.isSearh = true;
|
||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
reset(){
|
reset(){
|
||||||
|
this.dataList.pageIndex = 1;
|
||||||
this.dataList.send = ''
|
this.dataList.send = ''
|
||||||
this.getData();
|
this.getData();
|
||||||
this.isSearh = false;
|
this.isSearh = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user