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 c477dd39
authored
Dec 31, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
c6d2a58f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
3 additions
and
24 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/components/activityModel.vue
src/views/customerTransform/components/basicInfo.vue
src/views/customerTransform/components/preview.vue
src/views/customerTransform/components/selectMembers.vue
src/views/customerTransform/components/tag-textarea.vue
src/views/customerTransform/components/welcomeWords.vue
src/views/customerTransform/detailCustomer.vue
src/views/customerTransform/addCustomer.vue
View file @
c477dd3
...
...
@@ -308,7 +308,8 @@ export default {
basicForm
:
{
selectType
:
1
,
condition
:
{
sex
:
''
sex
:
''
,
chat
:
[]
}
},
basicRules
:
{
...
...
@@ -418,7 +419,7 @@ export default {
if
(
v
)
{
const
params
=
this
.
getSiftMembers
()
params
.
type
=
1
if
(
this
.
basicForm
.
condition
.
chat
.
length
>
100
)
{
if
(
this
.
basicForm
.
condition
.
chat
.
length
&&
this
.
basicForm
.
condition
.
chat
.
length
>
100
)
{
this
.
$message
({
type
:
'error'
,
message
:
'所在群聊不可超过100个'
...
...
@@ -538,7 +539,6 @@ export default {
'右太极'
]
const
cutImg
=
item
.
attContent
.
replaceAll
(
'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'
,
''
)
console
.
log
(
cutImg
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){1,2}
.gif">/g
,
function
(
str
)
{
let
s
=
list
[
str
.
split
(
'.'
)[
0
]]
return
`[
${
s
}
]`
...
...
@@ -566,10 +566,8 @@ export default {
if
(
params
.
sendType
==
2
)
{
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
}
console
.
log
(
params
)
this
.
addLoading
=
true
this
.
$apis
.
customerTransform
.
insert
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
'-1'
)
{
this
.
$message
({
type
:
'error'
,
...
...
@@ -630,7 +628,6 @@ export default {
}
},
getSiftMembers
()
{
console
.
log
(
this
.
basicForm
.
condition
,
this
.
tagging
)
const
chatFlag
=
this
.
basicForm
.
condition
.
chat
&&
this
.
basicForm
.
condition
.
chat
.
length
const
tagFlag
=
this
.
tagging
&&
this
.
tagging
.
length
const
params
=
{
...
...
@@ -673,7 +670,6 @@ export default {
this
.
groupNumber
=
res
// }
this
.
isUpdate
=
false
console
.
log
(
res
)
})
.
catch
(
err
=>
{
this
.
groupNumber
=
0
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
c477dd3
...
...
@@ -423,7 +423,6 @@ export default {
'右太极'
]
const
cutImg
=
item
.
attContent
.
replaceAll
(
'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'
,
''
)
console
.
log
(
cutImg
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){1,2}
.gif">/g
,
function
(
str
)
{
let
s
=
list
[
str
.
split
(
'.'
)[
0
]]
return
`[
${
s
}
]`
...
...
src/views/customerTransform/components/activityModel.vue
View file @
c477dd3
...
...
@@ -144,7 +144,6 @@ export default {
if
(
item
.
equityClassId
)
{
this
.
selectItem
.
id
=
item
.
equityClassId
}
console
.
log
(
this
.
selectItem
)
},
handleSelect
()
{
if
(
!
this
.
selectItem
.
id
)
{
...
...
src/views/customerTransform/components/basicInfo.vue
View file @
c477dd3
...
...
@@ -218,7 +218,6 @@ export default {
},
watch
:
{
basicInfo
(
val
)
{
console
.
log
(
val
)
if
(
val
.
userList
.
length
>
4
)
{
this
.
limitUserList
=
val
.
userList
.
slice
(
0
,
4
)
}
else
{
...
...
src/views/customerTransform/components/preview.vue
View file @
c477dd3
...
...
@@ -54,7 +54,6 @@ export default {
},
watch
:
{
previewList
(
val
)
{
console
.
log
(
val
)
if
(
val
.
length
&&
val
[
0
].
attType
==
1
)
{
const
attContent
=
val
[
0
].
attContent
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA5
]{1,3}
]/gi
,
function
(
res
)
{
...
...
@@ -169,7 +168,6 @@ export default {
let
index
=
list
.
indexOf
(
word
)
return
`<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/
${
index
}
.gif">`
})
console
.
log
(
htm
)
val
[
0
].
attContent
=
htm
}
}
...
...
src/views/customerTransform/components/selectMembers.vue
View file @
c477dd3
...
...
@@ -89,7 +89,6 @@ export default {
},
//查询
searchEmp
()
{
console
.
log
(
1111
)
this
.
$refs
.
selectEmpTabel
.
searchTable
(
this
.
newTag
)
},
onSubmit
()
{
...
...
src/views/customerTransform/components/tag-textarea.vue
View file @
c477dd3
...
...
@@ -366,7 +366,6 @@ export default {
// 即时更新数据
this
.
updateData
(
target
.
innerHTML
)
let
htm
=
target
.
innerHTML
console
.
log
(
htm
)
const
list
=
[
'微笑'
,
'撇嘴'
,
...
...
@@ -475,7 +474,6 @@ export default {
'右太极'
]
const
cutImg
=
htm
.
replaceAll
(
'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'
,
''
)
console
.
log
(
cutImg
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){1,2}
.gif">/g
,
function
(
str
)
{
let
s
=
list
[
str
.
split
(
'.'
)[
0
]]
return
`[
${
s
}
]`
...
...
@@ -498,7 +496,6 @@ export default {
}
},
inputClick
(
e
)
{
console
.
log
(
this
.
tag
.
toUpperCase
(),
e
.
target
.
nodeName
,
e
)
// 监听点击事件
this
.
isLocked
=
true
const
TAG_NAME
=
e
.
target
.
nodeName
...
...
src/views/customerTransform/components/welcomeWords.vue
View file @
c477dd3
...
...
@@ -293,14 +293,12 @@ export default {
this
.
$refs
.
textContent
.
addImg
(
`https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/
${
index
}
.gif`
)
},
updateText
(
val
)
{
console
.
log
(
val
)
this
.
textInput
(
val
)
},
// 上传图片
handleImgChange
(
e
,
targetItem
)
{
var
reader
=
new
FileReader
()
var
file
=
e
.
srcElement
.
files
[
0
]
console
.
log
(
file
)
// 默认1MB
const
limitSize
=
targetItem
.
limitSize
||
1
const
isLt
=
file
.
size
/
1024
/
1024
<
limitSize
...
...
@@ -318,7 +316,6 @@ export default {
var
image
=
new
Image
()
image
.
src
=
e
.
target
.
result
image
.
onload
=
()
=>
{
console
.
log
(
file
,
targetItem
)
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
...
...
@@ -352,7 +349,6 @@ export default {
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
console
.
log
(
res
)
this
.
previewList
.
push
({
attType
:
ATT_TYPE
.
VEDIO
,
attContent
:
res
...
...
@@ -437,7 +433,6 @@ export default {
}
},
changeInput
:
utils
.
debounce
(
function
()
{
console
.
log
(
document
.
getElementById
(
'editor'
).
childNodes
)
var
allNodes
=
document
.
getElementById
(
'editor'
).
childNodes
var
str
=
''
allNodes
.
forEach
(
item
=>
{
...
...
@@ -447,11 +442,9 @@ export default {
str
+=
item
.
data
}
})
console
.
log
(
str
)
this
.
textInput
(
str
)
},
300
),
updateList
(
val
)
{
console
.
log
(
val
)
this
.
previewList
=
val
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
const
obj
=
val
.
find
(
item
=>
item
.
attType
==
1
)
...
...
src/views/customerTransform/detailCustomer.vue
View file @
c477dd3
...
...
@@ -199,7 +199,6 @@ export default {
const
id
=
this
.
$route
.
params
.
id
this
.
$apis
.
customerTransform
.
customerDetail
({
id
}).
then
(
res
=>
{
this
.
basicInfo
=
res
console
.
log
(
res
)
const
date
=
new
Date
(
res
.
sendTime
)
const
currentDate
=
new
Date
()
this
.
isDisabled
=
date
>
currentDate
...
...
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