mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-19 05:15:08 +08:00
crm-客户:公海抽离,完善跟进
This commit is contained in:
@ -67,13 +67,18 @@ const props = withDefaults(defineProps<{ contactIds: number[] }>(), {
|
||||
contactIds: () => []
|
||||
})
|
||||
const list = ref<ContactApi.ContactVO[]>([] as ContactApi.ContactVO[])
|
||||
const getContactList = async () => {
|
||||
list.value = (await ContactApi.getContactListByIds(
|
||||
props.contactIds
|
||||
)) as unknown as ContactApi.ContactVO[]
|
||||
}
|
||||
watch(
|
||||
() => props.contactIds,
|
||||
(val) => {
|
||||
if (!val || val.length === 0) {
|
||||
return
|
||||
}
|
||||
list.value = ContactApi.getContactListByIds(val) as unknown as ContactApi.ContactVO[]
|
||||
getContactList()
|
||||
}
|
||||
)
|
||||
const emits = defineEmits<{
|
||||
|
Reference in New Issue
Block a user