| | |
| | | <script> |
| | | import JsonExcel from "vue-json-excel"; |
| | | import {getCustomerList,addCustomerTag,saveCustomerTagById,getTagList,getStoreSelectOptions} from "@/api/customer"; |
| | | import {addCustomerBlackByPC} from "@/api/customer-black.js" |
| | | |
| | | export default { |
| | | name:"customer", |
| | |
| | | }, |
| | | //商家下拉框数据 |
| | | selectOptions:[], |
| | | storeSelectLoading: false |
| | | storeSelectLoading: false, |
| | | |
| | | //黑名单请求对象 |
| | | blackParam:{ |
| | | storeId:'', |
| | | userId:'', |
| | | } |
| | | |
| | | } |
| | | }, |
| | |
| | | this.searchForm.pageSize = 10; |
| | | this.getCustomerList(); |
| | | }, |
| | | // 新增或修改 |
| | | // saveOrUpdate() { |
| | | // this.$refs.form.validate(valid => { |
| | | // if (valid) { |
| | | // this.submitLoading = true |
| | | // // 新增 |
| | | // console.log(this.tagForm) |
| | | // |
| | | // } |
| | | // }); |
| | | // }, |
| | | handleSelectChange(newVal){ |
| | | console.log(newVal) |
| | | this.getCustomerList() |
| | |
| | | this.searchForm.pageSize = v; |
| | | this.getCustomerList() |
| | | }, |
| | | joinBlack(){ |
| | | |
| | | joinBlack(row){ |
| | | this.blackParam.storeId = row.storeId; |
| | | this.blackParam.userId = row.id; |
| | | addCustomerBlackByPC(this.blackParam).then(res =>{ |
| | | if (res.code === 200){ |
| | | this.$Message.success(res.msg); |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |