shish il y a 1 an
Parent
commit
138d510be3
1 fichiers modifiés avec 9 ajouts et 1 suppressions
  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>
-        <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> <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){
       this.showSearch = false
       this.customId = item.id