Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
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 d0f2f32c
authored
Sep 12, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
684f43c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
12 deletions
src/views/internal/components/BarOption.js
src/views/internal/components/ViewClue.vue
src/views/internal/components/constant.js
src/views/internal/components/BarOption.js
View file @
d0f2f32
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-07 14:04:52
* @LastEditors: huyue
* @LastEditTime: 2023-09-
07 17:43:27
* @LastEditTime: 2023-09-
12 11:04:03
*/
import
*
as
echarts
from
'echarts'
function
getBarOptions
(
obj
,
colorList
,
isMultiple
,
barwidth
,
formatYAxis
)
{
...
...
@@ -60,7 +60,7 @@ function getBarOptions(obj, colorList, isMultiple, barwidth, formatYAxis) {
show
:
true
,
position
:
'top'
,
color
:
'#fff'
,
fontSize
:
10
fontSize
:
8
},
itemStyle
:
{
barBorderRadius
:
[
2
,
2
,
0
,
0
],
// 柱体圆角
...
...
src/views/internal/components/ViewClue.vue
View file @
d0f2f32
...
...
@@ -17,8 +17,8 @@
<BarChart
ref=
"saleChartRef"
domId=
"saleChart"
:height=
"chartHeight"
:colorList=
"colorList"
valueName=
"channel"
></BarChart>
</div>
<div
class=
"trend-box"
>
<div
class=
"patch-title"
>
按年统计客户销售金额的合理性-
<PriceSwitch
class=
"rationality"
unit=
""
isObject
:selectList=
"selectList"
@
selectPrice=
"selectRationality"
></PriceSwitch></div>
<div
class=
"rationality-text"
>
收入占比:
64.89
%
<PriceSwitch
v-show=
"isShowPrice"
style=
"display: inline-block;"
:selectList=
"rationalityPriceList"
@
selectPrice=
"selectPrice"
></PriceSwitch></div>
<div
class=
"patch-title"
>
按年统计客户销售金额的合理性
-
<PriceSwitch
class=
"rationality"
unit=
""
isObject
:selectList=
"selectList"
@
selectPrice=
"selectRationality"
></PriceSwitch></div>
<div
class=
"rationality-text"
>
收入占比:
{{
ratio
}}
%
<PriceSwitch
v-show=
"isShowPrice"
style=
"display: inline-block;"
:selectList=
"rationalityPriceList"
@
selectPrice=
"selectPrice"
></PriceSwitch></div>
<BarChart
ref=
"rationalityChartRef"
domId=
"rationalityChart"
height=
"13.99vh"
label=
"statDate"
:barWidth=
"'50'"
:colorList=
"greenColorList"
valueName=
"num"
></BarChart>
</div>
<div
class=
"trend-box"
>
...
...
@@ -68,7 +68,8 @@ export default {
selectList
:
rationalityList
,
rationalityPriceList
,
serviceList
,
isShowPrice
:
false
isShowPrice
:
false
,
ratio
:
''
}
},
mounted
()
{
...
...
@@ -96,6 +97,7 @@ export default {
if
(
endPrice
)
params
.
endPrice
=
endPrice
const
_data
=
await
this
.
api
.
internal
.
getManageClueSalesAmountRationality
(
params
)
const
_dataList
=
_data
.
data
.
dataList
[
0
].
finishedProductTrendList
this
.
ratio
=
_data
.
data
.
dataList
[
0
].
ratio
this
.
$refs
.
rationalityChartRef
.
drawBar
(
_dataList
)
},
async
getManageClueAnalysis
()
{
...
...
@@ -114,7 +116,8 @@ export default {
this
.
getManageClueSalesAmountRationality
(
'output'
,
val
.
startPrice
,
val
.
endPrice
)
},
selectCorrelation
(
val
)
{
console
.
log
(
val
)
this
.
$set
(
this
.
correlationTooltips
,
'attrName'
,
val
.
value
)
this
.
getManageClueAnalysis
()
}
}
}
...
...
@@ -139,11 +142,11 @@ export default {
/deep/
{
.type-plugin{
.trend-type-box
{
padding-left
:
0
;
}
padding-left
:
5px
;
}
.text
{
font-weight
:
400
;
font-size
:
12
px
;
font-size
:
14
px
;
}
}
}
...
...
src/views/internal/components/constant.js
View file @
d0f2f32
...
...
@@ -427,7 +427,6 @@ const equityPriceList = [
}
]
// const rationalityList = ['门店数', '用户数', '销售数']
const
rationalityList
=
[
{
label
:
'门店数'
,
...
...
@@ -443,7 +442,6 @@ const rationalityList = [
}
]
// const rationalityPriceList = ['0-10万', '10-20万', '20-30万', '30-40万', '40-50万', '≧60万']
const
rationalityPriceList
=
[
{
label
:
'0-10万'
,
...
...
@@ -483,7 +481,17 @@ const rationalityPriceList = [
}
]
const
serviceList
=
[
'服务订阅设备数'
,
'总线索条数'
]
// const serviceList = ['服务订阅设备数', '总线索条数']
const
serviceList
=
[
{
label
:
'服务订阅设备数'
,
value
:
'deviceNum'
},
{
label
:
'总线索条数'
,
value
:
'clueNum'
}
]
const
overViewList
=
[
// 核心指标
...
...
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