| | |
| | | }, |
| | | // 请求数据 |
| | | async getData() { |
| | | await getSalesLeadsList() |
| | | await getSalesLeadsList({ |
| | | keyword: "", |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }) |
| | | .then((res) => { |
| | | const list = res.data.list.map((item) => { |
| | | return { |
| | |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | | this.pagerOptions.totalCount = res.data.count |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err) |
| | |
| | | addBtnClick() { |
| | | this.editSalesLeadConfig.visible = true |
| | | this.editSalesLeadConfig.title = "新建" |
| | | this.editSalesLeadConfig.infomation = {} |
| | | this.editSalesLeadConfig.infomation = { businessStatus: "新建" } |
| | | }, |
| | | // 编辑 |
| | | handleClick(row) { |
| | | console.log(row) |
| | | this.editSalesLeadConfig.visible = true |
| | | this.editSalesLeadConfig.title = "编辑" |
| | | this.editSalesLeadConfig.infomation = { ...row } |
| | | this.editSalesLeadConfig.infomation = { ...row, businessStatus: "新建" } |
| | | }, |
| | | // 导入 |
| | | importClitk() { |
| | |
| | | .then((response) => { |
| | | if (response.code === 200) { |
| | | this.$message.success("删除成功") |
| | | this.getUserList() |
| | | this.getData() |
| | | } else { |
| | | this.$message.warning("删除失败") |
| | | } |