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 c58f87ec
authored
Sep 11, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
tab样式处理
1 parent
c322d1be
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
9 deletions
src/components/Tab.vue
src/views/internal/InternalRight.vue
src/views/internal/components/DigitalMarketingLeft.vue
src/views/internal/components/ViewEdun.vue
src/views/internal/components/ViewIntersts.vue
src/components/Tab.vue
View file @
c58f87e
<
template
>
<
template
>
<div
class=
"tab-box"
>
<div
class=
"tab-box"
>
<div
class=
"tab-item-box"
:style=
"
{ width: width + 'vw' }">
<div
class=
"tab-item-box"
:style=
"
{ width: width + 'vw' }">
<div
:class=
"['tab-item', tabActive == index ? 'tab-item-active' : '']"
:style=
"
{ width:
item
Width + 'vw' }" v-for="(item, index) in list" :key="index" @click="changeTab(index)">
<div
:class=
"['tab-item', tabActive == index ? 'tab-item-active' : '']"
:style=
"
{ width:
(itemWidth) + 'vw','padding-left': paddingWidth + 'vw','padding-right': padding
Width + 'vw' }" v-for="(item, index) in list" :key="index" @click="changeTab(index)">
{{
item
}}
{{
item
}}
</div>
</div>
</div>
</div>
...
@@ -17,7 +17,8 @@ export default {
...
@@ -17,7 +17,8 @@ export default {
default
:
()
=>
[]
default
:
()
=>
[]
},
},
width
:
Number
,
width
:
Number
,
itemWidth
:
Number
itemWidth
:
Number
,
paddingWidth
:
Number
},
},
data
()
{
data
()
{
return
{
return
{
...
...
src/views/internal/InternalRight.vue
View file @
c58f87e
<
template
>
<
template
>
<div
class=
"right"
>
<div
class=
"right"
>
<box-title
title=
"数字化管理"
></box-title>
<box-title
title=
"数字化管理"
></box-title>
<Tab
class=
"tab"
:list=
"tabList"
:width=
"2
5.5"
:itemWidth=
"9
"
@
changeTab=
"changeTab"
></Tab>
<Tab
class=
"tab"
:list=
"tabList"
:width=
"2
4.12"
:paddingWidth=
"1.11
"
@
changeTab=
"changeTab"
></Tab>
<div
class=
"digital-manager-box-content"
>
<div
class=
"digital-manager-box-content"
>
<StatisticsBox
:list=
"digitalMarketingList"
></StatisticsBox>
<StatisticsBox
:list=
"digitalMarketingList"
></StatisticsBox>
<components
:is=
"tabName"
></components>
<components
:is=
"tabName"
></components>
...
...
src/views/internal/components/DigitalMarketingLeft.vue
View file @
c58f87e
...
@@ -57,7 +57,7 @@ export default {
...
@@ -57,7 +57,7 @@ export default {
methods
:
{
methods
:
{
selectVal
(
val
)
{
selectVal
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
this
.
tabShow
=
false
//
this.tabShow = false
switch
(
val
.
val
)
{
switch
(
val
.
val
)
{
case
'registerNum'
:
case
'registerNum'
:
this
.
valueName
=
'registerNum'
this
.
valueName
=
'registerNum'
...
@@ -70,7 +70,7 @@ export default {
...
@@ -70,7 +70,7 @@ export default {
case
'output'
:
case
'output'
:
this
.
valueName
=
'output'
this
.
valueName
=
'output'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingTrendList
)
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingTrendList
)
this
.
tabShow
=
true
//
this.tabShow = true
break
break
case
'activityNum'
:
case
'activityNum'
:
this
.
valueName
=
'activityNum'
this
.
valueName
=
'activityNum'
...
...
src/views/internal/components/ViewEdun.vue
View file @
c58f87e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<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=
"'万元'"
></PriceSwitch>
<PriceSwitch
:selectList=
"priceList"
:unit=
"'万元'"
@
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>
...
@@ -64,6 +64,9 @@ export default {
...
@@ -64,6 +64,9 @@ export default {
break
break
}
}
},
},
selectPrice
(
val
)
{
// if (val)
},
async
getManageESalesAmountRationality
(
queryItem
)
{
async
getManageESalesAmountRationality
(
queryItem
)
{
const
params
=
{
const
params
=
{
queryItem
:
queryItem
||
'brandnum'
// brandnum--品牌总数;output--总金额
queryItem
:
queryItem
||
'brandnum'
// brandnum--品牌总数;output--总金额
...
...
src/views/internal/components/ViewIntersts.vue
View file @
c58f87e
...
@@ -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=
"'万元'"
></PriceSwitch>
<PriceSwitch
:selectList=
"priceList"
:unit=
"'万元'"
@
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>
...
@@ -37,7 +37,8 @@ export default {
...
@@ -37,7 +37,8 @@ export default {
label
:
'场次'
,
label
:
'场次'
,
attrName
:
'num'
attrName
:
'num'
},
},
ratio
:
0
ratio
:
0
,
queryItem
:
''
}
}
},
},
...
@@ -58,19 +59,26 @@ export default {
...
@@ -58,19 +59,26 @@ export default {
switch
(
val
)
{
switch
(
val
)
{
case
0
:
case
0
:
this
.
getManageMemberSalesAmountRationality
(
'num'
)
this
.
getManageMemberSalesAmountRationality
(
'num'
)
this
.
queryItem
=
'num'
break
break
case
1
:
case
1
:
this
.
getManageMemberSalesAmountRationality
(
'customerNum'
)
this
.
getManageMemberSalesAmountRationality
(
'customerNum'
)
this
.
queryItem
=
'customerNum'
break
break
case
2
:
case
2
:
this
.
getManageMemberSalesAmountRationality
(
'output'
)
this
.
getManageMemberSalesAmountRationality
(
'output'
)
this
.
queryItem
=
'output'
break
break
}
}
},
},
async
getManageMemberSalesAmountRationality
(
queryItem
)
{
async
getManageMemberSalesAmountRationality
(
queryItem
,
startPrice
,
endPrice
)
{
const
params
=
{
const
params
=
{
queryItem
:
queryItem
||
'num'
// num--门店数;customerNum--会员人数;output--销售收入
queryItem
:
queryItem
||
'num'
// num--门店数;customerNum--会员人数;output--销售收入
}
}
if
(
startPrice
)
{
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
this
.
ratio
=
_data
.
data
.
dataList
[
0
].
ratio
this
.
ratio
=
_data
.
data
.
dataList
[
0
].
ratio
...
@@ -80,6 +88,14 @@ export default {
...
@@ -80,6 +88,14 @@ export default {
const
_data
=
await
this
.
api
.
internal
.
getManageMemberTrend
()
const
_data
=
await
this
.
api
.
internal
.
getManageMemberTrend
()
const
_dataList
=
_data
.
data
.
dataList
const
_dataList
=
_data
.
data
.
dataList
this
.
$refs
.
equityLineChartRef
.
drawLine
(
_dataList
)
this
.
$refs
.
equityLineChartRef
.
drawLine
(
_dataList
)
},
selectPrice
(
price
)
{
console
.
log
(
price
);
if
(
price
===
'全部'
)
{
this
.
getManageMemberSalesAmountRationality
(
this
.
queryItem
)
return
}
// let _price = price.
}
}
}
}
}
}
...
...
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