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 cfa587ef
authored
Dec 02, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
d2b11524
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
6 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/components/basicInfo.vue
src/views/customerTransform/components/welcomeWords.vue
src/views/home/index.vue
src/views/customerTransform/addCustomer.vue
View file @
cfa587e
...
@@ -352,9 +352,10 @@ export default {
...
@@ -352,9 +352,10 @@ export default {
params
.
sendType
=
this
.
basicForm
.
sendType
params
.
sendType
=
this
.
basicForm
.
sendType
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
this
.
$refs
.
welcome
.
previewList
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
this
.
$refs
.
welcome
.
previewList
const
attachmentList
=
previewList
.
map
(
item
=>
{
const
attachmentList
=
previewList
.
map
(
item
=>
{
// const attachmentList = this.$common.utils.deepClone(this.$refs.welcome.previewList).map(item => {
if
(
item
.
attType
==
1
)
{
if
(
item
.
attType
==
1
)
{
item
.
attContent
=
item
.
attContent
.
replace
(
'@昵称'
,
'[@昵称]'
)
item
.
attContent
=
item
.
attContent
.
replace
(
'@昵称'
,
'[@昵称]'
)
}
else
if
(
item
.
attType
==
7
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
}
}
return
item
return
item
})
})
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
cfa587e
...
@@ -225,10 +225,20 @@ export default {
...
@@ -225,10 +225,20 @@ export default {
this
.
$refs
.
groupForm
.
validate
(
v
=>
{
this
.
$refs
.
groupForm
.
validate
(
v
=>
{
const
params
=
{
const
params
=
{
type
:
2
,
type
:
2
,
attachmentList
:
this
.
basicForm
.
attachmentList
,
//
attachmentList: this.basicForm.attachmentList,
sendType
:
this
.
basicForm
.
sendType
,
sendType
:
this
.
basicForm
.
sendType
,
massName
:
this
.
basicForm
.
massName
massName
:
this
.
basicForm
.
massName
}
}
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
this
.
$refs
.
welcome
.
previewList
const
attachmentList
=
previewList
.
map
(
item
=>
{
if
(
item
.
attType
==
1
)
{
item
.
attContent
=
item
.
attContent
.
replace
(
'@昵称'
,
'[@昵称]'
)
}
else
if
(
item
.
attType
==
7
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
}
return
item
})
params
.
attachmentList
=
attachmentList
params
.
userList
=
this
.
basicForm
.
userList
.
map
(
item
=>
{
params
.
userList
=
this
.
basicForm
.
userList
.
map
(
item
=>
{
return
{
return
{
staffId
:
item
.
staffId
,
staffId
:
item
.
staffId
,
...
...
src/views/customerTransform/components/basicInfo.vue
View file @
cfa587e
...
@@ -117,7 +117,11 @@ export default {
...
@@ -117,7 +117,11 @@ export default {
this
.
$apis
.
customerTransform
.
customerDetail
({
id
}).
then
(
res
=>
{
this
.
$apis
.
customerTransform
.
customerDetail
({
id
}).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
basicInfo
=
res
this
.
basicInfo
=
res
this
.
eventBus
.
$emit
(
'update'
,
this
.
basicInfo
.
attachmentList
)
const
previewList
=
res
.
attachmentList
.
map
(
item
=>
{
if
(
item
.
attType
==
7
)
item
.
attContent
=
JSON
.
parse
(
item
.
attContent
)
return
item
})
this
.
eventBus
.
$emit
(
'update'
,
previewList
)
})
})
},
},
getStatistic
()
{
getStatistic
()
{
...
...
src/views/customerTransform/components/welcomeWords.vue
View file @
cfa587e
...
@@ -263,12 +263,26 @@ export default {
...
@@ -263,12 +263,26 @@ export default {
},
},
selectActivity
(
val
)
{
selectActivity
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
let
idx
const
hasActivity
=
this
.
previewList
.
some
((
item
,
index
)
=>
{
if
(
item
.
attType
==
7
)
{
idx
=
index
return
item
}
})
if
(
val
)
{
if
(
val
)
{
if
(
hasActivity
)
{
this
.
$set
(
this
.
previewList
,
idx
,
{
attContent
:
val
,
attType
:
ATT_TYPE
.
ACTIVITY
})
}
else
{
this
.
previewList
.
push
({
this
.
previewList
.
push
({
attContent
:
val
,
attContent
:
val
,
attType
:
ATT_TYPE
.
ACTIVITY
attType
:
ATT_TYPE
.
ACTIVITY
})
})
}
}
}
},
},
insertHtmlAtCaret
(
html
)
{
insertHtmlAtCaret
(
html
)
{
var
sel
,
range
,
frag
var
sel
,
range
,
frag
...
...
src/views/home/index.vue
View file @
cfa587e
...
@@ -348,11 +348,12 @@ export default {
...
@@ -348,11 +348,12 @@ export default {
this
.
equityStatistical
()
this
.
equityStatistical
()
this
.
merchantStatistical
()
this
.
merchantStatistical
()
},
},
dateChange
(
val
)
{
dateChange
(
val
,
pointUnit
=
1
)
{
console
.
log
(
val
)
console
.
log
(
val
)
const
params
=
{
const
params
=
{
dataStartDateStr
:
dayjs
(
val
[
0
]).
format
(
'YYYY-MM-DD'
),
dataStartDateStr
:
dayjs
(
val
[
0
]).
format
(
'YYYY-MM-DD'
),
dataEndDateStr
:
dayjs
(
val
[
1
]).
format
(
'YYYY-MM-DD'
)
dataEndDateStr
:
dayjs
(
val
[
1
]).
format
(
'YYYY-MM-DD'
),
pointUnit
}
}
this
.
timePeriodStatistics
(
params
)
this
.
timePeriodStatistics
(
params
)
},
},
...
@@ -386,7 +387,7 @@ export default {
...
@@ -386,7 +387,7 @@ export default {
// endTime = new Date(nowYear, 11, 31)
// endTime = new Date(nowYear, 11, 31)
this
.
$set
(
this
.
date
,
0
,
startTime
)
this
.
$set
(
this
.
date
,
0
,
startTime
)
this
.
$set
(
this
.
date
,
1
,
endTime
)
this
.
$set
(
this
.
date
,
1
,
endTime
)
this
.
dateChange
(
this
.
date
)
this
.
dateChange
(
this
.
date
,
2
)
break
break
}
}
},
},
...
...
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