mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
排序
This commit is contained in:
@@ -310,7 +310,7 @@ export default {
|
|||||||
if(id=="answers"){
|
if(id=="answers"){
|
||||||
this.styleControl = 2
|
this.styleControl = 2
|
||||||
}
|
}
|
||||||
this.queryConditions.orderField = '';
|
this.queryConditions.orderField = id;
|
||||||
this.queryConditions.pageIndex = 1
|
this.queryConditions.pageIndex = 1
|
||||||
this.qaList = [];
|
this.qaList = [];
|
||||||
this.getQaData(true);
|
this.getQaData(true);
|
||||||
@@ -359,7 +359,7 @@ export default {
|
|||||||
this.qaList=[];
|
this.qaList=[];
|
||||||
this.queryConditions.pageIndex=1;
|
this.queryConditions.pageIndex=1;
|
||||||
}
|
}
|
||||||
this.queryConditions.orderField=this.styleControl==1? 'id':'answers';
|
this.queryConditions.orderField=this.styleControl==1? 'sysCreateTime':'answers';
|
||||||
this.moreState = 2;
|
this.moreState = 2;
|
||||||
await apiQa
|
await apiQa
|
||||||
.potallist(this.queryConditions)
|
.potallist(this.queryConditions)
|
||||||
|
|||||||
Reference in New Issue
Block a user