yangfeng
2023-08-10 ed2f130164f4145560b4176da6629890c0806ded
src/views/client/contacts/index.vue
@@ -9,6 +9,8 @@
        ref="searchCommonView"
        :query-class-options="queryClassOptions"
        :search-options="searchOptions"
        @searchClick="searchClick"
        @resetClick="resetClick"
      />
      <div class="btn-pager">
        <PublicFunctionBtnView :operates-list="operatesList" :allocation="false" @batchDelete="delClick" />
@@ -105,7 +107,8 @@
        visible: false,
        title: "新建",
        infomation: {}
      }
      },
      search_map: {}
    }
  },
  created() {
@@ -137,7 +140,7 @@
    async getData() {
      this.loading = true
      await getContactList({
        keyword: "",
        search_map: this.search_map,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      })
@@ -168,6 +171,18 @@
          this.loading = false
        })
    },
    // 搜索
    searchClick(val, content) {
      console.log(val, content)
      this.search_map = {
        [val.value]: content
      }
      this.getData()
    },
    resetClick() {
      this.search_map = {}
      this.getData()
    },
    // 新建
    addBtnClick() {
      this.editConfig.visible = true