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 cfe915fd
authored
Oct 13, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
9d094841
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
src/components/options.js
src/views/home/components/AnalysisLine.vue
src/views/home/components/Journey.vue
src/components/options.js
View file @
cfe915f
...
@@ -2,15 +2,17 @@
...
@@ -2,15 +2,17 @@
* @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-1
1 13:43:01
* @LastEditTime: 2023-10-1
2 14:58:59
* @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
*/
*/
import
*
as
echarts
from
'echarts'
import
*
as
echarts
from
'echarts'
import
util
from
'@/utils/util'
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
||
item
.
output
||
0
)
const
dataList
=
lineList
.
map
(
item
=>
+
item
.
ordinateValue
||
+
item
.
output
||
0
)
console
.
log
(
dataList
,
'dataList'
)
// 定义颜色渐变
// 定义颜色渐变
var
gradientColors
=
[
var
gradientColors
=
[
{
{
...
@@ -129,7 +131,7 @@ function getLineOddOptions(obj) {
...
@@ -129,7 +131,7 @@ function getLineOddOptions(obj) {
},
},
formatter
:
function
(
params
)
{
formatter
:
function
(
params
)
{
const
value
=
params
[
0
].
value
const
value
=
params
[
0
].
value
return
`销售额<br><b>¥
${
value
}
</b>`
return
`销售额<br><b>¥
${
util
.
formatNumber
(
value
)
}
</b>`
}
}
},
},
grid
:
{
grid
:
{
...
@@ -206,15 +208,17 @@ function getPieOptions(obj) {
...
@@ -206,15 +208,17 @@ function getPieOptions(obj) {
scale
:
true
,
// 不放大扇区,
scale
:
true
,
// 不放大扇区,
label
:
{
label
:
{
show
:
true
,
show
:
true
,
formatter
:
[
'销售额'
,
'{c|{c}}'
].
join
(
'\n'
),
formatter
:
function
(
params
)
{
return
'{a|销售额}\n{b|¥'
+
util
.
formatNumber
(
params
.
value
)
+
'}'
},
rich
:
{
rich
:
{
b
:
{
a
:
{
fontSize
:
12
,
fontSize
:
12
,
lineHeight
:
24
lineHeight
:
24
},
},
c
:
{
b
:
{
fontSize
:
2
4
,
fontSize
:
2
0
,
lineHeight
:
3
6
lineHeight
:
3
0
}
}
}
}
}
}
...
...
src/views/home/components/AnalysisLine.vue
View file @
cfe915f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 11:21:38
* @Date: 2023-09-14 11:21:38
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-10-1
0 10:35:11
* @LastEditTime: 2023-10-1
3 10:53:12
* @FilePath: \scrm-micro-home\src\views\home\components\AnalysisLine.vue
* @FilePath: \scrm-micro-home\src\views\home\components\AnalysisLine.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
-->
-->
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<div
class=
"analysis-border-title"
>
{{
analysisData
.
title
}}
</div>
<div
class=
"analysis-border-title"
>
{{
analysisData
.
title
}}
</div>
<div
class=
"analysis-border-num flex"
>
<div
class=
"analysis-border-num flex"
>
累计增量产值
累计增量产值
<span>
{{
analysisData
.
value
|
formatNumber
}}
</span>
<span>
¥
{{
analysisData
.
value
|
formatNumber
}}
</span>
<span
class=
"jump-btn"
@
click=
"jumpDetail"
v-if=
"analysisData.isShow()"
>
查看明细
</span>
<span
class=
"jump-btn"
@
click=
"jumpDetail"
v-if=
"analysisData.isShow()"
>
查看明细
</span>
<span
class=
"jump-btn"
v-else
>
暂无权限
</span>
<span
class=
"jump-btn"
v-else
>
暂无权限
</span>
</div>
</div>
...
...
src/views/home/components/Journey.vue
View file @
cfe915f
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</div>
</div>
</div>
</div>
<div
class=
"analysis-process"
>
<div
class=
"analysis-process"
>
<div
class=
"analysis-process-item"
v-for=
"(p, i) in item.journeyItem"
:key=
"i"
:style=
"
{ height: i
ndex === 1 ? '72px' : '9
2px' }">
<div
class=
"analysis-process-item"
v-for=
"(p, i) in item.journeyItem"
:key=
"i"
:style=
"
{ height: i
tem.instStatus === 1 ? '92px' : '7
2px' }">
<div
class=
"analysis-process-title"
>
{{
p
.
label
}}
</div>
<div
class=
"analysis-process-title"
>
{{
p
.
label
}}
</div>
<div
class=
"analysis-process-task"
v-if=
"item.instStatus == 1"
>
当前客户:
{{
p
.
customerList
.
length
}}
</div>
<div
class=
"analysis-process-task"
v-if=
"item.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>
...
...
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