|
|
@@ -66,6 +66,7 @@ const Contact = props => {
|
|
|
}, [personTags, teamTags, personTagColorMap, teamTagColorMap])
|
|
|
|
|
|
const toolbarOptionsChange = (type, ids) => {
|
|
|
+ console.log('type', type, 'ids', ids)
|
|
|
setTagState({ ...tagState, [type]: ids })
|
|
|
}
|
|
|
|
|
|
@@ -438,10 +439,10 @@ const Contact = props => {
|
|
|
}
|
|
|
if (tagState.tagCooperationIds.length) {
|
|
|
await apiBatchLink({
|
|
|
- tagIds: tagState.tagIds,
|
|
|
+ tagIds: tagState.tagCooperationIds,
|
|
|
dataIds: clientIds,
|
|
|
dataType: TagDataTypeEnum.CONTACT,
|
|
|
- tagType: TagTypeEnum.PERSONTAG
|
|
|
+ tagType: TagTypeEnum.TEAMTAG
|
|
|
})
|
|
|
}
|
|
|
refreshData()
|