zhanghongrui 1 vuosi sitten
vanhempi
commit
6cfd608e4b
1 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  1. 6 2
      pages/statistics/statistics.vue

+ 6 - 2
pages/statistics/statistics.vue

@@ -437,6 +437,7 @@
 
 					</view>
 					<button class="tj-btn" style="margin: 40rpx 90rpx;" @click="serch"> 搜索</button>
+					<button class="sc-btn" style="margin: 40rpx 90rpx;" @click="clear">重置筛选</button>
 				</view>
 			</view>
 			<cc-pullScroolView class="pullScrollView" ref="pullScroll" :pullDown="pullDown" :isDownLoading="true">
@@ -1088,6 +1089,7 @@
 				}
 			},
 			clear() {
+				console.log("111")
 				//清空所有筛选项
 				this.XZQValue3 = '';
 				this.XQValue3 = '';
@@ -1110,7 +1112,8 @@
 					dictValue: '',
 					dictLabel: ''
 				};
-				this.EngineeringName='';
+				this.EngineeringName = '';
+				this.changeTab();
 
 			},
 			changeSelect(item, index) {
@@ -1119,7 +1122,7 @@
 				this.openDict = false;
 				if (this.type == 'gcx') {
 					this.EngineeringValue = item.name
-					this.changeTab();
+
 					this.clear();
 
 				} else if (this.type == 'xzq') {
@@ -1335,6 +1338,7 @@
 				});
 			},
 			changeTab() {
+				console.log("222")
 				this.pageSize = 10;
 				this.totalNum = '';
 				this.pageNum = 1;