📖 CRM:code review crm 联系人新增操作日志

(cherry picked from commit a0f7775321)
pull/420/head
YunaiV 2024-01-07 18:19:15 +08:00 committed by shizhong
parent f4792d9b08
commit 65e6465a7a
3 changed files with 6 additions and 1 deletions

View File

@ -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 () => {

View File

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

View File

@ -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() //