管理员学员搜索页码改为1

This commit is contained in:
zhaofang
2022-06-02 17:09:08 +08:00
parent 83c7394f61
commit 90ce3fa8f3
10 changed files with 40 additions and 6 deletions

View File

@@ -368,7 +368,7 @@ export default {
device:1,
orderField: orderType == 1 ? '' : 'studys',
orderAsc: false,
topOrder:true,
// topOrder:true,
pageIndex: pageIndex
};
let isTopList = [];

View File

@@ -91,6 +91,7 @@ export default {
methods: {
search(){
this.isSearh = true;
this.pageData.pageIndex = 1;
this.getArticleList()
},
saveSuccess(data){
@@ -127,7 +128,7 @@ export default {
},
reset(){
this.pageData.pageIndex = 1;
this.pageData.keyword = '',
this.pageData.status = ''
this.getArticleList();

View File

@@ -141,6 +141,7 @@ export default {
components: {},
methods: {
getList() {
this.dataList.pageIndex = 1;
this.isSearh = true;
this.getData();
},
@@ -187,6 +188,7 @@ export default {
})
},
reset(){
this.dataList.pageIndex = 1;
this.dataList.send = '',
this.type = 0;
this.getData();

View File

@@ -113,11 +113,13 @@
},
search(){
this.isSearh = true;
this.pageIndex =1;
this.query()
},
reset() {
this.testName = '';
this.status='';
this.pageIndex =1;
this.query();
this.isSearh = false;
},

View File

@@ -94,12 +94,14 @@ export default {
reset(){
this.queryObj.keyWord = '',
this.queryObj.isResolve = ''
this.queryObj.isResolve = '';
this.queryObj.pageIndex =1;
this.getData();
this.isSearh = false;
},
getList() {
this.isSearh = true;
this.queryObj.pageIndex =1;
this.getData();
},
//获取列表数据

View File

@@ -85,6 +85,7 @@ export default {
},
methods: {
getList() {
this.queryObj.pageIndex = 1;
this.isSearh = true;
this.getData();
},
@@ -104,6 +105,7 @@ export default {
});
},
reset(){
this.queryObj.pageIndex = 1;
this.queryObj.keyWord = '';
this.queryObj.isResolve = '';
this.getData();

View File

@@ -149,6 +149,9 @@
},
methods:{
queryData(){
this.qaList.pageIndex = 1;
this.articleList.pageIndex = 1;
this.courseList.pageIndex = 1;
this.isSearh = true;
if (this.tabName == 'qa') {
this.findQa();
@@ -161,6 +164,9 @@
}
},
resData() {
this.qaList.pageIndex = 1;
this.articleList.pageIndex = 1;
this.courseList.pageIndex = 1;
this.keyword = '';
this.isRead = '';
this.queryData();

View File

@@ -170,6 +170,9 @@ export default {
},
methods: {
queryData() {
this.qaList.pageIndex = 1;
this.articleList.pageIndex = 1;
this.courseList.pageIndex = 1;
this.isSearh= true;
if (this.tabName == 'qa') {
this.findQa();
@@ -185,6 +188,9 @@ export default {
resData() {
this.keyword = '';
this.isRead = '';
this.qaList.pageIndex = 1;
this.articleList.pageIndex = 1;
this.courseList.pageIndex = 1;
this.queryData();
this.isSearh= false;
},

View File

@@ -7,7 +7,7 @@
<el-col :span="24">
<el-input clearable placeholder="搜索名称" v-model="keyword"></el-input>
<el-button type="primary" icon="el-icon-search" @click="findList()">搜索</el-button>
<el-button type="primary" icon="el-icon-search" @click="getData()">搜索</el-button>
<el-button type="primary" icon="el-icon-refresh-right" @click="reset">重置</el-button>
</el-col>
<el-col :span="8" v-for="(item,index) in testList" :key="index">
@@ -82,6 +82,10 @@
jumpRouter(item) {
window.open(`${this.webBaseUrl}/course/boeframe?id=${item.id}&type=quizsummary`)
},
getData() {
this.page=1;
this.findList();
},
findList(){
let params={
keyword:this.keyword,
@@ -110,8 +114,9 @@
this.findList()
},
reset(){
this.keyword = ''
this.findList();
this.keyword = '';
this.page=1;
this.findList();
},
getItem(item){
if(item.cover[0].url){

View File

@@ -278,6 +278,10 @@ export default {
},
methods: {
queryData() {
this.qaList.pageIndex = 1;
this.articleList.pageIndex = 1;
this.courseList.pageIndex = 1;
this.dataList.pageIndex = 1;
this.isSearh = true;
if (this.tabName == 'qa') {
this.findQa();
@@ -296,6 +300,10 @@ export default {
}
},
resData() {
this.qaList.pageIndex = 1;
this.articleList.pageIndex = 1;
this.courseList.pageIndex = 1;
this.dataList.pageIndex = 1;
this.keyword = '';
this.isRead = '';
this.courseList.type = '';