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 => {
sign
:
true
})
}
// 根据id提醒用户
// 详情页客户群提醒
const
listRemindOperate
=
params
=>
{
params
.
method
=
`
${
path
}
listRemindOperate`
return
http
({
...
...
@@ -153,7 +154,7 @@ const listRemindOperate = params => {
sign
:
true
})
}
//
详情页客户群提醒
//
根据id提醒用户
const
remindUserGroup
=
params
=>
{
params
.
method
=
`
${
path
}
remindUserGroup`
return
http
({
...
...
src/views/customerTransform/components/selectEmp.vue
View file @
7b95125
...
...
@@ -127,13 +127,16 @@ export default {
},
searchTable
(
search
)
{
const
arr
=
[]
this
.
currentArr
.
forEach
(
item
=>
{
console
.
log
(
item
.
staffName
.
indexOf
(
search
)
!=
-
1
)
if
(
item
.
staffName
.
indexOf
(
search
)
!=
-
1
)
{
console
.
log
(
item
)
arr
.
push
(
item
)
}
})
if
(
this
.
currentArr
&&
this
.
currentArr
.
length
!=
0
)
{
this
.
currentArr
.
forEach
(
item
=>
{
console
.
log
(
item
.
staffName
.
indexOf
(
search
)
!=
-
1
)
if
(
item
.
staffName
.
indexOf
(
search
)
!=
-
1
)
{
console
.
log
(
item
)
arr
.
push
(
item
)
}
})
}
this
.
tableEmpData
=
arr
}
// listEntmicroStaff(staffName) {
...
...
src/views/customerTransform/components/selectLabel.vue
View file @
7b95125
...
...
@@ -43,15 +43,17 @@
<div
class=
"tag-select-box"
>
<div
class=
"tag-box-header"
>
标签名称(
{{
selectNum
}}
项)
</div>
<div
class=
"tag-selected-box"
>
<template
v-for=
"item in labelTreeRets"
>
<el-tag
class=
"tag-selected-item"
v-for=
"(tag, idx) in item.tagChecked"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"remove(item, idx)"
>
{{
tag
.
name
}}
</el-tag>
<template
v-for=
"item in labelTreeRetSelect"
>
<template
v-for=
"(tag, idx) in item.tagChecked"
>
<el-tag
class=
"tag-selected-item"
:key=
"idx"
v-if=
"tag"
closable
:disable-transitions=
"false"
@
close=
"remove(item, idx)"
>
{{
tag
.
name
}}
</el-tag>
</
template
>
</template>
</div>
</div>
...
...
@@ -75,6 +77,8 @@ export default {
dialogVisible
:
false
,
labelGroupName
:
''
,
selectNum
:
0
,
searchStatus
:
false
,
labelTreeRetSelect
:
[],
labelTreeRets
:
[
{
labelGroup
:
{
id
:
'109'
,
name
:
'湖口123'
},
...
...
@@ -116,10 +120,12 @@ export default {
},
methods
:
{
init
(
item
)
{
this
.
labelGroupName
=
''
this
.
dialogVisible
=
true
this
.
querylabeltree
(
item
)
},
handleSearch
()
{
this
.
searchStatus
=
true
this
.
querylabeltree
()
},
querylabeltree
(
selectItem
)
{
...
...
@@ -148,17 +154,29 @@ export default {
selectItem
.
forEach
(
item
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
let
labelList
=
[]
item
.
labelList
.
forEach
(
x
=>
{
labelList
.
push
(
x
.
id
)
})
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
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
)
})
})
this
.
labelTreeRetSelect
=
utils
.
deepClone
(
this
.
labelTreeRets
)
}
else
{
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
return
{
...
...
@@ -170,16 +188,43 @@ export default {
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
)
{
item
.
tagChecked
.
splice
(
idx
,
1
)
if
(
item
.
tagChecked
.
length
==
0
)
{
this
.
$nextTick
(()
=>
{
item
.
checkAll
=
false
this
.
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
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
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
)
...
...
@@ -189,7 +234,7 @@ export default {
//选中
handleSelect
()
{
this
.
dialogVisible
=
false
let
labelTreeRets
=
this
.
labelTreeRet
s
let
labelTreeRets
=
this
.
labelTreeRet
Select
.
map
(
item
=>
{
if
(
item
.
tagChecked
.
length
)
{
return
{
...
...
@@ -206,19 +251,35 @@ export default {
handleCheckAllChange
(
val
,
index
)
{
if
(
val
)
{
this
.
labelTreeRets
[
index
].
tagChecked
=
[]
for
(
let
i
in
this
.
labelTreeRets
[
index
].
labelList
)
{
this
.
labelTreeRets
[
index
].
tagChecked
.
push
(
this
.
labelTreeRets
[
index
].
labelList
[
i
]
)
}
this
.
labelTreeRets
[
index
].
labelList
.
forEach
(
item
=>
{
this
.
labelTreeRets
[
index
].
tagChecked
.
push
(
item
)
}
)
}
else
{
this
.
labelTreeRets
[
index
].
tagChecked
=
[]
}
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
this
.
labelTreeRets
[
index
].
checkAll
=
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
()
{
...
...
@@ -285,7 +346,7 @@ export default {
.tag-selected-item
{
margin
:
0px
6px
6px
0px
;
height
:
26px
;
line-height
:
2
2
px
;
line-height
:
2
4
px
;
}
.el-tree-node__expand-icon
{
color
:
#5850ff
;
...
...
src/views/customerTransform/index.vue
View file @
7b95125
...
...
@@ -249,7 +249,7 @@ export default {
type
}
// if (type == 1) {
this
.
$apis
.
customerTransform
.
listRemindOperate
(
params
).
then
(
res
=>
{
this
.
$apis
.
customerTransform
.
remindUserGroup
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
$message
({
type
:
'success'
,
...
...
src/views/home/index.vue
View file @
7b95125
...
...
@@ -18,13 +18,18 @@
</div>
<div
class=
"marketing-content"
>
{{
item
.
content
}}
</div>
<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
class=
"customer-group"
>
<div
class=
"title"
>
客户分群
</div>
<div
class=
"title"
>
营销数据
</div>
<div
class=
"customer-content"
>
<!-- 券类营销 -->
<div
class=
"border coupons"
>
...
...
@@ -69,7 +74,7 @@
</div>
<div
class=
"data-item"
>
<span
class=
"data-title w-90"
>
核销
总数
核销
率
<el-popover
placement=
"top-start"
title=
"核销总数"
...
...
@@ -337,6 +342,7 @@ export default {
this
.
$set
(
this
.
date
,
0
,
start
.
setTime
(
start
.
getTime
()
-
3600
*
1000
*
24
*
14
))
this
.
$set
(
this
.
date
,
1
,
new
Date
())
this
.
init
(
this
.
date
)
console
.
log
(
this
.
$globalState
)
},
methods
:
{
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