Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-customer
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 eb3e5c74
authored
Jan 16, 2022
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改bug
1 parent
79522d13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
38 deletions
src/views/customerGroup/index.vue
src/views/customerGroup/index.vue
View file @
eb3e5c7
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<div
class=
"dialogMessage"
>
<div
class=
"dialogMessage"
>
邀请客户
邀请客户
<span
class=
"name"
>
@
{{
businessCard
.
customerName
}}
</span>
<span
class=
"name"
>
@
{{
businessCard
.
customerName
}}
</span>
并
新建
一个外部客户群聊
并
{{
dialogContent
}}
一个外部客户群聊
</div>
</div>
<!--
<div
class=
"dialogImgBox"
>
<!--
<div
class=
"dialogImgBox"
>
<div
class=
"itemsBox"
>
<div
class=
"itemsBox"
>
...
@@ -81,6 +81,7 @@ export default {
...
@@ -81,6 +81,7 @@ export default {
name
:
'index'
,
name
:
'index'
,
data
()
{
data
()
{
return
{
return
{
dialogContent
:
''
,
groupNames
:
''
,
groupNames
:
''
,
showRemark
:
false
,
showRemark
:
false
,
suffix
:
[],
suffix
:
[],
...
@@ -115,40 +116,6 @@ export default {
...
@@ -115,40 +116,6 @@ export default {
deactivated
()
{},
deactivated
()
{},
mounted
()
{
mounted
()
{
this
.
initWx
()
this
.
initWx
()
// groupChat.getDetail({ userId: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ' }).then(res => {
// console.log(res, 'data')
// this.businessCard = res.info
// groupChat.getList({ userId: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ' }).then(res => {
// console.log(res, '444')
// this.groupList = res || []
// this.showRemark = res && res.length ? false : true
// for (var a = 0; a < this.groupList.length; a++) {
// if (!this.businessCard.vehicleInfoList) {
// this.groupList[a].groupNames = this.groupList[a].groupName
// } else {
// if (this.groupList[a].groupNameRule == 0) {
// this.groupList[a].groupNames = this.groupList[a].groupName
// }
// if (this.groupList[a].groupNameRule == 1) {
// if (this.businessCard.vehicleInfoList[0].vehicleTrain) {
// this.groupList[a].groupNames = this.businessCard.vehicleInfoList[0].vehicleTrain + this.businessCard.customerName + this.groupList[a].groupName
// } else {
// this.groupList[a].groupNames = this.businessCard.customerName + this.groupList[a].groupName
// }
// }
// if (this.groupList[a].groupNameRule == 2) {
// if (!this.businessCard.vehicleInfoList[0].vehicleTrain) {
// this.businessCard.vehicleInfoList[0].vehicleTrain = ''
// }
// if (!this.businessCard.vehicleInfoList[0].vehicleNo) {
// this.businessCard.vehicleInfoList[0].vehicleTrain = ''
// }
// this.groupList[a].groupNames = this.businessCard.vehicleInfoList[0].vehicleTrain + this.businessCard.vehicleInfoList[0].vehicleNo + this.groupList[a].groupName
// }
// }
// }
// })
// })
},
},
methods
:
{
methods
:
{
// 创建群聊or进入群聊
// 创建群聊or进入群聊
...
@@ -161,11 +128,14 @@ export default {
...
@@ -161,11 +128,14 @@ export default {
this
.
insertParams
.
templateId
=
this
.
templateId
this
.
insertParams
.
templateId
=
this
.
templateId
//保存新群
//保存新群
groupChat
.
addChat
(
this
.
insertParams
).
then
(
res
=>
{
groupChat
.
addChat
(
this
.
insertParams
).
then
(
res
=>
{
console
.
log
(
res
,
'???'
)
// 刷新列表
groupChat
.
getList
({
externalUserId
:
this
.
userId
}).
then
(
res
=>
{
this
.
groupList
=
res
||
[]
this
.
showRemark
=
res
&&
res
.
length
?
false
:
true
//打开刚创建的群聊
//打开刚创建的群聊
let
chatId
=
this
.
insertParams
.
chatId
let
chatId
=
this
.
insertParams
.
chatId
wxConfig
.
openExistedChatWithMsg
({
chatId
}).
then
(
res
=>
{
wxConfig
.
openExistedChatWithMsg
({
chatId
}).
then
(
res
=>
{
console
.
log
(
this
.
addGroupParams
.
chatId
,
'55555'
)
}
)
})
})
})
})
})
})
...
@@ -187,7 +157,6 @@ export default {
...
@@ -187,7 +157,6 @@ export default {
}
}
console
.
log
(
this
.
welcome
,
'welcome'
)
console
.
log
(
this
.
welcome
,
'welcome'
)
this
.
dialogMessage
=
item
.
userList
this
.
dialogMessage
=
item
.
userList
this
.
show
=
true
let
arr
=
[]
let
arr
=
[]
//获取员工id列表
//获取员工id列表
for
(
var
i
=
0
;
i
<
item
.
userList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
item
.
userList
.
length
;
i
++
)
{
...
@@ -197,10 +166,14 @@ export default {
...
@@ -197,10 +166,14 @@ export default {
this
.
addGroupParams
.
groupName
=
item
.
groupName
this
.
addGroupParams
.
groupName
=
item
.
groupName
if
(
item
.
chatId
==
null
)
{
if
(
item
.
chatId
==
null
)
{
this
.
addGroupParams
.
chatId
=
''
this
.
addGroupParams
.
chatId
=
''
this
.
dialogContent
=
'新建'
}
else
{
}
else
{
this
.
addGroupParams
.
chatId
=
item
.
chatId
this
.
addGroupParams
.
chatId
=
item
.
chatId
this
.
dialogContent
=
'进入'
}
}
this
.
templateId
=
item
.
id
this
.
templateId
=
item
.
id
this
.
show
=
true
// console.log(this.addGroupParams)
// console.log(this.addGroupParams)
},
},
//初始化微信接口
//初始化微信接口
...
...
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