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