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 9936d4b7
authored
Sep 13, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
9c0eba58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
src/views/internal/components/ViewClue.vue
src/views/internal/components/ViewClue.vue
View file @
9936d4b
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</div>
</div>
<div
class=
"trend-box"
>
<div
class=
"trend-box"
>
<div
class=
"patch-title"
>
按年统计客户销售金额的合理性 -
<PriceSwitch
class=
"rationality"
unit=
""
isObject
:selectList=
"selectList"
@
selectPrice=
"selectRationality"
></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>
<div
class=
"rationality-text"
>
收入占比:
{{
ratio
}}
%
<PriceSwitch
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>
<BarChart
ref=
"rationalityChartRef"
domId=
"rationalityChart"
height=
"13.99vh"
label=
"statDate"
:barWidth=
"'50'"
:colorList=
"greenColorList"
valueName=
"num"
></BarChart>
</div>
</div>
<div
class=
"trend-box"
>
<div
class=
"trend-box"
>
...
@@ -68,8 +68,9 @@ export default {
...
@@ -68,8 +68,9 @@ export default {
selectList
:
rationalityList
,
selectList
:
rationalityList
,
rationalityPriceList
,
rationalityPriceList
,
serviceList
,
serviceList
,
isShowPrice
:
false
,
ratio
:
''
,
ratio
:
''
rationality
:
rationalityList
[
0
].
value
,
price
:
{}
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -78,7 +79,7 @@ export default {
...
@@ -78,7 +79,7 @@ export default {
methods
:
{
methods
:
{
init
()
{
init
()
{
this
.
getManageClueTrend
()
this
.
getManageClueTrend
()
this
.
getManageClueSalesAmountRationality
(
'num'
)
this
.
getManageClueSalesAmountRationality
(
rationalityList
[
0
].
value
)
this
.
getManageClueAnalysis
()
this
.
getManageClueAnalysis
()
},
},
async
getManageClueTrend
()
{
async
getManageClueTrend
()
{
...
@@ -107,13 +108,14 @@ export default {
...
@@ -107,13 +108,14 @@ export default {
},
},
selectRationality
(
val
)
{
selectRationality
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
this
.
getManageClueSalesAmountRationality
(
val
.
value
)
this
.
getManageClueSalesAmountRationality
(
val
.
value
,
this
.
price
.
startPrice
,
this
.
price
.
endPrice
)
this
.
isShowPrice
=
val
.
label
===
'销售数'
this
.
rationality
=
val
.
value
},
},
// 只有当是销售数(output)时才会触发此事件
// 只有当是销售数(output)时才会触发此事件
selectPrice
(
val
)
{
selectPrice
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
this
.
getManageClueSalesAmountRationality
(
'output'
,
val
.
startPrice
,
val
.
endPrice
)
this
.
price
=
val
this
.
getManageClueSalesAmountRationality
(
this
.
rationality
,
val
.
startPrice
,
val
.
endPrice
)
},
},
selectCorrelation
(
val
)
{
selectCorrelation
(
val
)
{
this
.
$set
(
this
.
correlationTooltips
,
'attrName'
,
val
.
value
)
this
.
$set
(
this
.
correlationTooltips
,
'attrName'
,
val
.
value
)
...
...
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