|
|
@@ -754,8 +754,7 @@
|
|
|
<script setup>
|
|
|
import { ref, computed } from 'vue'
|
|
|
import PreviewCustomerModal from './PreviewCustomerModal.vue'
|
|
|
- import { getSopList, addMarketing, editMarketing, addSop, editSop } from '@/api/marketing'
|
|
|
- import { getCustomerList } from '@/api/customer'
|
|
|
+ import { getSopList, addMarketing, editMarketing, addSop, editSop, getTradeCustomer } from '@/api/marketing'
|
|
|
import { getListTree } from '@/api/layout'
|
|
|
import { getUserEmails } from '@/api/emails'
|
|
|
import { region } from '@/utils/region';
|
|
|
@@ -1150,7 +1149,7 @@
|
|
|
const customerList = ref([])
|
|
|
const sourceData = ref({})
|
|
|
const getCustomerData = () => {
|
|
|
- getCustomerList({ pageIndex: 1, pageSize: 10000, ...customerParams.value }).then(res => {
|
|
|
+ getTradeCustomer({ pageIndex: 1, pageSize: 10000, ...customerParams.value }).then(res => {
|
|
|
customerList.value = res.result.records || []
|
|
|
newCampaign.value.filters.selectedTags = customerList.value.map(item => item.customerName)
|
|
|
sourceData.value = {}
|