src/views/other/commonDialog/SelectContactDialog.vue
@@ -54,8 +54,8 @@
        return {
          editVisible: false,
          title: "",
          infomation: {},
          search_map: {}
          clientId: 0,
          infomation: {}
        }
      }
    }
@@ -71,17 +71,20 @@
      tableList: [],
      searchSelOptions: [],
      loading: false,
      // search_map: {},
      search_map: {},
      tableColumn: [
        { label: "联系人姓名", prop: "name", isContactClick: true, default: true }, // 联系人姓名
        { label: "联系人编号", prop: "number" }, // 联系人编号
        // { label: "联系人编号", prop: "number" }, // 联系人编号
        { label: "客户名称", prop: "client_name" }, // 客户名称
        { label: "手机", prop: "phone" } // 手机号码
      ],
      showCol: ["联系人姓名", "联系人编号", "客户名称", "手机"]
      showCol: ["联系人姓名",  "客户名称", "手机"]
    }
  },
  created() {
    this.search_map = {
      client_id: this.editConfig.clientId
    }
    this.setTable()
    this.getData()
  },
@@ -121,7 +124,7 @@
    async getData() {
      this.loading = true
      await getContactList({
        search_map: this.editConfig.search_map,
        search_map: this.search_map,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      })
@@ -158,13 +161,13 @@
    // 搜索
    searchClick(val, content) {
      console.log(val, content)
      this.editConfig.search_map = {
      this.search_map = {
        [val.value]: content
      }
      this.getData()
    },
    resetClick() {
      this.editConfig.search_map = {}
      this.search_map = {}
      this.getData()
    }
  }