瀏覽代碼

Merge branch 'developer' of http://git.caimei365.com/caimei365/caimei365-manager-ui into developerC

xiebaomin 1 年之前
父節點
當前提交
e706cc9cf2
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/views/user/consult/list.vue

+ 6 - 6
src/views/user/consult/list.vue

@@ -22,7 +22,7 @@
           placeholder="机构名称"
           clearable
           @keyup.enter.native="getList"
-          @clear="getList"
+          @clear="handleClear"
         />
       </div>
       <div class="filter-control">
@@ -442,15 +442,16 @@ export default {
     handleInfo() {
       if (this.$route.query.clubId) {
         this.listQuery.clubId = this.$route.query.clubId
-      } else {
-        this.listQuery.clubId = ''
       }
       if (this.$route.query.clubName) {
         this.listQuery.clubName = this.$route.query.clubName
-      } else {
-        this.listQuery.clubName = ''
       }
     },
+    // 清除机构名称
+    handleClear() {
+      this.listQuery.clubId = ''
+      this.getList()
+    },
     // 选择时间
     handleDatePick() {
       if (this.time && this.time.length > 0) {
@@ -465,7 +466,6 @@ export default {
     },
     // 获取行为记录列表
     getList() {
-      this.handleInfo()
       this.listQuery.pageNum = 1
       this.getRemarksRegistList()
     },