Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1f37456c
authored
Nov 14, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
6411b0c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
vue3-lw-pc/src/views/communityOperating/oldCustomer/api.js
vue3-lw-pc/src/views/communityOperating/oldCustomer/api.js
View file @
1f37456
...
@@ -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
]
}))
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment