mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
管理员学员搜索页码改为1
This commit is contained in:
@@ -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 = [];
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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();
|
||||||
},
|
},
|
||||||
//获取列表数据
|
//获取列表数据
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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){
|
||||||
|
|||||||
@@ -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 = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user