yangfeng
2023-08-25 f417dc0a44d225d4ed19bcb5207250eb1b669455
src/views/client/contacts/index.vue
@@ -122,7 +122,9 @@
    if (!this.isDetail) {
      this.search_map = {}
    } else {
      this.search_map = { ...this.addConfig }
      this.search_map = {
        [this.addConfig.id_name]: this.addConfig.client_name
      }
    }
    this.getData(this.search_map)
  },
@@ -137,7 +139,7 @@
          { label: "职务", prop: "position", min: 120 }, // 职务
          { label: "手机", prop: "phone", min: 100 }, // 手机号码
          { label: "销售负责人", prop: "member_name", min: 120 }, // 销售负责人
          { label: "首要联系人", prop: "is_first", min: 90 } // 首要联系人
          { label: "首要联系人", prop: "is_first", isFirst: true, min: 90 } // 首要联系人
        ]
      }
      this.searchOptions = []
@@ -163,7 +165,6 @@
                return {
                  ...item,
                  client_name: item.Client.name,
                  is_first: item.is_first ? "是" : "否",
                  client_id: item.Client.id,
                  member_name: item.member.username
                }
@@ -200,6 +201,7 @@
    addBtnClick() {
      this.editConfig.visible = true
      this.editConfig.title = "新建"
      console.log(this.addIdConfig)
      this.editConfig.infomation = { ...this.addConfig }
    },
    // 编辑
@@ -248,7 +250,7 @@
    },
    // 客户名称详情
    selClientClick(row) {
      // console.log(row)
      console.log(row)
      this.clientDeail.visible = true
      this.clientDeail.infomation = {
        ...row.Client,