zxl
2025-05-23 5d5b0f7ab0f34019e11901ddcd59cd8b51ea9ff9
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);
        }
      })
    },