管理员学员搜索页码改为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, device:1,
orderField: orderType == 1 ? '' : 'studys', orderField: orderType == 1 ? '' : 'studys',
orderAsc: false, orderAsc: false,
topOrder:true, // topOrder:true,
pageIndex: pageIndex pageIndex: pageIndex
}; };
let isTopList = []; let isTopList = [];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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