diff --git a/src/views/admin/customer/index.vue b/src/views/admin/customer/index.vue index 74d3226..e9f94d7 100644 --- a/src/views/admin/customer/index.vue +++ b/src/views/admin/customer/index.vue @@ -19,6 +19,17 @@ + + + + + + 导出 @@ -346,6 +357,7 @@ const activecolor = '#3471ff' const { hasAuth } = useAuth() const selectValue = ref([]) + const selectchannel_id = ref('') const showMore = ref(false) const loading = ref(false) const detailDialogVisible = ref(false) @@ -373,6 +385,12 @@ customer_id: '', user_id: '' }) + const channelOptions = ref() + //渠道 + const getgetChannel = async () => { + const res = await CrmService.getChannel() + channelOptions.value = res || [] + } const userOptions = ref() const getuserList = async () => { // 这里调用获取用户列表的接口 @@ -402,12 +420,13 @@ // 表格数据 const tableData = ref([]) onMounted(() => { + getgetChannel() getuserList() gettableList() tagGrouplistfn() }) // tabs 切换联动 - watch([selectValue, keyword], () => { + watch([selectValue, keyword, selectchannel_id], () => { pagination.currentPage = 1 gettableList() }) @@ -425,6 +444,9 @@ if (keyword.value) { params.keyword = keyword.value } + if (selectchannel_id.value) { + params.channel_id = selectchannel_id.value + } // 标签参数,所有选中的标签id组成数组 const selectedTagIds = Object.values(tagActiveMap).filter(Boolean) if (selectedTagIds.length) { diff --git a/src/views/admin/user/index.vue b/src/views/admin/user/index.vue index f4714ec..e3da21a 100644 --- a/src/views/admin/user/index.vue +++ b/src/views/admin/user/index.vue @@ -116,9 +116,22 @@
- - 批量转移 - +
+ + 批量转移 + + + + + + + +
('') const loading = ref(false) const loadingkh = ref(false) @@ -542,6 +557,10 @@ loading.value = false } } + watch([selectchannel_id], () => { + paginationkh.currentPage = 1 + gettableListkh(zyForm.customer_id) + }) const gettableListkh = async (user_id: any) => { loadingkh.value = true try { @@ -551,6 +570,9 @@ size: pageSize, user_id: user_id } + if (selectchannel_id.value) { + params.channel_id = selectchannel_id.value + } const { data, current, size, total } = await manageService.getcrmCustomerList(params) tableDatakh.value = data.map((item: any) => ({ ...item @@ -585,7 +607,14 @@ if (status === 0) return 'status-lost' return '' } + const channelOptions = ref() + //渠道 + const getgetChannel = async () => { + const res = await CrmService.getChannel() + channelOptions.value = res || [] + } const gotransfer = (row: any) => { + getgetChannel() paginationkh.currentPage = 1 paginationkh.pageSize = 10 paginationkh.total = 0