qinhouyu 1 år sedan
förälder
incheckning
46a606b0da
1 ändrade filer med 9 tillägg och 2 borttagningar
  1. 9 2
      pages/toGovernmentList/toGovernmentList.vue

+ 9 - 2
pages/toGovernmentList/toGovernmentList.vue

@@ -111,7 +111,7 @@ export default {
 			return
 		} else {
 			this.listParams.pageNum += 1;
-			this.getList()
+			let result = this.getList(this.listParams.flag,'刷新')
 		}
 	},
 	methods:{
@@ -152,7 +152,14 @@ export default {
 		},
 		search(){
 			this.listParams.titleName = this.searchValue
-			this.getList()
+			this.listParams.pageNum=1
+			listWxs(this.listParams).then(res => {
+				this.qbwd = res.rows
+				this.total = res.total
+				uni.showToast({
+					title:`${toastVal}成功`
+				})
+			})
 		},
 		getList(val = null,toastVal = '加载',clear){
 			if(clear==1){this.listParams.pageNum=1}