parent
f4792d9b08
commit
65e6465a7a
|
@ -223,6 +223,7 @@ const userList = ref<UserApi.UserVO[]>([]) // 用户列表
|
|||
// TODO 芋艿:统一的客户选择面板
|
||||
const customerList = ref<CustomerApi.CustomerVO[]>([]) // 客户列表
|
||||
const allContactList = ref<ContactApi.ContactVO[]>([]) // 所有联系人列表
|
||||
|
||||
/** 打开弹窗 */
|
||||
const open = async (type: string, id?: number) => {
|
||||
dialogVisible.value = true
|
||||
|
@ -244,6 +245,7 @@ const open = async (type: string, id?: number) => {
|
|||
}
|
||||
}
|
||||
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
||||
|
||||
/** 提交表单 */
|
||||
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
|
||||
const submitForm = async () => {
|
||||
|
|
|
@ -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
|
||||
}>()
|
||||
|
|
|
@ -48,10 +48,11 @@ const getContactData = async (id: number) => {
|
|||
loading.value = false
|
||||
}
|
||||
}
|
||||
const logList = ref<OperateLogV2VO[]>([]) // 操作日志列表
|
||||
|
||||
/**
|
||||
* 获取操作日志
|
||||
*/
|
||||
const logList = ref<OperateLogV2VO[]>([]) // 操作日志列表
|
||||
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() // 路由
|
||||
|
|
Loading…
Reference in New Issue