Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 5a0d713d
authored
Dec 29, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
9ff13cc9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/components/basicInfo.vue
src/views/customerTransform/components/welcomeWords.vue
src/views/customerTransform/addCustomer.vue
View file @
5a0d713
...
...
@@ -417,6 +417,13 @@ export default {
if
(
v
)
{
const
params
=
this
.
getSiftMembers
()
params
.
type
=
1
if
(
this
.
basicForm
.
condition
.
chat
.
length
>
100
)
{
this
.
$message
({
type
:
'error'
,
message
:
'所在群聊不可超过100个'
})
return
false
}
// params.attachmentList = this.basicForm.attachmentList
params
.
sendType
=
this
.
basicForm
.
sendType
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
this
.
$refs
.
welcome
.
previewList
...
...
@@ -535,7 +542,7 @@ export default {
let
s
=
list
[
str
.
split
(
'.'
)[
0
]]
return
`[
${
s
}
]`
})
item
.
attContent
=
replaceImg
item
.
attContent
=
replaceImg
.
substring
(
0
,
600
)
// item.attContent = item.attContent.replaceAll('@昵称', '[@昵称]')
}
else
if
(
item
.
attType
==
7
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
...
...
src/views/customerTransform/components/basicInfo.vue
View file @
5a0d713
...
...
@@ -221,9 +221,9 @@ export default {
// this.basicInfo.sendTime = dayjs(this.basicInfo.sendTime).format('YYYY-MM-DD HH:mm:ss')
const
previewList
=
res
.
attachmentList
.
map
(
item
=>
{
if
(
item
.
attType
==
7
&&
item
.
attContent
)
item
.
attContent
=
JSON
.
parse
(
item
.
attContent
)
if
(
item
.
attType
==
1
)
{
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'[@昵称]'
,
'@昵称'
)
}
//
if (item.attType == 1) {
//
item.attContent = item.attContent.replaceAll('[@昵称]', '@昵称')
//
}
return
item
})
this
.
eventBus
.
$emit
(
'update'
,
previewList
)
...
...
src/views/customerTransform/components/welcomeWords.vue
View file @
5a0d713
...
...
@@ -454,7 +454,8 @@ export default {
this
.
previewList
=
val
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
const
obj
=
val
.
find
(
item
=>
item
.
attType
==
1
)
let
attContent
=
obj
.
attContent
.
replaceAll
(
'[@昵称]'
,
'<wise id="1">@昵称</wise>'
)
// let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>')
let
attContent
=
obj
.
attContent
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA5
]{1,3}
]/gi
,
function
(
res
)
{
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
const
list
=
[
...
...
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