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() })