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 684f43c8
authored
Sep 11, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.2.0' of
http://192.168.3.233:8090/h5/glsk-data-view-pd
into v2.2.0
2 parents
aceac1d8
5b28835e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
273 additions
and
27 deletions
src/views/internal/components/ViewEdun.vue
src/views/internal/components/ViewIntersts.vue
src/views/internal/components/constant.js
src/views/internal/components/ViewEdun.vue
View file @
684f43c
...
@@ -5,13 +5,13 @@
...
@@ -5,13 +5,13 @@
<inner-tab
class=
"inner-tab"
:list=
"tabList"
:width=
"8.1"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<inner-tab
class=
"inner-tab"
:list=
"tabList"
:width=
"8.1"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<div
class=
"switch-box"
>
<div
class=
"switch-box"
>
<div
class=
"text"
>
收入占比:
{{
ratio
}}
%
</div>
<div
class=
"text"
>
收入占比:
{{
ratio
}}
%
</div>
<PriceSwitch
:selectList=
"priceList"
:unit=
"'万元'"
@
selectPrice=
"selectPrice"
></PriceSwitch>
<PriceSwitch
:selectList=
"priceList"
@
selectPrice=
"selectPrice"
></PriceSwitch>
</div>
</div>
<BarChart
ref=
"edunChartRef"
domId=
"edunChart"
:label=
"'statDate'"
:height=
"'24vh'"
:colorList=
"colorList"
:barWidth=
"'50'"
valueName=
"num"
></BarChart>
<BarChart
ref=
"edunChartRef"
domId=
"edunChart"
:label=
"'statDate'"
:height=
"'24vh'"
:colorList=
"colorList"
:barWidth=
"'50'"
valueName=
"num"
></BarChart>
</div>
</div>
<div
class=
"income-box"
>
<div
class=
"income-box"
>
<div
class=
"patch-title title"
>
月收入趋势
</div>
<div
class=
"patch-title title"
>
月收入趋势
</div>
<LineChart
ref=
"edunLineChartRef"
domId=
"edunLineChart"
:height=
"'28vh'"
:
dataList
.
sync=
"lineDataList"
:tooltipFormatterObj=
"tooltips"
:valName=
"tooltips.attrName
"
></LineChart>
<LineChart
ref=
"edunLineChartRef"
domId=
"edunLineChart"
:height=
"'28vh'"
:
valName=
"'num'
"
></LineChart>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -33,11 +33,10 @@ export default {
...
@@ -33,11 +33,10 @@ export default {
tabList
:
[
'品牌商数'
,
'总金额'
],
tabList
:
[
'品牌商数'
,
'总金额'
],
priceList
:
edunPriceList
,
priceList
:
edunPriceList
,
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
tooltips
:
{
ratio
:
0
,
label
:
'场次'
,
startPrice
:
''
,
attrName
:
'num'
endPrice
:
''
,
},
queryItem
:
'brandnum'
ratio
:
0
}
}
},
},
...
@@ -57,19 +56,26 @@ export default {
...
@@ -57,19 +56,26 @@ export default {
changeTab
(
val
)
{
changeTab
(
val
)
{
switch
(
val
)
{
switch
(
val
)
{
case
0
:
case
0
:
this
.
queryItem
=
'brandnum'
this
.
getManageESalesAmountRationality
(
'brandnum'
)
this
.
getManageESalesAmountRationality
(
'brandnum'
)
break
break
case
1
:
case
1
:
this
.
queryItem
=
'output'
this
.
getManageESalesAmountRationality
(
'output'
)
this
.
getManageESalesAmountRationality
(
'output'
)
break
break
}
}
},
},
selectPrice
(
val
)
{
selectPrice
(
val
)
{
// if (val)
console
.
log
(
val
)
this
.
startPrice
=
val
.
startPrice
||
''
this
.
endPrice
=
val
.
endPrice
||
''
this
.
getManageESalesAmountRationality
()
},
},
async
getManageESalesAmountRationality
(
queryItem
)
{
async
getManageESalesAmountRationality
(
queryItem
)
{
const
params
=
{
const
params
=
{
queryItem
:
queryItem
||
'brandnum'
// brandnum--品牌总数;output--总金额
queryItem
:
queryItem
||
this
.
queryItem
,
// brandnum--品牌总数;output--总金额
startPrice
:
this
.
startPrice
,
endPrice
:
this
.
endPrice
}
}
const
_data
=
await
this
.
api
.
internal
.
getManageESalesAmountRationality
(
params
)
const
_data
=
await
this
.
api
.
internal
.
getManageESalesAmountRationality
(
params
)
const
_dataList
=
_data
.
data
.
dataList
[
0
].
finishedProductTrendList
const
_dataList
=
_data
.
data
.
dataList
[
0
].
finishedProductTrendList
...
...
src/views/internal/components/ViewIntersts.vue
View file @
684f43c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<inner-tab
class=
"inner-tab"
:list=
"tabList"
:width=
"12.4"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<inner-tab
class=
"inner-tab"
:list=
"tabList"
:width=
"12.4"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<div
class=
"switch-box"
>
<div
class=
"switch-box"
>
<div
class=
"text"
>
收入占比:
{{
ratio
}}
%
</div>
<div
class=
"text"
>
收入占比:
{{
ratio
}}
%
</div>
<PriceSwitch
:selectList=
"priceList"
:unit=
"'万元'"
@
selectPrice=
"selectPrice"
></PriceSwitch>
<PriceSwitch
:selectList=
"priceList"
@
selectPrice=
"selectPrice"
></PriceSwitch>
</div>
</div>
<BarChart
ref=
"equityChartRef"
domId=
"equityChart"
:label=
"'statDate'"
:height=
"'24vh'"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips"
valueName=
"num"
></BarChart>
<BarChart
ref=
"equityChartRef"
domId=
"equityChart"
:label=
"'statDate'"
:height=
"'24vh'"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips"
valueName=
"num"
></BarChart>
</div>
</div>
...
@@ -38,7 +38,9 @@ export default {
...
@@ -38,7 +38,9 @@ export default {
attrName
:
'num'
attrName
:
'num'
},
},
ratio
:
0
,
ratio
:
0
,
queryItem
:
''
queryItem
:
'num'
,
startPrice
:
''
,
endPrice
:
''
}
}
},
},
...
@@ -71,13 +73,11 @@ export default {
...
@@ -71,13 +73,11 @@ export default {
break
break
}
}
},
},
async
getManageMemberSalesAmountRationality
(
queryItem
,
startPrice
,
endPrice
)
{
async
getManageMemberSalesAmountRationality
(
queryItem
)
{
const
params
=
{
const
params
=
{
queryItem
:
queryItem
||
'num'
// num--门店数;customerNum--会员人数;output--销售收入
queryItem
:
queryItem
||
this
.
queryItem
,
// num--门店数;customerNum--会员人数;output--销售收入
}
startPrice
:
this
.
startPrice
,
if
(
startPrice
)
{
endPrice
:
this
.
endPrice
params
.
startPrice
=
startPrice
params
.
endPrice
=
endPrice
}
}
const
_data
=
await
this
.
api
.
internal
.
getManageMemberSalesAmountRationality
(
params
)
const
_data
=
await
this
.
api
.
internal
.
getManageMemberSalesAmountRationality
(
params
)
const
_dataList
=
_data
.
data
.
dataList
[
0
].
finishedProductTrendList
const
_dataList
=
_data
.
data
.
dataList
[
0
].
finishedProductTrendList
...
@@ -90,11 +90,9 @@ export default {
...
@@ -90,11 +90,9 @@ export default {
this
.
$refs
.
equityLineChartRef
.
drawLine
(
_dataList
)
this
.
$refs
.
equityLineChartRef
.
drawLine
(
_dataList
)
},
},
selectPrice
(
price
)
{
selectPrice
(
price
)
{
console
.
log
(
price
);
this
.
startPrice
=
price
.
startPrice
||
''
if
(
price
===
'全部'
)
{
this
.
endPrice
=
price
.
endPrice
||
''
this
.
getManageMemberSalesAmountRationality
(
this
.
queryItem
)
this
.
getManageMemberSalesAmountRationality
()
return
}
// let _price = price.
// let _price = price.
}
}
}
}
...
...
src/views/internal/components/constant.js
View file @
684f43c
...
@@ -176,14 +176,256 @@ const digitalMarketingRightSelectList = [
...
@@ -176,14 +176,256 @@ const digitalMarketingRightSelectList = [
]
]
const
digitalMarketingPriceObj
=
{
const
digitalMarketingPriceObj
=
{
merchantOrderlist
:
[
'0-99'
,
'100-199'
,
'200-299'
,
'300-399'
,
'400-499'
,
'500-599'
],
merchantOrderlist
:
[
activityOrderList
:
[
'0-20'
,
'20-40'
,
'40-60'
,
'60-80'
,
'80-100'
,
'100-120'
,
'120-140'
,
'140-160'
,
'160-180'
,
'180-200'
],
{
activityPriceOrderList
:
[
'0-5000'
,
'5000-10000'
,
'10000-15000'
,
'15000-20000'
,
'20000-25000'
,
'25000-30000'
,
'30000-35000'
]
label
:
'0-99元'
,
value
:
'0-99元'
,
startPrice
:
0
,
endPrice
:
99
},
{
label
:
'100-199元'
,
value
:
'100-199元'
,
startPrice
:
100
,
endPrice
:
199
},
{
label
:
'200-299元'
,
value
:
'200-299元'
,
startPrice
:
200
,
endPrice
:
299
},
{
label
:
'300-399元'
,
value
:
'300-399元'
,
startPrice
:
300
,
endPrice
:
399
},
{
label
:
'400-499元'
,
value
:
'400-499元'
,
startPrice
:
400
,
endPrice
:
499
},
{
label
:
'500-599元'
,
value
:
'500-599元'
,
startPrice
:
500
,
endPrice
:
599
}
],
// activityOrderList: ['0-20', '20-40', '40-60', '60-80', '80-100', '100-120', '120-140', '140-160', '160-180', '180-200'],
activityOrderList
:
[
{
label
:
'0-20元'
,
value
:
'0-20元'
,
startPrice
:
0
,
endPrice
:
20
},
{
label
:
'20-40元'
,
value
:
'20-40元'
,
startPrice
:
20
,
endPrice
:
40
},
{
label
:
'40-60元'
,
value
:
'40-60元'
,
startPrice
:
40
,
endPrice
:
60
},
{
label
:
'60-80元'
,
value
:
'60-80元'
,
startPrice
:
60
,
endPrice
:
80
},
{
label
:
'80-100元'
,
value
:
'80-100元'
,
startPrice
:
80
,
endPrice
:
100
},
{
label
:
'100-120元'
,
value
:
'100-120元'
,
startPrice
:
100
,
endPrice
:
120
},
{
label
:
'120-140元'
,
value
:
'120-140元'
,
startPrice
:
120
,
endPrice
:
140
},
{
label
:
'140-160元'
,
value
:
'140-160元'
,
startPrice
:
140
,
endPrice
:
160
},
{
label
:
'160-180元'
,
value
:
'160-180元'
,
startPrice
:
160
,
endPrice
:
180
},
{
label
:
'180-200元'
,
value
:
'180-200元'
,
startPrice
:
180
,
endPrice
:
200
}
],
// activityPriceOrderList: ['0-5000', '5000-10000', '10000-15000', '15000-20000', '20000-25000', '25000-30000', '30000-35000']
activityPriceOrderList
:
[
{
label
:
'0-5000元'
,
value
:
'0-5000元'
,
startPrice
:
0
,
endPrice
:
5000
},
{
label
:
'5000-10000元'
,
value
:
'5000-10000元'
,
startPrice
:
5000
,
endPrice
:
10000
},
{
label
:
'10000-15000元'
,
value
:
'10000-15000元'
,
startPrice
:
10000
,
endPrice
:
15000
},
{
label
:
'15000-20000元'
,
value
:
'15000-20000元'
,
startPrice
:
15000
,
endPrice
:
20000
},
{
label
:
'20000-25000元'
,
value
:
'20000-25000元'
,
startPrice
:
20000
,
endPrice
:
25000
},
{
label
:
'25000-30000元'
,
value
:
'25000-30000元'
,
startPrice
:
25000
,
endPrice
:
30000
},
{
label
:
'30000-35000元'
,
value
:
'30000-35000元'
,
startPrice
:
30000
,
endPrice
:
35000
}
]
}
}
const
edunPriceList
=
[
'0-10'
,
'10-20'
,
'20-30'
,
'30-40'
,
'40-50'
,
'50-60'
,
'60-70'
,
'70-80'
,
'80-90'
,
'90-100'
,
'>100'
]
const
edunPriceList
=
[
{
label
:
'0-10万'
,
value
:
'0-10万'
,
startPrice
:
0
,
endPrice
:
100000
},
{
label
:
'10-20万'
,
value
:
'10-20万'
,
startPrice
:
100000
,
endPrice
:
200000
},
{
label
:
'20-30万'
,
value
:
'20-30万'
,
startPrice
:
200000
,
endPrice
:
300000
},
{
label
:
'30-40万'
,
value
:
'30-40万'
,
startPrice
:
300000
,
endPrice
:
400000
},
{
label
:
'40-50万'
,
value
:
'40-50万'
,
startPrice
:
400000
,
endPrice
:
500000
},
{
label
:
'50-60万'
,
value
:
'50-60万'
,
startPrice
:
500000
,
endPrice
:
600000
},
{
label
:
'60-70万'
,
value
:
'60-70万'
,
startPrice
:
600000
,
endPrice
:
700000
},
{
label
:
'70-80万'
,
value
:
'70-80万'
,
startPrice
:
700000
,
endPrice
:
800000
},
{
label
:
'80-90万'
,
value
:
'80-90万'
,
startPrice
:
800000
,
endPrice
:
900000
},
{
label
:
'90-100万'
,
value
:
'90-100万'
,
startPrice
:
900000
,
endPrice
:
1000000
},
{
label
:
'>100万'
,
value
:
'>100万'
,
startPrice
:
1000000
,
endPrice
:
''
}
]
const
equityPriceList
=
[
'0-1'
,
'1-5'
,
'5-10'
,
'10-20'
,
'>=20'
]
// const equityPriceList = ['0-1', '1-5', '5-10', '10-20', '>=20']
const
equityPriceList
=
[
{
label
:
'0-1万'
,
value
:
'0-1万'
,
startPrice
:
0
,
endPrice
:
10000
},
{
label
:
'1-5万'
,
value
:
'1-5万'
,
startPrice
:
10000
,
endPrice
:
50000
},
{
label
:
'5-10万'
,
value
:
'5-10万'
,
startPrice
:
50000
,
endPrice
:
100000
},
{
label
:
'10-20万'
,
value
:
'10-20万'
,
startPrice
:
100000
,
endPrice
:
200000
},
{
label
:
'>=20'
,
value
:
'>=20'
,
startPrice
:
200000
,
endPrice
:
''
}
]
// const rationalityList = ['门店数', '用户数', '销售数']
// const rationalityList = ['门店数', '用户数', '销售数']
const
rationalityList
=
[
const
rationalityList
=
[
...
...
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