From a0f77753210ef5cf02e24cd3125a970345a80852 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 7 Jan 2024 18:19:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20CRM=EF=BC=9Acode=20review=20crm?= =?UTF-8?q?=20=E8=81=94=E7=B3=BB=E4=BA=BA=E6=96=B0=E5=A2=9E=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/crm/contact/ContactForm.vue | 2 ++ src/views/crm/contact/detail/ContactDetailsInfo.vue | 1 + src/views/crm/contact/detail/index.vue | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/crm/contact/ContactForm.vue b/src/views/crm/contact/ContactForm.vue index 5ff5e747..fc691a21 100644 --- a/src/views/crm/contact/ContactForm.vue +++ b/src/views/crm/contact/ContactForm.vue @@ -233,6 +233,7 @@ const userList = ref([]) // 用户列表 // TODO 芋艿:统一的客户选择面板 const customerList = ref([]) // 客户列表 const allContactList = ref([]) // 所有联系人列表 + /** 打开弹窗 */ const open = async (type: string, id?: number) => { dialogVisible.value = true @@ -254,6 +255,7 @@ const open = async (type: string, id?: number) => { } } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 + /** 提交表单 */ const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调 const submitForm = async () => { diff --git a/src/views/crm/contact/detail/ContactDetailsInfo.vue b/src/views/crm/contact/detail/ContactDetailsInfo.vue index 238a1883..c9650d6f 100644 --- a/src/views/crm/contact/detail/ContactDetailsInfo.vue +++ b/src/views/crm/contact/detail/ContactDetailsInfo.vue @@ -70,6 +70,7 @@ import * as ContactApi from '@/api/crm/contact' import { DICT_TYPE } from '@/utils/dict' import { formatDate } from '@/utils/formatTime' + const { contact } = defineProps<{ contact: ContactApi.ContactVO }>() diff --git a/src/views/crm/contact/detail/index.vue b/src/views/crm/contact/detail/index.vue index ea2da034..cb8eea16 100644 --- a/src/views/crm/contact/detail/index.vue +++ b/src/views/crm/contact/detail/index.vue @@ -48,10 +48,11 @@ const getContactData = async (id: number) => { loading.value = false } } -const logList = ref([]) // 操作日志列表 + /** * 获取操作日志 */ +const logList = ref([]) // 操作日志列表 const getOperateLog = async (contactId: number) => { if (!contactId) { return @@ -61,6 +62,7 @@ const getOperateLog = async (contactId: number) => { }) logList.value = data.list } + /** 初始化 */ const { delView } = useTagsViewStore() // 视图操作 const { currentRoute } = useRouter() // 路由