Bladeren bron

搜索优化

shish 1 jaar geleden
bovenliggende
commit
138d510be3
1 gewijzigde bestanden met toevoegingen van 9 en 1 verwijderingen
  1. 9 1
      ghsApp/src/admin/home/order.vue

+ 9 - 1
ghsApp/src/admin/home/order.vue

@@ -24,7 +24,7 @@
     <view class="input-wrap_box">
     <view class="input-wrap_box">
 
 
       <view>
       <view>
-        <button class="admin-button-com big blue" style="width:110upx;margin-right:18upx;" @click="">名称</button>
+        <button class="admin-button-com big" style="width:140upx;margin-right:18upx;" @click="clearSearch()">清空搜索</button>
       </view>
       </view>
       <view> <AppSearchModule placeholder="这里搜索" @input="searchFn"/> </view>
       <view> <AppSearchModule placeholder="这里搜索" @input="searchFn"/> </view>
 
 
@@ -345,6 +345,14 @@ export default {
         })
         })
       }
       }
     },
     },
+    clearSearch(){
+      this.customId = 0
+      this.searchTime = ''
+      this.startTime = ''
+      this.endTime = ''
+      this.resetList()
+      this.getOrderList()
+    },
     getCustom(item){
     getCustom(item){
       this.showSearch = false
       this.showSearch = false
       this.customId = item.id
       this.customId = item.id