Bladeren bron

搜索之后 切出再切入页面 搜索失败bug

liuQiang 2 jaren geleden
bovenliggende
commit
b54d954a9c
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 4 1
      pagesA/fire/fpd_detection/fpd_detection.vue

+ 4 - 1
pagesA/fire/fpd_detection/fpd_detection.vue

@@ -278,6 +278,9 @@
 		},
 		onShow() {
 			// 执行查询
+			// console.log('par',this.queryParams);
+			// this.$set(this.queryParams,'detresult',this.keyword)
+			this.keyword = ''
 			this.actions = []
 			getOrgId({
 				pageNo: this.pageNo,
@@ -296,7 +299,7 @@
 				this.formData.orgName = response.data[0].orgName;
 				this.formData.orgId = response.data[0].dwid;
 				this.tableData = []
-				this.getData();
+				this.search();
 
 			}).catch(err => {
 				this.loading = false