| | |
| | | return { |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: {}, |
| | | search_map: {} |
| | | clientId: 0, |
| | | infomation: {} |
| | | } |
| | | } |
| | | } |
| | |
| | | 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() |
| | | }, |
| | |
| | | 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 |
| | | }) |
| | |
| | | // 搜索 |
| | | 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() |
| | | } |
| | | } |