From 761351794466a2b0d7f4890648851546ee4f6d59 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 22 五月 2025 11:29:27 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev
---
manager/src/views/customer/index.vue | 30 ++++++++++++++++--------------
1 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/manager/src/views/customer/index.vue b/manager/src/views/customer/index.vue
index 0076c30..40112e7 100644
--- a/manager/src/views/customer/index.vue
+++ b/manager/src/views/customer/index.vue
@@ -126,6 +126,7 @@
<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",
@@ -243,7 +244,13 @@
},
//鍟嗗涓嬫媺妗嗘暟鎹�
selectOptions:[],
- storeSelectLoading: false
+ storeSelectLoading: false,
+
+ //榛戝悕鍗曡姹傚璞�
+ blackParam:{
+ storeId:'',
+ userId:'',
+ }
}
},
@@ -309,17 +316,6 @@
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()
@@ -348,8 +344,14 @@
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);
+ }
+ })
},
--
Gitblit v1.8.0