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 7b951254
authored
Dec 06, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
c7b1671e
f0b1bbc4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
104 additions
and
33 deletions
src/api/modules/customerTransform.js
src/views/customerTransform/components/selectEmp.vue
src/views/customerTransform/components/selectLabel.vue
src/views/customerTransform/index.vue
src/views/home/index.vue
src/api/modules/customerTransform.js
View file @
7b95125
...
@@ -143,7 +143,8 @@ const groupDetailList = params => {
...
@@ -143,7 +143,8 @@ const groupDetailList = params => {
sign
:
true
sign
:
true
})
})
}
}
// 根据id提醒用户
// 详情页客户群提醒
const
listRemindOperate
=
params
=>
{
const
listRemindOperate
=
params
=>
{
params
.
method
=
`
${
path
}
listRemindOperate`
params
.
method
=
`
${
path
}
listRemindOperate`
return
http
({
return
http
({
...
@@ -153,7 +154,7 @@ const listRemindOperate = params => {
...
@@ -153,7 +154,7 @@ const listRemindOperate = params => {
sign
:
true
sign
:
true
})
})
}
}
//
详情页客户群提醒
//
根据id提醒用户
const
remindUserGroup
=
params
=>
{
const
remindUserGroup
=
params
=>
{
params
.
method
=
`
${
path
}
remindUserGroup`
params
.
method
=
`
${
path
}
remindUserGroup`
return
http
({
return
http
({
...
...
src/views/customerTransform/components/selectEmp.vue
View file @
7b95125
...
@@ -127,13 +127,16 @@ export default {
...
@@ -127,13 +127,16 @@ export default {
},
},
searchTable
(
search
)
{
searchTable
(
search
)
{
const
arr
=
[]
const
arr
=
[]
this
.
currentArr
.
forEach
(
item
=>
{
if
(
this
.
currentArr
&&
this
.
currentArr
.
length
!=
0
)
{
console
.
log
(
item
.
staffName
.
indexOf
(
search
)
!=
-
1
)
this
.
currentArr
.
forEach
(
item
=>
{
if
(
item
.
staffName
.
indexOf
(
search
)
!=
-
1
)
{
console
.
log
(
item
.
staffName
.
indexOf
(
search
)
!=
-
1
)
console
.
log
(
item
)
if
(
item
.
staffName
.
indexOf
(
search
)
!=
-
1
)
{
arr
.
push
(
item
)
console
.
log
(
item
)
}
arr
.
push
(
item
)
})
}
})
}
this
.
tableEmpData
=
arr
this
.
tableEmpData
=
arr
}
}
// listEntmicroStaff(staffName) {
// listEntmicroStaff(staffName) {
...
...
src/views/customerTransform/components/selectLabel.vue
View file @
7b95125
...
@@ -43,15 +43,17 @@
...
@@ -43,15 +43,17 @@
<div
class=
"tag-select-box"
>
<div
class=
"tag-select-box"
>
<div
class=
"tag-box-header"
>
标签名称(
{{
selectNum
}}
项)
</div>
<div
class=
"tag-box-header"
>
标签名称(
{{
selectNum
}}
项)
</div>
<div
class=
"tag-selected-box"
>
<div
class=
"tag-selected-box"
>
<template
v-for=
"item in labelTreeRets"
>
<template
v-for=
"item in labelTreeRetSelect"
>
<el-tag
<template
v-for=
"(tag, idx) in item.tagChecked"
>
class=
"tag-selected-item"
<el-tag
v-for=
"(tag, idx) in item.tagChecked"
class=
"tag-selected-item"
:key=
"idx"
:key=
"idx"
closable
v-if=
"tag"
:disable-transitions=
"false"
closable
@
close=
"remove(item, idx)"
:disable-transitions=
"false"
>
{{
tag
.
name
}}
</el-tag>
@
close=
"remove(item, idx)"
>
{{
tag
.
name
}}
</el-tag>
</
template
>
</template>
</template>
</div>
</div>
</div>
</div>
...
@@ -75,6 +77,8 @@ export default {
...
@@ -75,6 +77,8 @@ export default {
dialogVisible
:
false
,
dialogVisible
:
false
,
labelGroupName
:
''
,
labelGroupName
:
''
,
selectNum
:
0
,
selectNum
:
0
,
searchStatus
:
false
,
labelTreeRetSelect
:
[],
labelTreeRets
:
[
labelTreeRets
:
[
{
{
labelGroup
:
{
id
:
'109'
,
name
:
'湖口123'
},
labelGroup
:
{
id
:
'109'
,
name
:
'湖口123'
},
...
@@ -116,10 +120,12 @@ export default {
...
@@ -116,10 +120,12 @@ export default {
},
},
methods
:
{
methods
:
{
init
(
item
)
{
init
(
item
)
{
this
.
labelGroupName
=
''
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
querylabeltree
(
item
)
this
.
querylabeltree
(
item
)
},
},
handleSearch
()
{
handleSearch
()
{
this
.
searchStatus
=
true
this
.
querylabeltree
()
this
.
querylabeltree
()
},
},
querylabeltree
(
selectItem
)
{
querylabeltree
(
selectItem
)
{
...
@@ -148,17 +154,29 @@ export default {
...
@@ -148,17 +154,29 @@ export default {
selectItem
.
forEach
(
item
=>
{
selectItem
.
forEach
(
item
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
let
labelList
=
[]
item
.
labelList
.
forEach
(
x
=>
{
labelList
.
push
(
x
.
id
)
})
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
tag
.
tagChecked
=
item
.
labelList
tag
.
tagChecked
=
tag
.
labelList
.
filter
(
i
=>
labelList
.
includes
(
i
.
id
))
})
})
}
}
})
})
})
})
this
.
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
if
(
itm
.
labelGroup
.
id
==
item
.
labelGroup
.
id
)
{
item
.
tagChecked
=
utils
.
deepClone
(
itm
.
tagChecked
)
}
})
})
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
)
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
)
})
})
})
})
this
.
labelTreeRetSelect
=
utils
.
deepClone
(
this
.
labelTreeRets
)
}
else
{
}
else
{
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
return
{
return
{
...
@@ -170,16 +188,43 @@ export default {
...
@@ -170,16 +188,43 @@ export default {
checkAll
:
false
checkAll
:
false
}
}
})
})
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
if
(
itm
.
labelGroup
.
id
==
item
.
labelGroup
.
id
&&
itm
.
tagChecked
.
length
>
0
)
{
let
tagChecked
=
[]
itm
.
tagChecked
.
forEach
(
x
=>
{
tagChecked
.
push
(
x
.
id
)
})
this
.
$nextTick
(()
=>
{
item
.
tagChecked
=
item
.
labelList
.
filter
(
i
=>
tagChecked
.
includes
(
i
.
id
))
})
this
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
itm
.
tagChecked
,
index
,
1
)
})
}
})
})
if
(
this
.
labelTreeRetSelect
.
length
==
0
)
{
this
.
labelTreeRetSelect
=
utils
.
deepClone
(
this
.
labelTreeRets
)
}
}
}
})
})
},
},
remove
(
item
,
idx
)
{
remove
(
item
,
idx
)
{
item
.
tagChecked
.
splice
(
idx
,
1
)
item
.
tagChecked
.
splice
(
idx
,
1
)
if
(
item
.
tagChecked
.
length
==
0
)
{
this
.
labelTreeRets
.
forEach
(
item
=>
{
this
.
$nextTick
(()
=>
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
item
.
checkAll
=
false
if
(
item
.
labelGroup
.
id
==
itm
.
labelGroup
.
id
)
{
item
.
tagChecked
=
utils
.
deepClone
(
itm
.
tagChecked
)
}
if
(
item
.
tagChecked
.
length
==
0
)
{
this
.
$nextTick
(()
=>
{
item
.
checkAll
=
false
})
}
})
})
}
})
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
)
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
)
...
@@ -189,7 +234,7 @@ export default {
...
@@ -189,7 +234,7 @@ export default {
//选中
//选中
handleSelect
()
{
handleSelect
()
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
let
labelTreeRets
=
this
.
labelTreeRet
s
let
labelTreeRets
=
this
.
labelTreeRet
Select
.
map
(
item
=>
{
.
map
(
item
=>
{
if
(
item
.
tagChecked
.
length
)
{
if
(
item
.
tagChecked
.
length
)
{
return
{
return
{
...
@@ -206,19 +251,35 @@ export default {
...
@@ -206,19 +251,35 @@ export default {
handleCheckAllChange
(
val
,
index
)
{
handleCheckAllChange
(
val
,
index
)
{
if
(
val
)
{
if
(
val
)
{
this
.
labelTreeRets
[
index
].
tagChecked
=
[]
this
.
labelTreeRets
[
index
].
tagChecked
=
[]
for
(
let
i
in
this
.
labelTreeRets
[
index
].
labelList
)
{
this
.
labelTreeRets
[
index
].
labelList
.
forEach
(
item
=>
{
this
.
labelTreeRets
[
index
].
tagChecked
.
push
(
this
.
labelTreeRets
[
index
].
labelList
[
i
]
)
this
.
labelTreeRets
[
index
].
tagChecked
.
push
(
item
)
}
}
)
}
else
{
}
else
{
this
.
labelTreeRets
[
index
].
tagChecked
=
[]
this
.
labelTreeRets
[
index
].
tagChecked
=
[]
}
}
this
.
labelTreeRets
[
index
].
isIndeterminate
=
false
this
.
labelTreeRets
[
index
].
isIndeterminate
=
false
this
.
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
if
(
item
.
labelGroup
.
id
==
itm
.
labelGroup
.
id
)
{
itm
.
tagChecked
=
utils
.
deepClone
(
item
.
tagChecked
)
}
})
})
},
},
//选中
//选中
handleCheckedChange
(
value
,
index
)
{
handleCheckedChange
(
value
,
index
,
status
)
{
let
checkedCount
=
value
.
length
let
checkedCount
=
value
.
length
this
.
labelTreeRets
[
index
].
checkAll
=
checkedCount
===
this
.
labelTreeRets
[
index
].
labelList
.
length
this
.
labelTreeRets
[
index
].
checkAll
=
checkedCount
===
this
.
labelTreeRets
[
index
].
labelList
.
length
this
.
labelTreeRets
[
index
].
isIndeterminate
=
checkedCount
>
0
&&
checkedCount
<
this
.
labelTreeRets
[
index
].
labelList
.
length
this
.
labelTreeRets
[
index
].
isIndeterminate
=
checkedCount
>
0
&&
checkedCount
<
this
.
labelTreeRets
[
index
].
labelList
.
length
if
(
!
status
)
{
this
.
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
if
(
item
.
labelGroup
.
id
==
itm
.
labelGroup
.
id
)
{
itm
.
tagChecked
=
utils
.
deepClone
(
item
.
tagChecked
)
}
})
})
}
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -285,7 +346,7 @@ export default {
...
@@ -285,7 +346,7 @@ export default {
.tag-selected-item
{
.tag-selected-item
{
margin
:
0px
6px
6px
0px
;
margin
:
0px
6px
6px
0px
;
height
:
26px
;
height
:
26px
;
line-height
:
2
2
px
;
line-height
:
2
4
px
;
}
}
.el-tree-node__expand-icon
{
.el-tree-node__expand-icon
{
color
:
#5850ff
;
color
:
#5850ff
;
...
...
src/views/customerTransform/index.vue
View file @
7b95125
...
@@ -249,7 +249,7 @@ export default {
...
@@ -249,7 +249,7 @@ export default {
type
type
}
}
// if (type == 1) {
// if (type == 1) {
this
.
$apis
.
customerTransform
.
listRemindOperate
(
params
).
then
(
res
=>
{
this
.
$apis
.
customerTransform
.
remindUserGroup
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
...
...
src/views/home/index.vue
View file @
7b95125
...
@@ -18,13 +18,18 @@
...
@@ -18,13 +18,18 @@
</div>
</div>
<div
class=
"marketing-content"
>
{{
item
.
content
}}
</div>
<div
class=
"marketing-content"
>
{{
item
.
content
}}
</div>
<div
class=
"marketing-btn"
>
<div
class=
"marketing-btn"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"jumpPage(item.path)"
>
{{
item
.
linkName
}}
</el-button>
<el-button
:disabled=
"!$globalState.routers.find(i => i.compath == item.path)"
type=
"primary"
size=
"small"
@
click=
"jumpPage(item.path)"
>
{{
item
.
linkName
}}
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 客户分群 -->
<!-- 客户分群 -->
<div
class=
"customer-group"
>
<div
class=
"customer-group"
>
<div
class=
"title"
>
客户分群
</div>
<div
class=
"title"
>
营销数据
</div>
<div
class=
"customer-content"
>
<div
class=
"customer-content"
>
<!-- 券类营销 -->
<!-- 券类营销 -->
<div
class=
"border coupons"
>
<div
class=
"border coupons"
>
...
@@ -69,7 +74,7 @@
...
@@ -69,7 +74,7 @@
</div>
</div>
<div
class=
"data-item"
>
<div
class=
"data-item"
>
<span
class=
"data-title w-90"
>
<span
class=
"data-title w-90"
>
核销
总数
核销
率
<el-popover
<el-popover
placement=
"top-start"
placement=
"top-start"
title=
"核销总数"
title=
"核销总数"
...
@@ -337,6 +342,7 @@ export default {
...
@@ -337,6 +342,7 @@ export default {
this
.
$set
(
this
.
date
,
0
,
start
.
setTime
(
start
.
getTime
()
-
3600
*
1000
*
24
*
14
))
this
.
$set
(
this
.
date
,
0
,
start
.
setTime
(
start
.
getTime
()
-
3600
*
1000
*
24
*
14
))
this
.
$set
(
this
.
date
,
1
,
new
Date
())
this
.
$set
(
this
.
date
,
1
,
new
Date
())
this
.
init
(
this
.
date
)
this
.
init
(
this
.
date
)
console
.
log
(
this
.
$globalState
)
},
},
methods
:
{
methods
:
{
init
(
date
)
{
init
(
date
)
{
...
...
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