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 9b45d0c0
authored
Nov 12, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
b8b57dfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
22 deletions
vue3-lw-pc/src/api/groupMessage.js
vue3-lw-pc/src/views/communityOperating/oldCustomer/aev.vue
vue3-lw-pc/src/api/groupMessage.js
View file @
9b45d0c
...
...
@@ -20,21 +20,21 @@ export function getCustomerList(params, isTrans) {
url
:
base
+
'/customer/findAllWeCustomerList'
,
method
:
'get'
,
params
,
}).
then
((
res
)
=>
{
}).
then
((
{
data
}
)
=>
{
if
(
isTrans
)
{
let
map
=
{}
let
data
=
[]
for
(
let
i
=
0
;
i
<
res
.
data
?
.
length
;
i
++
)
{
let
_
data
=
[]
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
let
ai
=
data
[
i
]
if
(
!
map
[
ai
.
firstUserId
])
{
data
.
push
({
_
data
.
push
({
userId
:
ai
.
firstUserId
,
customerList
:
[
ai
.
externalUserid
],
})
map
[
ai
.
firstUserId
]
=
ai
}
else
{
for
(
let
j
=
0
;
j
<
data
.
length
;
j
++
)
{
let
dj
=
data
[
j
]
for
(
let
j
=
0
;
j
<
_
data
.
length
;
j
++
)
{
let
dj
=
_
data
[
j
]
if
(
dj
.
userId
==
ai
.
firstUserId
)
{
dj
.
customerList
.
push
(
ai
.
externalUserid
)
break
...
...
@@ -42,9 +42,9 @@ export function getCustomerList(params, isTrans) {
}
}
}
return
{
data
}
return
{
data
:
_data
}
}
else
{
return
res
return
{
data
}
}
})
}
...
...
vue3-lw-pc/src/views/communityOperating/oldCustomer/aev.vue
View file @
9b45d0c
...
...
@@ -149,17 +149,23 @@ export default {
/** 获取详情 */
getDetail
(
id
)
{
this
.
loading
=
true
getDetail
(
id
).
then
(({
data
})
=>
{
this
.
form
=
data
this
.
loading
=
false
})
getDetail
(
id
)
.
then
(({
data
})
=>
{
this
.
form
=
data
})
.
finally
(()
=>
{
this
.
loading
=
false
})
},
sync
()
{
this
.
loading
=
false
sync
(
this
.
id
).
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
loading
=
false
})
sync
(
this
.
id
)
.
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
})
.
finally
(()
=>
{
this
.
loading
=
false
})
},
submit
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
...
...
@@ -179,20 +185,18 @@ export default {
trackState
:
ranges
.
trackState
,
isContain
:
ranges
.
tags
?.
length
?
ranges
.
isContain
:
undefined
,
}
debugger
this
.
loading
=
true
getCustomerList
(
params
)
getCustomerList
(
params
,
1
)
.
then
(({
data
})
=>
{
if
(
data
?.
length
)
{
form
.
senderList
=
data
return
this
.
sendData
(
form
)
this
.
sendData
(
form
)
}
else
{
this
.
msgError
(
'未找到可发送客户!'
)
this
.
loading
=
false
}
})
.
finally
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
})
}
else
{
...
...
@@ -202,10 +206,10 @@ export default {
})
},
sendData
(
form
)
{
this
.
loading
=
true
;(
this
.
id
?
update
:
add
)(
form
)
.
then
(()
=>
{
this
.
msgSuccess
(
'添加成功'
)
this
.
loading
=
false
this
.
$router
.
back
()
})
.
finally
(()
=>
{
...
...
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