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 eadd4d5c
authored
May 30, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
5a35c977
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomer.vue
View file @
eadd4d5
...
@@ -82,8 +82,16 @@
...
@@ -82,8 +82,16 @@
</el-form>
</el-form>
</div>
</div>
</div>
</div>
<div
v-show=
"basicForm.selectType == 3"
style=
"line-height: 32px; padding-bottom: 10px
;
"
>
<div
v-show=
"basicForm.selectType == 3"
style=
"line-height: 32px; padding-bottom: 10px"
>
<el-button
:size=
"size"
icon=
"el-icon-plus"
@
click=
"selectCrowd"
>
选择人群
</el-button>
<el-button
:size=
"size"
icon=
"el-icon-plus"
@
click=
"selectCrowd"
>
选择人群
</el-button>
<div
class=
"sale-select"
v-show=
"basicForm.crowdList && basicForm.crowdList.length != 0"
>
<div
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(t, i) in basicForm.crowdList"
:key=
"i"
closable
:disable-transitions=
"false"
@
close=
"removeCrowd(t, i)"
>
<i
class=
"el-icon-user-solid"
></i>
{{
t
.
crowdName
}}
</el-tag>
</div>
</div>
</div>
</div>
<div
class=
"filter-footer"
>
<div
class=
"filter-footer"
>
<!--
<span>
将消息发送给客户符合条件的客户
</span>
-->
<!--
<span>
将消息发送给客户符合条件的客户
</span>
-->
...
@@ -380,7 +388,7 @@ export default {
...
@@ -380,7 +388,7 @@ export default {
this
.
attachmentText
=
'请输入群发内容'
this
.
attachmentText
=
'请输入群发内容'
return
return
}
}
this
.
$refs
.
groupForm
.
validate
(
async
(
v
)
=>
{
this
.
$refs
.
groupForm
.
validate
(
async
v
=>
{
if
(
v
)
{
if
(
v
)
{
const
params
=
this
.
getSiftMembers
()
const
params
=
this
.
getSiftMembers
()
params
.
type
=
1
params
.
type
=
1
...
@@ -398,7 +406,7 @@ export default {
...
@@ -398,7 +406,7 @@ export default {
if
(
item
.
attType
==
1
)
{
if
(
item
.
attType
==
1
)
{
const
list
=
emoji
.
flat
(
Infinity
)
const
list
=
emoji
.
flat
(
Infinity
)
const
cutImg
=
item
.
attContent
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
)
const
cutImg
=
item
.
attContent
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
return
`[
${
s
}
]`
})
})
...
@@ -495,6 +503,12 @@ export default {
...
@@ -495,6 +503,12 @@ export default {
this
.
isUpdate
=
true
this
.
isUpdate
=
true
// this.$refs.selectLabel.init(this.tagging)
// this.$refs.selectLabel.init(this.tagging)
},
},
// 删除人群
removeCrowd
(
item
,
index
)
{
this
.
basicForm
.
crowdList
.
splice
(
index
,
1
)
console
.
log
(
this
.
basicForm
.
crowdList
)
this
.
key
=
new
Date
()
},
valueChange
(
val
)
{
valueChange
(
val
)
{
this
.
isUpdate
=
true
this
.
isUpdate
=
true
},
},
...
@@ -581,9 +595,7 @@ export default {
...
@@ -581,9 +595,7 @@ export default {
const
date
=
new
Date
(
v
).
getTime
()
const
date
=
new
Date
(
v
).
getTime
()
if
(
date
<
Date
.
now
())
{
if
(
date
<
Date
.
now
())
{
this
.
timeOptions
=
{
this
.
timeOptions
=
{
selectableRange
:
`
${
dayjs
()
selectableRange
:
`
${
dayjs
().
add
(
1
,
'm'
).
format
(
'HH:mm'
)}
:00 - 23:59:59`
.
add
(
1
,
'm'
)
.
format
(
'HH:mm'
)}
:00 - 23:59:59`
}
}
}
else
{
}
else
{
this
.
timeOptions
=
{
this
.
timeOptions
=
{
...
@@ -607,6 +619,7 @@ export default {
...
@@ -607,6 +619,7 @@ export default {
// 获取人群数据
// 获取人群数据
getCrowdData
(
val
)
{
getCrowdData
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
this
.
basicForm
.
crowdList
=
val
const
params
=
{
const
params
=
{
combineType
:
1
,
combineType
:
1
,
crowdCondition
:
val
crowdCondition
:
val
...
@@ -734,7 +747,7 @@ export default {
...
@@ -734,7 +747,7 @@ export default {
padding
:
5px
5px
0px
5px
;
padding
:
5px
5px
0px
5px
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
width
:
450px
;
//
width
:
450px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-top
:
6px
;
margin-top
:
6px
;
...
...
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