Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 d2f13e9d
authored
Mar 21, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'yangm_dev_2.0.0' into 'v2.0.0'
fixed See merge request
!26
2 parents
4bd49c70
c71062a8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
19 deletions
src/views/friendGroup/components/preview.vue
src/views/friendGroup/friendGroupAdd.vue
src/views/friendGroup/index.vue
src/views/friendGroup/components/preview.vue
View file @
d2f13e9
<
template
>
<
template
>
<div
class=
"img-bg"
>
<div
class=
"img-bg"
>
<div
class=
"preview-content"
>
<div
class=
"preview-content"
>
<div
class=
"preview-info"
>
<div
class=
"preview-info"
v-show=
"previewList.length"
>
<img
class=
"avatar"
src=
"@/assets/guestCustom/default-customer.png"
alt
/>
<img
class=
"avatar"
src=
"@/assets/guestCustom/default-customer.png"
alt
/>
<div
class=
"preview-box"
v-for=
"item in previewList"
:key=
"item.id"
>
<div
class=
"preview-box"
v-for=
"item in previewList"
:key=
"item.id"
>
<div
class=
"preview-box-desc"
>
<div
class=
"preview-box-desc"
>
...
...
src/views/friendGroup/friendGroupAdd.vue
View file @
d2f13e9
...
@@ -24,6 +24,15 @@
...
@@ -24,6 +24,15 @@
</el-tag>
</el-tag>
</div>
</div>
</div>
</div>
<div
class=
"filter-footer"
>
<!--
<span>
将消息发送给客户符合条件的客户
</span>
-->
<div
class=
"filter-number"
>
查看客户数
<el-button
type=
"text"
v-show=
"isUpdate"
:loading=
"viewLoading"
@
click=
"viewMembers"
>
查看
</el-button>
<!--
<span
v-show=
"isUpdate"
@
click=
"viewMembers"
>
查看
</span>
-->
<span
v-show=
"!isUpdate"
>
{{
groupNumber
}}
</span>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<!-- 编辑入群欢迎语 -->
<!-- 编辑入群欢迎语 -->
...
@@ -230,6 +239,41 @@ export default {
...
@@ -230,6 +239,41 @@ export default {
this
.
$router
.
push
(
'/friendGroup/index'
)
this
.
$router
.
push
(
'/friendGroup/index'
)
}
}
},
},
// 查看群发人数
viewMembers
()
{
if
(
!
this
.
basicForm
.
userList
)
{
this
.
$message
({
type
:
'error'
,
message
:
'请选择发表成员'
})
return
}
this
.
viewLoading
=
true
const
userList
=
this
.
basicForm
.
userList
.
map
(
item
=>
{
return
{
staffId
:
item
.
staffId
,
staffName
:
item
.
staffName
,
masterStatus
:
item
.
masterStatus
,
follow
:
item
.
follow
}
})
let
params
=
{
userList
}
this
.
$apis
.
friendGroup
.
momentCount
(
params
)
.
then
(
res
=>
{
// if (res) {
this
.
viewLoading
=
false
this
.
groupNumber
=
res
// }
this
.
isUpdate
=
false
})
.
catch
(
err
=>
{
this
.
viewLoading
=
false
this
.
groupNumber
=
0
})
},
// 成员弹窗
// 成员弹窗
handleConfirm
()
{
handleConfirm
()
{
console
.
log
(
this
.
$refs
.
membersForm
.
innerTags
)
console
.
log
(
this
.
$refs
.
membersForm
.
innerTags
)
...
@@ -387,6 +431,7 @@ export default {
...
@@ -387,6 +431,7 @@ export default {
font-size
:
14px
;
font-size
:
14px
;
color
:
#999999
;
color
:
#999999
;
margin-left
:
10px
;
margin-left
:
10px
;
font-weight
:
100
;
}
}
}
}
.info-box
{
.info-box
{
...
@@ -412,6 +457,7 @@ export default {
...
@@ -412,6 +457,7 @@ export default {
}
}
.filter-footer
{
.filter-footer
{
margin-top
:
10px
;
display
:
flex
;
display
:
flex
;
//
padding
:
14px
20px
;
//
padding
:
14px
20px
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
...
src/views/friendGroup/index.vue
View file @
d2f13e9
...
@@ -95,12 +95,6 @@ export default {
...
@@ -95,12 +95,6 @@ export default {
// 搜索
// 搜索
searchFormData
:
[
searchFormData
:
[
{
{
label
:
'创建人'
,
name
:
'createdName'
,
type
:
'input'
,
maxlength
:
20
},
{
label
:
'创建日期'
,
label
:
'创建日期'
,
name
:
'createDate'
,
name
:
'createDate'
,
type
:
'datePicker'
,
type
:
'datePicker'
,
...
@@ -111,6 +105,7 @@ export default {
...
@@ -111,6 +105,7 @@ export default {
label
:
'类型'
,
label
:
'类型'
,
name
:
'type'
,
name
:
'type'
,
type
:
'select'
,
type
:
'select'
,
placeholder
:
'请选择'
,
optionList
:
[],
optionList
:
[],
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionLabel
:
'confName'
,
...
@@ -120,6 +115,7 @@ export default {
...
@@ -120,6 +115,7 @@ export default {
label
:
'发布方式'
,
label
:
'发布方式'
,
name
:
'sendType'
,
name
:
'sendType'
,
type
:
'select'
,
type
:
'select'
,
placeholder
:
'请选择'
,
optionList
:
[],
optionList
:
[],
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionLabel
:
'confName'
,
...
@@ -398,22 +394,22 @@ export default {
...
@@ -398,22 +394,22 @@ export default {
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
//
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const
temp
=
{}
//
const temp = {}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
//
temp[this[formName][index].optionId] = ''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
//
temp[this[formName][index].optionLabel] = '全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
//
this[formName][index].optionList.unshift(temp)
}
//
}
}
else
{
}
else
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
//
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const
temp
=
{}
//
const temp = {}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
//
temp[this[formName][index].optionId] = ''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
//
temp[this[formName][index].optionLabel] = '全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
//
this[formName][index].optionList.unshift(temp)
}
//
}
}
}
})
})
}
}
...
@@ -440,6 +436,7 @@ export default {
...
@@ -440,6 +436,7 @@ export default {
color
:
#666666
;
color
:
#666666
;
span
{
span
{
margin-left
:
10px
;
margin-left
:
10px
;
font-weight
:
100
;
}
}
}
}
.attachmentList-box
{
.attachmentList-box
{
...
...
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