From 1c81d3108cae9c3957a1bf40111a37dca6866616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Wed, 24 Sep 2025 10:50:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=88=97=E8=A1=A8=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B8=A0=E9=81=93=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/admin/customer/index.vue | 24 +++++++++++++++++++- src/views/admin/user/index.vue | 35 +++++++++++++++++++++++++++--- 2 files changed, 55 insertions(+), 4 deletions(-) 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