lilei 4 éve
szülő
commit
1698f06dbf
1 módosított fájl, 9 hozzáadás és 1 törlés
  1. 9 1
      src/views/power/user/userList.vue

+ 9 - 1
src/views/power/user/userList.vue

@@ -21,7 +21,8 @@
             </a-form-item>
           </a-col>
           <a-col :md="4" :sm="24">
-            <a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
+            <a-button type="primary" @click="$refs.table.refresh(true)" style="margin-right: 10px;">查询</a-button>
+            <a-button type="" @click="reset" id="roleList-reset">重置</a-button>
           </a-col>
         </a-row>
       </a-form>
@@ -158,6 +159,13 @@ export default {
       this.showModal = true
       this.itemData = {}
     },
+    // 重置
+    reset () {
+      this.queryParam.name = ''
+      this.queryParam.phone = ''
+      this.queryParam.loginFlag = ''
+      this.refreshTable()
+    },
     // 重置密码
     resetPassword (row) {
       const _this = this