Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-authorize
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 ce7d5e90
authored
Feb 20, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
95ff9116
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
38 deletions
src/components/SelectCustomer/index.vue
src/components/SelectEmployees/index.vue
src/mixins/marketingGroup.js
src/views/friendGroup/friendGroupAdd.vue
src/views/friendGroup/index.vue
src/views/wechatGroup/addWechatGroup.vue
src/components/SelectCustomer/index.vue
View file @
ce7d5e9
...
...
@@ -63,7 +63,7 @@ export default {
data
()
{
return
{
url
:
0
,
initId
:
''
,
initId
:
''
,
crowdVisible
:
false
,
searchForm
:
{
userName
:
''
},
innerTags
:
[],
...
...
@@ -83,12 +83,12 @@ export default {
hasNum
:
false
,
listName
:
'crowdUnitList'
,
// 行数据的key
mutiSelectUniqueKey
:
'
crowd
Id'
,
mutiSelectUniqueKey
:
'
user
Id'
,
// 多选ref的名称
mutiSelectName
:
'crowdlist'
,
tableColumns
:
[
{
label
:
'客户
名
称'
,
label
:
'客户
昵
称'
,
prop
:
'nickname'
},
{
...
...
@@ -105,38 +105,29 @@ export default {
clearTheSelectedList
()
{
this
.
$refs
.
crowdTable
.
clearMutiSelect
()
},
init
(
val
,
userId
)
{
init
(
val
,
userId
)
{
this
.
initId
=
userId
this
.
inner
=
this
.
$common
.
utils
.
deepClone
(
val
)
this
.
innerTags
=
this
.
$common
.
utils
.
deepClone
(
val
)
this
.
crowdVisible
=
true
this
.
searchForm
.
userName
=
''
this
.
$nextTick
(()
=>
{
this
.
$refs
.
crowdTable
.
$refs
.
crowdlistMutiTable
.
clearSelection
()
this
.
$refs
.
crowdTable
.
$refs
.
crowdlistMutiTable
&&
this
.
$refs
.
crowdTable
.
$refs
.
crowdlistMutiTable
.
clearSelection
()
this
.
$refs
.
crowdTable
.
page
.
pageNum
=
1
this
.
getCrowdList
(
{
pageNum
:
1
,
pageSize
:
10
})
this
.
getCrowdList
({
pageNum
:
1
,
pageSize
:
10
})
})
},
getCrowdList
(
page
=
{
pageNum
:
1
,
pageSize
:
10
})
{
async
getCrowdList
(
page
=
{
pageNum
:
1
,
pageSize
:
10
})
{
this
.
$refs
.
crowdTable
.
page
=
page
var
params
=
{
pageSize
:
page
.
pageSize
,
pageNum
:
page
.
pageNum
,
userId
:
this
.
initId
,
userName
:
this
.
searchForm
.
userName
userId
:
this
.
initId
,
userName
:
this
.
searchForm
.
userName
}
this
.
$apis
.
collocation
.
getStaffFriends
(
params
).
then
(
res
=>
{
await
this
.
$apis
.
collocation
.
getStaffFriends
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
&&
res
.
data
this
.
tableTotal
=
res
&&
res
.
count
// console.log(this.inner)
// console.log(this.tableData)
// this.tableData.forEach(item => {
// this.inner.forEach((itm, index) => {
// if (itm.crowdId == item.crowdId) {
// this.rowClick(item)
// }
// })
// })
this
.
recoverySelected
()
})
},
...
...
@@ -183,7 +174,6 @@ export default {
},
recoverySelected
()
{
// 翻页,去掉已选项
console
.
log
(
this
.
$refs
.
crowdTable
.
mutiSelectArr
)
var
selectedData
=
this
.
$refs
.
crowdTable
.
mutiSelectArr
.
crowdlist
var
deleteList
=
[]
this
.
addSelected
()
...
...
src/components/SelectEmployees/index.vue
View file @
ce7d5e9
...
...
@@ -105,7 +105,6 @@ export default {
let
list
=
this
.
tableData
.
filter
(
item
=>
{
return
item
[
'idBefEncryption'
]
==
this
.
selectId
})
console
.
log
(
list
[
0
])
let
selectEmp
=
{
staffName
:
list
[
0
].
staffName
,
staffCloudIdList
:
list
[
0
].
idBefEncryption
,
...
...
src/mixins/marketingGroup.js
View file @
ce7d5e9
...
...
@@ -3,9 +3,10 @@ import * as dayjs from "dayjs";
export
default
{
data
()
{
return
{
selectSenderList
:
null
,
selectSenderList
:
null
,
groupNumber
:
0
,
viewLoading
:
false
,
staffCloudIdListStr
:
''
,
isUpdate
:
true
,
dateOptions
:
{
disabledDate
(
time
)
{
...
...
@@ -37,6 +38,9 @@ export default {
this
.
basicForm
.
crowdList
=
[]
this
.
$refs
.
selectLabel
.
labelTreeRetSelect
=
[]
}
},
'staffCloudIdListStr'
(
newVal
,
oldVal
)
{
this
.
basicForm
.
customerList
=
newVal
==
oldVal
?
this
.
basicForm
.
customerList
:
[]
}
},
methods
:
{
...
...
@@ -46,6 +50,8 @@ export default {
selectSender
(
list
)
{
this
.
selectSenderList
=
list
this
.
basicForm
.
staffCloudIdList
.
push
(
list
.
staffCloudIdList
)
let
staffCloudIdList
=
this
.
basicForm
.
staffCloudIdList
this
.
staffCloudIdListStr
=
staffCloudIdList
&&
staffCloudIdList
.
at
(
-
1
).
toString
()
},
// 客户筛选弹窗
selectCustomer
()
{
...
...
@@ -57,8 +63,7 @@ export default {
message
:
'请选择发送人'
})
}
let
staffCloudIdListStr
=
staffCloudIdList
[
0
].
toString
()
this
.
$refs
.
selectCustomer
.
init
(
customerList
,
staffCloudIdListStr
)
this
.
$refs
.
selectCustomer
.
init
(
customerList
,
this
.
staffCloudIdListStr
)
},
// 返回
handleCancel
(
path
)
{
...
...
@@ -193,7 +198,7 @@ export default {
this
.
isUpdate
=
false
this
.
viewLoading
=
false
}
if
(
managedType
==
2
)
{
if
(
managedType
==
2
)
{
this
.
groupNumber
=
this
.
basicForm
.
customerList
.
length
this
.
isUpdate
=
false
}
...
...
@@ -215,8 +220,8 @@ export default {
},
getBaseInfo
(
managedType
)
{
let
params
=
{}
if
(
managedType
==
1
){
params
=
{
if
(
managedType
==
1
)
{
params
=
{
customerType
:
this
.
basicForm
.
selectType
,
msgName
:
this
.
basicForm
.
groupName
,
msgMerchantId
:
this
.
basicForm
.
selectStore
?
this
.
basicForm
.
selectStore
:
this
.
basicForm
.
taskMerchantId
,
...
...
@@ -234,12 +239,12 @@ export default {
params
.
combineType
=
combineType
.
crowd
}
}
if
(
managedType
==
2
){
if
(
managedType
==
2
)
{
let
customerCloudIdList
=
[]
let
staffCloudIdList
=
[]
this
.
basicForm
.
customerList
.
forEach
(
item
=>
{
customerCloudIdList
.
push
(
item
.
userId
)
})
this
.
basicForm
.
customerList
.
forEach
(
item
=>
{
customerCloudIdList
.
push
(
item
.
userId
)
})
staffCloudIdList
.
push
(
this
.
basicForm
.
staffCloudIdList
[
0
])
params
=
{
customerType
:
3
,
...
...
src/views/friendGroup/friendGroupAdd.vue
View file @
ce7d5e9
...
...
@@ -463,13 +463,13 @@ export default {
if
(
material
.
length
>
1
)
{
materialType
=
2
}
const
{
taskName
,
taskMerchantId
,
sendType
,
managedType
}
=
this
.
basicForm
const
{
taskName
,
taskMerchantId
,
sendType
,
managedType
,
selectType
,
customerList
}
=
this
.
basicForm
const
taskMerchantName
=
managedType
==
1
&&
this
.
optionsMe
.
find
(
item
=>
item
.
msgMerchantId
==
taskMerchantId
).
msgMerchantName
let
peopleParams
=
this
.
getBaseInfo
(
managedType
)
if
(
managedType
==
1
&&
this
.
basicForm
.
selectType
!=
0
)
{
if
(
managedType
==
1
&&
selectType
!=
0
)
{
await
this
.
getTheNumberOfPeople
(
peopleParams
)
}
if
((
this
.
basicForm
.
selectType
!=
0
&&
this
.
groupNumber
==
0
&&
managedType
==
1
)
||
(
managedType
==
2
&&
this
.
basicForm
.
customerList
&&
this
.
basicForm
.
customerList
.
length
==
0
))
{
if
((
selectType
!=
0
&&
this
.
groupNumber
==
0
&&
managedType
==
1
)
||
(
managedType
==
2
&&
selectType
!=
0
&&
customerList
&&
customerList
.
length
==
0
))
{
this
.
$message
({
type
:
'error'
,
message
:
'群发人数为0!'
...
...
src/views/friendGroup/index.vue
View file @
ce7d5e9
...
...
@@ -186,8 +186,8 @@ export default {
this
.
getListData
()
const
merchantList
=
await
this
.
merchantList
()
const
index
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
'merchantName'
)
this
.
searchFormData
[
index
].
optionList
=
merchantList
?
merchantList
.
data
:
[]
this
.
searchFormData
[
index
].
optionList
.
unshift
({
msgMerchantId
:
null
,
msgMerchantName
:
'全部'
})
this
.
searchFormData
[
index
].
optionList
=
merchantList
?
merchantList
:
[]
this
.
searchFormData
[
index
].
optionList
&&
this
.
searchFormData
[
index
].
optionList
.
unshift
({
msgMerchantId
:
null
,
msgMerchantName
:
'全部'
})
},
methods
:
{
...
...
src/views/wechatGroup/addWechatGroup.vue
View file @
ce7d5e9
...
...
@@ -80,7 +80,7 @@
closable
:disable-transitions=
"false"
@
close=
"selectSenderList = null"
>
<i
class=
"el-icon-user-solid"
></i>
{{
selectSenderList
&&
selectSenderList
.
staffName
}}
{{
selectSenderList
&&
selectSenderList
.
staffName
}}
</el-tag>
</div>
</div>
...
...
@@ -380,6 +380,9 @@ export default {
this
.
basicForm
.
customerList
=
[]
//未接入门店客户
//群发内容
this
.
$refs
.
welcome
.
textValue
=
''
this
.
$refs
.
welcome
.
previewList
=
[]
}
},
'selectSenderList'
(
val
)
{
...
...
@@ -447,7 +450,6 @@ export default {
await
this
.
getTheNumberOfPeople
(
params
)
}
console
.
log
(
params
)
if
((
this
.
basicForm
.
managedType
==
1
&&
this
.
groupNumber
==
0
)
||
(
this
.
basicForm
.
managedType
==
2
&&
this
.
basicForm
.
customerList
.
length
==
0
))
{
this
.
$message
({
type
:
'error'
,
...
...
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