From ed22e02b5b0077108a78ac35d69456861e8395eb Mon Sep 17 00:00:00 2001 From: zyna Date: Mon, 27 Nov 2023 23:44:13 +0800 Subject: [PATCH] =?UTF-8?q?crm=E8=81=94=E7=B3=BB=E4=BA=BAreview=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/crm/contact/ContactForm.vue | 2 +- .../crm/contact/detail/ContactDetails.vue | 4 +- src/views/crm/contact/detail/index.vue | 2 +- src/views/crm/contact/index.vue | 151 +++++------------- 4 files changed, 43 insertions(+), 116 deletions(-) diff --git a/src/views/crm/contact/ContactForm.vue b/src/views/crm/contact/ContactForm.vue index 288539fc..5254bffd 100644 --- a/src/views/crm/contact/ContactForm.vue +++ b/src/views/crm/contact/ContactForm.vue @@ -17,7 +17,7 @@ - + diff --git a/src/views/crm/contact/detail/ContactDetails.vue b/src/views/crm/contact/detail/ContactDetails.vue index de31306e..e6bb5cd5 100644 --- a/src/views/crm/contact/detail/ContactDetails.vue +++ b/src/views/crm/contact/detail/ContactDetails.vue @@ -1,7 +1,7 @@ @@ -15,7 +15,7 @@ {{ contact.name }} - + {{ contact.customerName }} diff --git a/src/views/crm/contact/detail/index.vue b/src/views/crm/contact/detail/index.vue index 5ec47f92..ae8ec5dc 100644 --- a/src/views/crm/contact/detail/index.vue +++ b/src/views/crm/contact/detail/index.vue @@ -46,7 +46,7 @@ - + {{ contact.customerName }} diff --git a/src/views/crm/contact/index.vue b/src/views/crm/contact/index.vue index 8de0a19a..ccfbcadd 100644 --- a/src/views/crm/contact/index.vue +++ b/src/views/crm/contact/index.vue @@ -1,91 +1,54 @@ - + - + - + - + - - + + @@ -190,11 +119,8 @@ +:total="total" v-model:page="queryParams.pageNo" v-model:limit="queryParams.pageSize" + @pagination="getList" /> @@ -207,7 +133,6 @@ import download from '@/utils/download' import * as ContactApi from '@/api/crm/contact' import ContactForm from './ContactForm.vue' import { DICT_TYPE } from '@/utils/dict' -import * as UserApi from '@/api/system/user' import * as CustomerApi from '@/api/crm/customer' defineOptions({ name: 'CrmContact' }) @@ -218,6 +143,7 @@ const { t } = useI18n() // 国际化 const loading = ref(true) // 列表的加载中 const total = ref(0) // 列表的总页数 const list = ref([]) // 列表的数据 +const customerList = ref([]) // 客户列表 const queryParams = reactive({ pageNo: 1, pageSize: 10, @@ -282,7 +208,7 @@ const handleDelete = async (id: number) => { message.success(t('common.delSuccess')) // 刷新列表 await getList() - } catch {} + } catch { } } /** 导出按钮操作 */ @@ -310,5 +236,6 @@ const openDetail = (id: number) => { /** 初始化 **/ onMounted(async () => { await getList() + customerList.value = await CustomerApi.queryAllList() })