yangfeng
2023-10-17 9cfc36e571ea93635e54d93e31fcc091eba9ca9e
src/views/other/commonDialog/SelectContactDialog.vue
@@ -54,7 +54,8 @@
        return {
          editVisible: false,
          title: "",
          infomation: {}
          infomation: {},
          search_map: {}
        }
      }
    }
@@ -70,7 +71,7 @@
      tableList: [],
      searchSelOptions: [],
      loading: false,
      search_map: {},
      // search_map: {},
      tableColumn: [
        { label: "联系人姓名", prop: "name", isContactClick: true, default: true }, // 联系人姓名
        { label: "联系人编号", prop: "number" }, // 联系人编号
@@ -120,9 +121,9 @@
    async getData() {
      this.loading = true
      await getContactList({
        search_map: this.search_map,
        page: 0,
        pageSize: 0
        search_map: this.editConfig.search_map,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      })
        .then((res) => {
          console.log(res)
@@ -134,7 +135,8 @@
                  client_name: item.Client.name
                }
              })
              this.tableList.tableInfomation = list.slice(0, 5) || []
              this.tableList.tableInfomation = list || []
              this.pagerOptions.totalCount = res.data.count
            } else {
              this.tableList.tableInfomation = []
            }
@@ -156,13 +158,13 @@
    // 搜索
    searchClick(val, content) {
      console.log(val, content)
      this.search_map = {
      this.editConfig.search_map = {
        [val.value]: content
      }
      this.getData()
    },
    resetClick() {
      this.search_map = {}
      this.editConfig.search_map = {}
      this.getData()
    }
  }