|
@@ -22,7 +22,16 @@ const targetingData = [
|
|
{ key: 'lastRechargeHour', name: '最近充值时间距今(小时)' },
|
|
{ key: 'lastRechargeHour', name: '最近充值时间距今(小时)' },
|
|
{ key: 'lastReadTime', name: '最近阅读时间' },
|
|
{ key: 'lastReadTime', name: '最近阅读时间' },
|
|
{ key: 'lastReadHour', name: '最近阅读至今(小时)' },
|
|
{ key: 'lastReadHour', name: '最近阅读至今(小时)' },
|
|
- { key: 'opers', name: '手机系统' }
|
|
|
|
|
|
+ { key: 'opers', name: '手机系统' },
|
|
|
|
+ { key: 'firstAddGroupTime', name: '首次拉群时间' },
|
|
|
|
+ { key: 'lastAddGroupTime', name: '最近拉群时间' },
|
|
|
|
+ { key: 'lastExitTime', name: '最近退群时间' },
|
|
|
|
+ { key: 'firstAddGroupHourRange', name: '首次拉群(最近N小时)' },
|
|
|
|
+ { key: 'lastAddGroupHourRange', name: '最近拉群(最近N小时)' },
|
|
|
|
+ { key: 'lastExitHourRange', name: '最近退群(最近N小时)' },
|
|
|
|
+ { key: 'addGroupCount', name: '进群次数' },
|
|
|
|
+ { key: 'exitGroupCount', name: '退群次数' },
|
|
|
|
+ { key: 'retentionGroupCount', name: '留存群聊数' }
|
|
]
|
|
]
|
|
|
|
|
|
const targetingGroupData = [
|
|
const targetingGroupData = [
|
|
@@ -102,6 +111,42 @@ interface ContentProps {
|
|
groupChatUserMin?: number,
|
|
groupChatUserMin?: number,
|
|
groupChatUserMax?: number
|
|
groupChatUserMax?: number
|
|
}
|
|
}
|
|
|
|
+ firstAddGroupTime?: { // 首次拉群时间
|
|
|
|
+ firstAddGroupTimeMin?: string,
|
|
|
|
+ firstAddGroupTimeMax?: string
|
|
|
|
+ }
|
|
|
|
+ lastAddGroupTime?: { // 最近拉群时间
|
|
|
|
+ lastAddGroupTimeMin?: string,
|
|
|
|
+ lastAddGroupTimeMax?: string
|
|
|
|
+ }
|
|
|
|
+ lastExitTime?: { // 最近退群时间
|
|
|
|
+ lastExitTimeMin?: string,
|
|
|
|
+ lastExitTimeMax?: string
|
|
|
|
+ }
|
|
|
|
+ firstAddGroupHourRange?: { // 首次拉群(最近N小时)
|
|
|
|
+ firstAddGroupHourRangeMin?: string,
|
|
|
|
+ firstAddGroupHourRangeMax?: string
|
|
|
|
+ }
|
|
|
|
+ lastAddGroupHourRange?: { // 最近拉群(最近N小时)
|
|
|
|
+ lastAddGroupHourRangeMin?: string,
|
|
|
|
+ lastAddGroupHourRangeMax?: string
|
|
|
|
+ }
|
|
|
|
+ lastExitHourRange?: { // 最近退群(最近N小时)
|
|
|
|
+ lastExitHourRangeMin?: string,
|
|
|
|
+ lastExitHourRangeMax?: string
|
|
|
|
+ }
|
|
|
|
+ addGroupCount?: { // 进群次数
|
|
|
|
+ addGroupCountMin?: string,
|
|
|
|
+ addGroupCountMax?: string
|
|
|
|
+ }
|
|
|
|
+ exitGroupCount?: { // 退群次数
|
|
|
|
+ exitGroupCountMin?: string,
|
|
|
|
+ exitGroupCountMax?: string
|
|
|
|
+ }
|
|
|
|
+ retentionGroupCount?: { // 留存群聊数
|
|
|
|
+ retentionGroupCountMin?: string,
|
|
|
|
+ retentionGroupCountMax?: string
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/** 重置筛选用户数据 */
|
|
/** 重置筛选用户数据 */
|
|
@@ -110,7 +155,10 @@ export const resetFilterUserData = (data: { [x: string]: any }): ContentProps =>
|
|
beginTime, endTime, rechargeCountMin, rechargeCountMax, rechargeMoneyMin, rechargeMoneyMax, lastRechargeTimeMin, lastRechargeTimeMax,
|
|
beginTime, endTime, rechargeCountMin, rechargeCountMax, rechargeMoneyMin, rechargeMoneyMax, lastRechargeTimeMin, lastRechargeTimeMax,
|
|
firstRechargeMoneyMin, firstRechargeMoneyMax, rechargeMoneyMaxMin, rechargeMoneyMaxMax, subHourMin, subHourMax, subDayMin, subDayMax,
|
|
firstRechargeMoneyMin, firstRechargeMoneyMax, rechargeMoneyMaxMin, rechargeMoneyMaxMax, subHourMin, subHourMax, subDayMin, subDayMax,
|
|
lastRechargeHourMin, lastRechargeHourMax, lastReadHourMin, lastReadHourMax, groupChatNames, groupChatBeginTime, groupChatEndTime, groupChatHourMin, groupChatHourMax,
|
|
lastRechargeHourMin, lastRechargeHourMax, lastReadHourMin, lastReadHourMax, groupChatNames, groupChatBeginTime, groupChatEndTime, groupChatHourMin, groupChatHourMax,
|
|
- groupChatUserMin, groupChatUserMax, lastReadTimeMin, lastReadTimeMax,
|
|
|
|
|
|
+ groupChatUserMin, groupChatUserMax, lastReadTimeMin, lastReadTimeMax, firstAddGroupTimeMin, firstAddGroupTimeMax,
|
|
|
|
+ lastAddGroupTimeMin, lastAddGroupTimeMax, lastExitTimeMin, lastExitTimeMax, firstAddGroupHourRangeMin, firstAddGroupHourRangeMax,
|
|
|
|
+ lastAddGroupHourRangeMin, lastAddGroupHourRangeMax, lastExitHourRangeMin, lastExitHourRangeMax, addGroupCountMin, addGroupCountMax,
|
|
|
|
+ exitGroupCountMin, exitGroupCountMax, retentionGroupCountMin, retentionGroupCountMax,
|
|
...params
|
|
...params
|
|
} = data
|
|
} = data
|
|
|
|
|
|
@@ -160,6 +208,33 @@ export const resetFilterUserData = (data: { [x: string]: any }): ContentProps =>
|
|
if (groupChatUserMin || groupChatUserMax) {
|
|
if (groupChatUserMin || groupChatUserMax) {
|
|
newData.groupChatUser = { groupChatUserMin, groupChatUserMax }
|
|
newData.groupChatUser = { groupChatUserMin, groupChatUserMax }
|
|
}
|
|
}
|
|
|
|
+ if (firstAddGroupTimeMin || firstAddGroupTimeMax) {
|
|
|
|
+ newData.firstAddGroupTime = { firstAddGroupTimeMin, firstAddGroupTimeMax }
|
|
|
|
+ }
|
|
|
|
+ if (lastAddGroupTimeMin || lastAddGroupTimeMax) {
|
|
|
|
+ newData.lastAddGroupTime = { lastAddGroupTimeMin, lastAddGroupTimeMax }
|
|
|
|
+ }
|
|
|
|
+ if (lastExitTimeMin || lastExitTimeMax) {
|
|
|
|
+ newData.lastExitTime = { lastExitTimeMin, lastExitTimeMax }
|
|
|
|
+ }
|
|
|
|
+ if (firstAddGroupHourRangeMin || firstAddGroupHourRangeMax) {
|
|
|
|
+ newData.firstAddGroupHourRange = { firstAddGroupHourRangeMin, firstAddGroupHourRangeMax }
|
|
|
|
+ }
|
|
|
|
+ if (lastAddGroupHourRangeMin || lastAddGroupHourRangeMax) {
|
|
|
|
+ newData.lastAddGroupHourRange = { lastAddGroupHourRangeMin, lastAddGroupHourRangeMax }
|
|
|
|
+ }
|
|
|
|
+ if (lastExitHourRangeMin || lastExitHourRangeMax) {
|
|
|
|
+ newData.lastExitHourRange = { lastExitHourRangeMin, lastExitHourRangeMax }
|
|
|
|
+ }
|
|
|
|
+ if (addGroupCountMin || addGroupCountMax) {
|
|
|
|
+ newData.addGroupCount = { addGroupCountMin, addGroupCountMax }
|
|
|
|
+ }
|
|
|
|
+ if (exitGroupCountMin || exitGroupCountMax) {
|
|
|
|
+ newData.exitGroupCount = { exitGroupCountMin, exitGroupCountMax }
|
|
|
|
+ }
|
|
|
|
+ if (retentionGroupCountMin || retentionGroupCountMax) {
|
|
|
|
+ newData.retentionGroupCount = { retentionGroupCountMin, retentionGroupCountMax }
|
|
|
|
+ }
|
|
return newData
|
|
return newData
|
|
}
|
|
}
|
|
|
|
|
|
@@ -190,7 +265,7 @@ interface Props {
|
|
const FilterUserText = ({ data, configName, configType = 'USER_GROUP', bookCityList, bookPlatForm, bookList }: Props): string => {
|
|
const FilterUserText = ({ data, configName, configType = 'USER_GROUP', bookCityList, bookPlatForm, bookList }: Props): string => {
|
|
|
|
|
|
|
|
|
|
- const content: any = getContent(data, configType)
|
|
|
|
|
|
+ const content: ContentProps = getContent(data, configType)
|
|
|
|
|
|
return (configName ? configName + '\n' : '') +
|
|
return (configName ? configName + '\n' : '') +
|
|
(content?.msgTagIds ? `智能标签:${content?.msgTagIds?.['business'] ? `业务:${businessPlanData.find(i => i.value === content?.msgTagIds['business'])?.label}` : ''}--${content?.msgTagIds?.['bookCity'] ? `书城:${bookPlatForm.find(i => i.id === content?.msgTagIds['bookCity'])?.platformName}` : ''}--${content?.msgTagIds?.['product'] ? `产品:${bookList.find(i => i.id === content?.msgTagIds['product'])?.bookName}\n` : ''}` : '') +
|
|
(content?.msgTagIds ? `智能标签:${content?.msgTagIds?.['business'] ? `业务:${businessPlanData.find(i => i.value === content?.msgTagIds['business'])?.label}` : ''}--${content?.msgTagIds?.['bookCity'] ? `书城:${bookPlatForm.find(i => i.id === content?.msgTagIds['bookCity'])?.platformName}` : ''}--${content?.msgTagIds?.['product'] ? `产品:${bookList.find(i => i.id === content?.msgTagIds['product'])?.bookName}\n` : ''}` : '') +
|
|
@@ -218,6 +293,15 @@ const FilterUserText = ({ data, configName, configType = 'USER_GROUP', bookCityL
|
|
(content?.groupChatTime ? `群创建时间:${content?.groupChatTime?.groupChatBeginTime ? content?.groupChatTime?.groupChatBeginTime + '小时' : '不限'} - ${content?.groupChatTime?.groupChatEndTime ? content?.groupChatTime?.groupChatEndTime + '小时' : '不限'}\n` : '') +
|
|
(content?.groupChatTime ? `群创建时间:${content?.groupChatTime?.groupChatBeginTime ? content?.groupChatTime?.groupChatBeginTime + '小时' : '不限'} - ${content?.groupChatTime?.groupChatEndTime ? content?.groupChatTime?.groupChatEndTime + '小时' : '不限'}\n` : '') +
|
|
(content?.groupChatHour ? `群创建时长:${content?.groupChatHour?.groupChatHourMin ? content?.groupChatHour?.groupChatHourMin : '不限'} - ${content?.groupChatHour?.groupChatHourMax ? content?.groupChatHour?.groupChatHourMax : '不限'}\n` : '') +
|
|
(content?.groupChatHour ? `群创建时长:${content?.groupChatHour?.groupChatHourMin ? content?.groupChatHour?.groupChatHourMin : '不限'} - ${content?.groupChatHour?.groupChatHourMax ? content?.groupChatHour?.groupChatHourMax : '不限'}\n` : '') +
|
|
(content?.groupChatUser ? `群人数:${content?.groupChatUser?.groupChatUserMin ? content?.groupChatUser?.groupChatUserMin : '不限'} - ${content?.groupChatUser?.groupChatUserMax ? content?.groupChatUser?.groupChatUserMax : '不限'}\n` : '') +
|
|
(content?.groupChatUser ? `群人数:${content?.groupChatUser?.groupChatUserMin ? content?.groupChatUser?.groupChatUserMin : '不限'} - ${content?.groupChatUser?.groupChatUserMax ? content?.groupChatUser?.groupChatUserMax : '不限'}\n` : '') +
|
|
|
|
+ (content?.firstAddGroupTime ? `首次拉群时间:${content?.firstAddGroupTime?.firstAddGroupTimeMin ? content?.firstAddGroupTime?.firstAddGroupTimeMin : '不限'} - ${content?.firstAddGroupTime?.firstAddGroupTimeMax ? content?.firstAddGroupTime?.firstAddGroupTimeMax : '不限'}\n` : '') +
|
|
|
|
+ (content?.lastAddGroupTime ? `最近拉群时间:${content?.lastAddGroupTime?.lastAddGroupTimeMin ? content?.lastAddGroupTime?.lastAddGroupTimeMin : '不限'} - ${content?.lastAddGroupTime?.lastAddGroupTimeMax ? content?.lastAddGroupTime?.lastAddGroupTimeMax : '不限'}\n` : '') +
|
|
|
|
+ (content?.lastExitTime ? `最近退群时间:${content?.lastExitTime?.lastExitTimeMin ? content?.lastExitTime?.lastExitTimeMin : '不限'} - ${content?.lastExitTime?.lastExitTimeMax ? content?.lastExitTime?.lastExitTimeMax : '不限'}\n` : '') +
|
|
|
|
+ (content?.firstAddGroupHourRange ? `首次拉群(最近N小时):${content?.firstAddGroupHourRange?.firstAddGroupHourRangeMin ? content?.firstAddGroupHourRange?.firstAddGroupHourRangeMin : '不限'} - ${content?.firstAddGroupHourRange?.firstAddGroupHourRangeMax ? content?.firstAddGroupHourRange?.firstAddGroupHourRangeMax : '不限'}\n` : '') +
|
|
|
|
+ (content?.lastAddGroupHourRange ? `最近拉群(最近N小时):${content?.lastAddGroupHourRange?.lastAddGroupHourRangeMin ? content?.lastAddGroupHourRange?.lastAddGroupHourRangeMin : '不限'} - ${content?.lastAddGroupHourRange?.lastAddGroupHourRangeMax ? content?.lastAddGroupHourRange?.lastAddGroupHourRangeMax : '不限'}\n` : '') +
|
|
|
|
+ (content?.lastExitHourRange ? `最近退群(最近N小时):${content?.lastExitHourRange?.lastExitHourRangeMin ? content?.lastExitHourRange?.lastExitHourRangeMin : '不限'} - ${content?.lastExitHourRange?.lastExitHourRangeMax ? content?.lastExitHourRange?.lastExitHourRangeMax : '不限'}\n` : '') +
|
|
|
|
+ (content?.addGroupCount ? `进群次数:${content?.addGroupCount?.addGroupCountMin ? content?.addGroupCount?.addGroupCountMin : '不限'} - ${content?.addGroupCount?.addGroupCountMax ? content?.addGroupCount?.addGroupCountMax : '不限'}\n` : '') +
|
|
|
|
+ (content?.exitGroupCount ? `退群次数:${content?.exitGroupCount?.exitGroupCountMin ? content?.exitGroupCount?.exitGroupCountMin : '不限'} - ${content?.exitGroupCount?.exitGroupCountMax ? content?.exitGroupCount?.exitGroupCountMax : '不限'}\n` : '') +
|
|
|
|
+ (content?.retentionGroupCount ? `留存群聊数:${content?.retentionGroupCount?.retentionGroupCountMin ? content?.retentionGroupCount?.retentionGroupCountMin : '不限'} - ${content?.retentionGroupCount?.retentionGroupCountMax ? content?.retentionGroupCount?.retentionGroupCountMax : '不限'}\n` : '') +
|
|
(content?.unlimited ? `不限:${content?.unlimited}` : '')
|
|
(content?.unlimited ? `不限:${content?.unlimited}` : '')
|
|
}
|
|
}
|
|
|
|
|