Commit 1f37456c by xinla

--no commit message

1 parent 6411b0c4
...@@ -27,9 +27,10 @@ export function getDetail(id) { ...@@ -27,9 +27,10 @@ export function getDetail(id) {
// 统一处理数据结构 // 统一处理数据结构
// weCustomersQuery 为null 转为 undefined 便于前端组件统一赋默认值 // weCustomersQuery 为null 转为 undefined 便于前端组件统一赋默认值
let ranges = (data.weCustomersQuery = data.weCustomersQuery || undefined) let ranges = (data.weCustomersQuery = data.weCustomersQuery || undefined)
let userNames = ranges.userNames?.split(',')
let tagNames = ranges.tagNames?.split(',') if (ranges) {
ranges && let userNames = ranges.userNames?.split(',')
let tagNames = ranges.tagNames?.split(',')
Object.assign(ranges, { Object.assign(ranges, {
isContain: ranges.isContain + '', isContain: ranges.isContain + '',
genders: ranges.genders?.split(','), genders: ranges.genders?.split(','),
...@@ -38,6 +39,7 @@ export function getDetail(id) { ...@@ -38,6 +39,7 @@ export function getDetail(id) {
tags: ranges.tagIds?.split(',')?.map((e, i) => ({ tagId: e, name: tagNames?.[i] })), tags: ranges.tagIds?.split(',')?.map((e, i) => ({ tagId: e, name: tagNames?.[i] })),
dateRange: [ranges.beginTime, ranges.endTime], dateRange: [ranges.beginTime, ranges.endTime],
}) })
}
let names = data.groupNames?.split(',') let names = data.groupNames?.split(',')
data.groups = data.chatIdList?.split(',').map((e, i) => ({ chatId: e, groupName: names?.[i] })) data.groups = data.chatIdList?.split(',').map((e, i) => ({ chatId: e, groupName: names?.[i] }))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!