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 0a03fb99
authored
Jul 11, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化跳转
1 parent
67a8fd1c
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
18 deletions
src/components/PieChart.vue
src/components/Ranking.vue
src/views/home/solar/ContentRight.vue
src/views/home/solar/StorageContent.vue
src/views/home/solar/purchaseRank.vue
src/views/solarDetail/index.vue
src/components/PieChart.vue
View file @
0a03fb9
...
@@ -126,7 +126,6 @@ export default {
...
@@ -126,7 +126,6 @@ export default {
fontWeight
:
'bold'
,
fontWeight
:
'bold'
,
color
:
'#fff'
,
color
:
'#fff'
,
formatter
(
param
)
{
formatter
(
param
)
{
console
.
log
(
param
)
}
}
}
}
},
},
...
...
src/components/Ranking.vue
View file @
0a03fb9
...
@@ -5,13 +5,14 @@
...
@@ -5,13 +5,14 @@
<template
v-if=
"inx === 0"
>
<template
v-if=
"inx === 0"
>
<div
class=
"ranking-box-item-left"
>
<div
class=
"ranking-box-item-left"
>
<div
class=
"circle"
:style=
"
{ 'background-image': index
< 3
?
RankColor
[
index
]
:
''
}"
>
{{
index
+
1
}}
</div>
<div
class=
"circle"
:style=
"
{ 'background-image': index
< 3
?
RankColor
[
index
]
:
''
}"
>
{{
index
+
1
}}
</div>
<div
class=
"text"
>
{{
item
[
itm
.
name
]
}}
</div>
<!-- 证书超过滚动显示 -->
<!-- 证书超过滚动显示 -->
<template
v-if=
"!isMultiple"
>
<!--
<template
v-if=
"!isMultiple"
>
<marquee
class=
"marquee text"
:direction=
"directionTimer"
:delay=
"delayTimer"
:text=
"item[itm.name]"
/>
<marquee
class=
"marquee text"
:direction=
"directionTimer"
:delay=
"delayTimer"
:text=
"item[itm.name]"
/>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<div
class=
"text"
>
{{
item
[
itm
.
name
]
}}
</div>
<div
class=
"text"
>
{{
item
[
itm
.
name
]
}}
</div>
</
template
>
</
template
>
--
>
</div>
</div>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
...
@@ -24,7 +25,6 @@
...
@@ -24,7 +25,6 @@
<
script
>
<
script
>
import
datas
from
'@/utils/data'
import
datas
from
'@/utils/data'
import
router
from
'../router'
export
default
{
export
default
{
name
:
'Ranking'
,
name
:
'Ranking'
,
props
:
{
props
:
{
...
@@ -52,14 +52,12 @@ export default {
...
@@ -52,14 +52,12 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{},
},
methods
:
{
methods
:
{
// 跳转详情页面
// 跳转详情页面
goDetailPage
(
item
)
{
goDetailPage
(
item
)
{
console
.
log
(
item
)
this
.
$emit
(
'goDetailPage'
,
item
)
router
.
push
(
'/solarDetail'
)
}
}
}
}
}
}
...
...
src/views/home/solar/ContentRight.vue
View file @
0a03fb9
...
@@ -8,23 +8,23 @@
...
@@ -8,23 +8,23 @@
<
template
>
<
template
>
<div
class=
"right"
>
<div
class=
"right"
>
<!-- 右侧第一个盒子 -->
<!-- 右侧第一个盒子 -->
<
purchaseRank></p
urchaseRank>
<
PurchaseRank></P
urchaseRank>
<!-- 右侧第二个盒子 -->
<!-- 右侧第二个盒子 -->
<
purchaseProgress></p
urchaseProgress>
<
PurchaseProgress></P
urchaseProgress>
<!-- 右侧第三个盒子 -->
<!-- 右侧第三个盒子 -->
<PurchasePropertion></PurchasePropertion>
<PurchasePropertion></PurchasePropertion>
</div>
</div>
</
template
>
</
template
>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
purchaseRank
from
'./purchaseRank.vue
'
import
PurchaseRank
from
'./PurchaseRank
'
import
purchaseProgress
from
'./purchaseProgress.vue
'
import
PurchaseProgress
from
'./PurchaseProgress
'
import
PurchasePropertion
from
'./
purchasePropertion.vue
'
import
PurchasePropertion
from
'./
PurchasePropertion
'
export
default
{
export
default
{
name
:
'ContentRight'
,
name
:
'ContentRight'
,
components
:
{
components
:
{
p
urchaseRank
,
P
urchaseRank
,
p
urchaseProgress
,
P
urchaseProgress
,
PurchasePropertion
PurchasePropertion
},
},
data
()
{
data
()
{
...
...
src/views/home/solar/StorageContent.vue
View file @
0a03fb9
<
template
>
<
template
>
<div
class=
"storage-box"
>
<div
class=
"storage-box"
>
<box-title
title=
"入库使用情况"
></box-title>
<box-title
title=
"入库使用情况"
></box-title>
<pie-chart
-shadow
:id=
"chart.id"
:list=
"listData"
:height=
"chart.height"
:colors=
"chart.colors"
></pie-chart-shadow
>
<pie-chart
:id=
"chart.id"
:list=
"listData"
:height=
"chart.height"
:colors=
"chart.colors"
></pie-chart
>
<Legend
class=
"legend"
:list=
"listData"
:legentList=
"legentList"
:colors=
"chart.colors"
></Legend>
<Legend
class=
"legend"
:list=
"listData"
:legentList=
"legentList"
:colors=
"chart.colors"
></Legend>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/home/solar/purchaseRank.vue
View file @
0a03fb9
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</div>
</div>
<!-- 门店排行 -->
<!-- 门店排行 -->
<div
class=
"merchant-box"
>
<div
class=
"merchant-box"
>
<ranking
:rankingsList=
"merchantsList"
:rankingDataObj=
"merchantsDataObj"
:isMultiple=
"false"
></ranking>
<ranking
:rankingsList=
"merchantsList"
:rankingDataObj=
"merchantsDataObj"
:isMultiple=
"false"
@
goDetailPage=
"goDetailPage"
></ranking>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -85,6 +85,11 @@ export default {
...
@@ -85,6 +85,11 @@ export default {
console
.
log
(
item
)
console
.
log
(
item
)
this
.
purchase
=
item
this
.
purchase
=
item
this
.
switchPurchase
()
this
.
switchPurchase
()
},
// 跳转太阳膜详情页
goDetailPage
(
item
)
{
console
.
log
(
item
)
this
.
$router
.
push
({
name
:
'solarDetail'
,
params
:
item
})
}
}
}
}
}
}
...
...
src/views/solarDetail/index.vue
View file @
0a03fb9
...
@@ -232,7 +232,9 @@ export default {
...
@@ -232,7 +232,9 @@ export default {
selfPickLegendColors
:
[
'#16E193'
,
'#747DFF'
,
'#E588FF'
,
'#34AFFF'
,
'#FFC200'
,
'#EB6001'
]
selfPickLegendColors
:
[
'#16E193'
,
'#747DFF'
,
'#E588FF'
,
'#34AFFF'
,
'#FFC200'
,
'#EB6001'
]
}
}
},
},
mounted
()
{},
mounted
()
{
console
.
log
(
this
.
$route
.
params
,
'000'
);
},
methods
:
{
methods
:
{
init
()
{
init
()
{
const
p
=
new
Promise
((
resolve
)
=>
{
const
p
=
new
Promise
((
resolve
)
=>
{
...
...
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