Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
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 ebd88c2d
authored
Oct 09, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
3fb8524b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
26 deletions
src/api/modules/home.js
src/components/options.js
src/views/home/components/AddValue.vue
src/views/home/components/Journey.vue
src/views/home/components/MicroStore.vue
src/views/home/components/home-step.vue
src/api/modules/home.js
View file @
ebd88c2
...
@@ -305,6 +305,16 @@ const analysisOrder = params => {
...
@@ -305,6 +305,16 @@ const analysisOrder = params => {
sign
:
true
sign
:
true
})
})
}
}
//门店精品升级、众筹、精品升级12个月产值趋势图
const
activityOutputTrend
=
params
=>
{
params
.
method
=
'marketing.api.activity.activityOutputTrend'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//客户群
//客户群
const
queryCrowdTree
=
params
=>
{
const
queryCrowdTree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
...
@@ -356,5 +366,6 @@ export default {
...
@@ -356,5 +366,6 @@ export default {
tendency
,
tendency
,
analysisOrder
,
analysisOrder
,
queryCrowdTree
,
queryCrowdTree
,
activityOutputTrend
,
queryLabelCount
queryLabelCount
}
}
src/components/options.js
View file @
ebd88c2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 14:08:14
* @Date: 2023-09-14 14:08:14
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-10-0
8 16:23:48
* @LastEditTime: 2023-10-0
9 17:49:06
* @FilePath: \scrm-micro-home\src\components\options.js
* @FilePath: \scrm-micro-home\src\components\options.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -10,7 +10,7 @@ import * as echarts from 'echarts'
...
@@ -10,7 +10,7 @@ import * as echarts from 'echarts'
function
getLineOptions
(
obj
)
{
function
getLineOptions
(
obj
)
{
const
{
color
,
lineList
}
=
obj
const
{
color
,
lineList
}
=
obj
// const statDate = dataList.map(item => item.statDate)
// const statDate = dataList.map(item => item.statDate)
const
dataList
=
lineList
.
map
(
item
=>
item
.
ordinateValue
||
0
)
const
dataList
=
lineList
.
map
(
item
=>
item
.
ordinateValue
||
item
.
output
||
0
)
// 定义颜色渐变
// 定义颜色渐变
var
gradientColors
=
[
var
gradientColors
=
[
{
{
...
...
src/views/home/components/AddValue.vue
View file @
ebd88c2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 10:26:24
* @Date: 2023-09-14 10:26:24
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-10-0
8 16:35:06
* @LastEditTime: 2023-10-0
9 16:47:24
* @FilePath: \scrm-micro-home\src\views\home\components\AddValue.vue
* @FilePath: \scrm-micro-home\src\views\home\components\AddValue.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -66,18 +66,21 @@ export default {
...
@@ -66,18 +66,21 @@ export default {
methods
:
{
methods
:
{
//产值、柱状图数据
//产值、柱状图数据
async
getLineList
()
{
async
getLineList
()
{
const
list
=
await
Promise
.
all
([
const
res
=
await
Promise
.
all
([
this
.
$apis
.
home
.
tendency
({}),
this
.
$apis
.
home
.
activityOutputTrend
({
merchantId
:
this
.
$globalState
.
session
.
merchantId
})])
this
.
$apis
.
home
.
tendency
({}),
const
output
=
{
{
...
res
[
0
],
value
:
154.9
,
...
res
[
1
]
lineList
:
[],
}
diagramList
:
[{
ordinateValue
:
1
},
{
ordinateValue
:
2
},
{
ordinateValue
:
25
},
{
ordinateValue
:
6
},
{
ordinateValue
:
10
},
{
ordinateValue
:
5
}]
console
.
log
(
res
,
'res'
)
},
const
mapData
=
{
{
value
:
101.5
,
lineList
:
[],
diagramList
:
[{
ordinateValue
:
5
},
{
ordinateValue
:
7
},
{
ordinateValue
:
2
},
{
ordinateValue
:
6
},
{
ordinateValue
:
5
},
{
ordinateValue
:
2
}]
}
0
:
[
'totalShopProfitMoney'
,
'diagramList'
],
])
1
:
[
'crowdfundingOutput'
,
'crowdfundingOutputTrend'
,
'crowdfundingFlag'
],
2
:
[
'membershipOutput'
,
'membershipOutputTrend'
,
'membershipFlag'
]
}
this
.
chartList
.
forEach
((
item
,
index
)
=>
{
this
.
chartList
.
forEach
((
item
,
index
)
=>
{
item
.
value
=
list
[
index
].
totalShopProfitMoney
||
list
[
index
].
value
||
0
item
.
value
=
output
[
mapData
[
index
][
0
]]
item
.
lineList
=
list
[
index
].
diagramList
||
[]
item
.
lineList
=
output
[
mapData
[
index
][
1
]]
// item.isFlag = list[0]
})
})
}
}
}
}
...
...
src/views/home/components/Journey.vue
View file @
ebd88c2
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<div
class=
"analysis-item-head"
>
<div
class=
"analysis-item-head"
>
<img
:src=
"require(`@/assets/img/home/icon-$
{index + 1}.png`)" />
<img
:src=
"require(`@/assets/img/home/icon-$
{index + 1}.png`)" />
<span>
{{
item
.
instName
}}
</span>
<span>
{{
item
.
instName
}}
</span>
<a
@
click=
"handleJump(item
)"
v-if=
"index == 0
"
>
查看使用情况
</a>
<a
@
click=
"handleJump(item
, 'index')"
v-if=
"item.instStatus == 1
"
>
查看使用情况
</a>
<a
@
click=
"handleJump(item)"
v-else
>
去使用
</a>
<a
@
click=
"handleJump(item
, 'config'
)"
v-else
>
去使用
</a>
<div
:class=
"
{ 'analysis-item-status': true, 'is-disable': item.instStatus != 1 }">
<div
:class=
"
{ 'analysis-item-status': true, 'is-disable': item.instStatus != 1 }">
<i
:class=
"`$
{getStatusValue(item, 'icon')}`">
</i>
<i
:class=
"`$
{getStatusValue(item, 'icon')}`">
</i>
<span>
{{
getStatusValue
(
item
,
'label'
)
}}
</span>
<span>
{{
getStatusValue
(
item
,
'label'
)
}}
</span>
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<div
class=
"analysis-process"
>
<div
class=
"analysis-process"
>
<div
class=
"analysis-process-item"
v-for=
"(p, i) in item.journeyItem"
:key=
"i"
:style=
"
{ height: index === 1 ? '72px' : '92px' }">
<div
class=
"analysis-process-item"
v-for=
"(p, i) in item.journeyItem"
:key=
"i"
:style=
"
{ height: index === 1 ? '72px' : '92px' }">
<div
class=
"analysis-process-title"
>
{{
p
.
label
}}
</div>
<div
class=
"analysis-process-title"
>
{{
p
.
label
}}
</div>
<div
class=
"analysis-process-task"
v-if=
"i
ndex == 0
"
>
当前客户:
{{
p
.
customerList
.
length
}}
</div>
<div
class=
"analysis-process-task"
v-if=
"i
tem.instStatus == 1
"
>
当前客户:
{{
p
.
customerList
.
length
}}
</div>
<div
class=
"analysis-process-task"
>
SOP任务:
{{
p
.
nodes
.
length
}}
</div>
<div
class=
"analysis-process-task"
>
SOP任务:
{{
p
.
nodes
.
length
}}
</div>
</div>
</div>
</div>
</div>
...
@@ -139,7 +139,7 @@ export default {
...
@@ -139,7 +139,7 @@ export default {
})
})
if
(
unenable
)
if
(
unenable
)
unenable
.
journeyItem
.
forEach
(
i
=>
{
unenable
.
journeyItem
.
forEach
(
i
=>
{
customerList
[
0
].
list
.
forEach
(
v
=>
{
customerList
[
1
].
list
.
forEach
(
v
=>
{
if
(
i
.
label
==
v
.
sopJourneyStage
)
{
if
(
i
.
label
==
v
.
sopJourneyStage
)
{
i
.
customerList
.
push
(
v
)
i
.
customerList
.
push
(
v
)
}
}
...
@@ -158,7 +158,9 @@ export default {
...
@@ -158,7 +158,9 @@ export default {
getStatusValue
(
val
,
prop
)
{
getStatusValue
(
val
,
prop
)
{
return
STATUS
.
find
(
item
=>
item
.
value
==
val
.
instStatus
)[
prop
]
return
STATUS
.
find
(
item
=>
item
.
value
==
val
.
instStatus
)[
prop
]
},
},
handleJump
()
{}
handleJump
(
item
,
path
)
{
this
.
$history
.
push
(
`/scene/journeyConfig/
${
path
}
?title=
${
item
.
instName
}
-续保旅程&instId=
${
item
.
instId
}
`
)
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/home/components/MicroStore.vue
View file @
ebd88c2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 10:26:58
* @Date: 2023-09-14 10:26:58
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-10-0
8 15:44:44
* @LastEditTime: 2023-10-0
9 11:44:09
* @FilePath: \scrm-micro-home\src\views\home\components\MicroStore.vue
* @FilePath: \scrm-micro-home\src\views\home\components\MicroStore.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -217,6 +217,7 @@ export default {
...
@@ -217,6 +217,7 @@ export default {
color
:
#333333
;
color
:
#333333
;
font-size
:
26px
;
font-size
:
26px
;
line-height
:
38px
;
line-height
:
38px
;
font-weight
:
600
;
margin-top
:
15px
;
margin-top
:
15px
;
}
}
.warp-price
{
.warp-price
{
...
...
src/views/home/components/home-step.vue
View file @
ebd88c2
...
@@ -222,14 +222,14 @@ export default {
...
@@ -222,14 +222,14 @@ export default {
background
:
#ffffff
;
background
:
#ffffff
;
padding
:
16px
8px
;
padding
:
16px
8px
;
margin-right
:
16px
;
margin-right
:
16px
;
width
:
1
82px
;
width
:
1
2vw
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
position
:
relative
;
position
:
relative
;
&::nth-child(3)
{
&::nth-child(3)
{
width
:
176px
;
width
:
176px
;
}
}
&
:nth-child
(
4
)
{
&
:nth-child
(
4
)
{
width
:
212px
;
width
:
13vw
;
margin-right
:
0px
;
margin-right
:
0px
;
}
}
.step-icon
{
.step-icon
{
...
@@ -415,7 +415,7 @@ export default {
...
@@ -415,7 +415,7 @@ export default {
padding
:
30px
0px
20px
;
padding
:
30px
0px
20px
;
.step-title-h2
{
.step-title-h2
{
font-size
:
18px
;
font-size
:
18px
;
color
:
#
111111
;
color
:
#
333
;
letter-spacing
:
0
;
letter-spacing
:
0
;
text-align
:
center
;
text-align
:
center
;
line-height
:
28px
;
line-height
:
28px
;
...
@@ -437,11 +437,11 @@ export default {
...
@@ -437,11 +437,11 @@ export default {
}
}
.step-module
{
.step-module
{
display
:
grid
;
display
:
grid
;
grid-template-columns
:
86px
86px
;
grid-template-columns
:
48%
48%
;
gap
:
8px
;
gap
:
8px
4%
;
padding
:
8px
;
padding
:
8px
;
font-size
:
14px
;
&-item
{
&-item
{
width
:
86px
;
height
:
26px
;
height
:
26px
;
background
:
#f2f2ff
;
background
:
#f2f2ff
;
border
:
1px
solid
#dfdff9
;
border
:
1px
solid
#dfdff9
;
...
@@ -477,4 +477,9 @@ export default {
...
@@ -477,4 +477,9 @@ export default {
}
}
}
}
}
}
@media
screen
and
(
max-width
:
1500px
)
{
.step-title
{
font-size
:
13px
!important
;
}
}
</
style
>
</
style
>
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