瀏覽代碼

添加盲票-实物奖品-新增重置按钮、商品列表重置按钮调整

DELL 3 年之前
父節點
當前提交
648be09905
共有 2 個文件被更改,包括 9 次插入1 次删除
  1. 1 1
      src/views/business/goods/index.vue
  2. 8 0
      src/views/business/ticket/components/GoodsAdd.vue

+ 1 - 1
src/views/business/goods/index.vue

@@ -248,7 +248,7 @@ export default {
 
     // 重置
     resetQuery() {
-      this.resetForm("queryForm");
+      this.queryParams = { pageNum: 1, pageSize: 20, orderByColumn: '', isAsc: '',}
       this.getList();
     },
 

+ 8 - 0
src/views/business/ticket/components/GoodsAdd.vue

@@ -46,6 +46,7 @@
         >查询
         </el-button
         >
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery()">重置</el-button>
       </div>
       <el-table
         v-loading="loading"
@@ -179,6 +180,13 @@ export default {
         this.loading = false;
       });
     },
+    //重置
+    resetQuery(){
+      this.goodsTitle = ''
+      this.queryParams = {}
+      this.pageParams.pageNum = 1
+      this.getGoodsList();
+    },
 
     // 选中商品
     handleSelectionGoods(e) {