From 72454c3e8f686c1325fb265d59b8b63251bd17e2 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期五, 16 五月 2025 16:14:14 +0800
Subject: [PATCH] 黑名单列表(添加移出)

---
 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