修改文章列表筛选
parent
8809e0d27b
commit
0a2511967b
|
@ -65,6 +65,7 @@
|
|||
total:'',//总数
|
||||
isZanw:true,
|
||||
category_id:'',//栏目ID
|
||||
disease_id:'',//病种id
|
||||
diseaseText:'',//病种文本描述
|
||||
sreenList:[],//筛选项标题
|
||||
sreenIndex:0,
|
||||
|
@ -120,7 +121,7 @@
|
|||
itemList:this.sreenList,
|
||||
success: (res) => {
|
||||
this.dataList = [];
|
||||
this.category_id = this.sreenIdList[res.tapIndex];
|
||||
this.disease_id = this.sreenIdList[res.tapIndex];
|
||||
this.diseaseText = this.sreenList[res.tapIndex];
|
||||
this.searchEv();
|
||||
}
|
||||
|
@ -133,7 +134,7 @@
|
|||
chooseSreen(e){
|
||||
this.sreenIndex = e.detail.value;
|
||||
this.page = 1;
|
||||
this.category_id = this.sreenIdList[this.sreenIndex];
|
||||
this.disease_id = this.sreenIdList[this.sreenIndex];
|
||||
this.diseaseText = this.sreenList[this.sreenIndex];
|
||||
this.searchEv();
|
||||
},
|
||||
|
@ -195,7 +196,7 @@
|
|||
},
|
||||
searchEv(){//搜索事件
|
||||
this.$toolAll.tools.showToast('搜索中...')
|
||||
this.$requst.post('archives/category',{page:this.page,size:this.size,category_id:this.category_id,keyword:this.searchVal}).then(res=>{
|
||||
this.$requst.post('archives/category',{page:this.page,size:this.size,category_id:this.category_id,keyword:this.searchVal,disease_id:this.disease_id}).then(res=>{
|
||||
// console.log('搜索提交:',res);
|
||||
if(res.code==0){
|
||||
uni.hideToast()
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue