Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shld-databoard-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘自豪 Rambo Pan
shld-databoard-ui
Commits
3534f43e
Commit
3534f43e
authored
Sep 12, 2023
by
王礼鸿 Baimax Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营业额详情提交
parent
93b3b0fd
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
494 additions
and
7 deletions
+494
-7
index.css
src/module/databoard/assets/index.css
+1
-1
ring-pie-chart.vue
src/module/databoard/components/chart/ring-pie-chart.vue
+5
-1
title-content-mark.vue
...module/databoard/components/layout/title-content-mark.vue
+4
-1
turnover-detail.vue
src/module/databoard/databoard/turnover-detail.vue
+468
-0
index.vue
src/module/databoard/index.vue
+10
-4
index_router.js
src/module/index/router/index_router.js
+6
-0
No files found.
src/module/databoard/assets/index.css
View file @
3534f43e
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
--container-border-color
:
#0d53b7
;
/* 容器边框色 */
--container-border-color
:
#0d53b7
;
/* 容器边框色 */
--container-shadow-color
:
#0930A9
;
/* 容器阴影色 */
--container-shadow-color
:
#0930A9
;
/* 容器阴影色 */
--corner-background-color
:
#0E5FFF
;
/* 容器角标色 */
--corner-background-color
:
#0E5FFF
;
/* 容器角标色 */
--card-background-color
:
#041755
66
;
/* 卡片背景色 */
--card-background-color
:
#041755
;
/* 卡片背景色 */
--card-border1-color
:
#3673A3
;
/* 卡片边框色1 */
--card-border1-color
:
#3673A3
;
/* 卡片边框色1 */
--card-border2-color
:
#19EBFF
;
/* 卡片边框色2 */
--card-border2-color
:
#19EBFF
;
/* 卡片边框色2 */
--white-text-color
:
white
;
/* 白色文本 */
--white-text-color
:
white
;
/* 白色文本 */
...
...
src/module/databoard/components/chart/ring-pie-chart.vue
View file @
3534f43e
...
@@ -14,7 +14,7 @@ export default {
...
@@ -14,7 +14,7 @@ export default {
},
},
series
:
[
series
:
[
{
{
name
:
''
,
name
:
this
.
name
,
type
:
'pie'
,
type
:
'pie'
,
radius
:
[
'40%'
,
'70%'
],
radius
:
[
'40%'
,
'70%'
],
avoidLabelOverlap
:
false
,
avoidLabelOverlap
:
false
,
...
@@ -46,6 +46,10 @@ export default {
...
@@ -46,6 +46,10 @@ export default {
data
(
newValue
,
oldValue
){
data
(
newValue
,
oldValue
){
this
.
option
.
data
=
newValue
;
this
.
option
.
data
=
newValue
;
this
.
chart
.
setOption
(
this
.
option
);
this
.
chart
.
setOption
(
this
.
option
);
},
name
(
newName
,
oldName
){
this
.
option
.
series
.
name
=
newName
;
this
.
chart
.
setOption
(
this
.
option
);
}
}
},
},
methods
:
{
methods
:
{
...
...
src/module/databoard/components/layout/title-content-mark.vue
View file @
3534f43e
<
template
>
<
template
>
<div
class=
"bd"
:class=
"
{'center-bd': isCenter}">
<div
class=
"bd"
:class=
"
{'center-bd': isCenter}">
<div
class=
"title"
v-if=
"title"
:class=
"
{'center-title': isCenter}" :style="{'--titleHeight': titleHeight}">
<div
class=
"title"
v-if=
"title"
:class=
"
{'center-title': isCenter}" :style="
titleStyle,
{'--titleHeight': titleHeight}">
{{
title
}}
{{
title
}}
</div>
</div>
<div
class=
"content"
:style=
"
{'--titleHeight': titleHeight}">
<div
class=
"content"
:style=
"
{'--titleHeight': titleHeight}">
...
@@ -47,6 +47,9 @@ export default {
...
@@ -47,6 +47,9 @@ export default {
isBold
:{
isBold
:{
type
:
Boolean
,
type
:
Boolean
,
},
},
titleStyle
:{
type
:
[
String
,
Object
],
},
contentStyle
:{
contentStyle
:{
type
:
[
String
,
Object
],
type
:
[
String
,
Object
],
},
},
...
...
src/module/databoard/databoard/turnover-detail.vue
0 → 100644
View file @
3534f43e
This diff is collapsed.
Click to expand it.
src/module/databoard/index.vue
View file @
3534f43e
<
template
>
<
template
>
<div
class=
"main"
@
click=
"testClick"
>
<div
class=
"main"
>
<div
class=
"middle"
>
<div
class=
"middle"
>
<display-board
class=
"trade_left"
title=
"营业情况"
>
<display-board
class=
"trade_left"
title=
"营业情况"
>
<div
style=
"height: 100%; display: flex; flex-direction: column; justify-content: space-around; padding: 0 1rem 0 1rem;"
>
<div
style=
"height: 100%; display: flex; flex-direction: column; justify-content: space-around; padding: 0 1rem 0 1rem;"
>
<contrast-card
v-for=
"data in mockData.yyqk"
style=
"height: 28%;"
>
<contrast-card
v-for=
"data in mockData.yyqk"
style=
"height: 28%;"
@
click
.
native=
"routerTo(paths[data.title])"
>
<title-content-mark
style=
"width: 40%;color: #369afa;float: left;"
:title=
"data.title"
:content=
"data.amount"
:mark=
"data.unit"
/>
<title-content-mark
style=
"width: 40%;color: #369afa;float: left;"
:title=
"data.title"
:content=
"data.amount"
:mark=
"data.unit"
/>
<div
style=
"width: 60%; height: 100%; float:left; padding: 4% 4% 0 12%; line-height: 26px;; display: flex; align-items: center;"
>
<div
style=
"width: 60%; height: 100%; float:left; padding: 4% 4% 0 12%; line-height: 26px;; display: flex; align-items: center;"
>
<table-column
style=
"float: left;width: 25%;"
:data=
"data.hb"
name=
"title"
/>
<table-column
style=
"float: left;width: 25%;"
:data=
"data.hb"
name=
"title"
/>
...
@@ -104,7 +104,6 @@ import MainBarChart from "./components/chart/main-bar-chart.vue";
...
@@ -104,7 +104,6 @@ import MainBarChart from "./components/chart/main-bar-chart.vue";
import
WinnersList
from
"./components/card/winners-list.vue"
;
import
WinnersList
from
"./components/card/winners-list.vue"
;
import
TitleContentMark
from
"./components/layout/title-content-mark.vue"
;
import
TitleContentMark
from
"./components/layout/title-content-mark.vue"
;
import
TableColumn
from
"./components/table/table-column.vue"
;
import
TableColumn
from
"./components/table/table-column.vue"
;
import
*
as
echarts
from
"_echarts@5.4.3@echarts"
;
import
RingPieChart
from
"./components/chart/ring-pie-chart.vue"
;
import
RingPieChart
from
"./components/chart/ring-pie-chart.vue"
;
export
default
{
export
default
{
...
@@ -348,6 +347,11 @@ export default {
...
@@ -348,6 +347,11 @@ export default {
]
]
},
},
},
},
paths
:{
"营业额"
:
"/turnover-detail"
,
"成本"
:
"/turnover-detail"
,
"毛利"
:
"/turnover-detail"
,
},
charts
:{}
charts
:{}
}
}
},
},
...
@@ -364,7 +368,9 @@ export default {
...
@@ -364,7 +368,9 @@ export default {
this
.
charts
[
chartsKey
].
resize
();
this
.
charts
[
chartsKey
].
resize
();
}
}
},
},
testClick
(){
routerTo
(
path
){
console
.
log
(
path
)
this
.
$router
.
push
({
path
:
path
});
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/module/index/router/index_router.js
View file @
3534f43e
...
@@ -4,6 +4,7 @@ import Main from '../index.vue'
...
@@ -4,6 +4,7 @@ import Main from '../index.vue'
import
index
from
'../../databoard/index.vue'
import
index
from
'../../databoard/index.vue'
import
MainBarChart
from
"../../databoard/components/chart/main-bar-chart.vue"
;
import
MainBarChart
from
"../../databoard/components/chart/main-bar-chart.vue"
;
import
WinnersList
from
"../../databoard/components/card/winners-list.vue"
;
import
WinnersList
from
"../../databoard/components/card/winners-list.vue"
;
import
TurnoverDetail
from
"../../databoard/databoard/turnover-detail.vue"
;
Vue
.
use
(
Router
)
Vue
.
use
(
Router
)
...
@@ -28,6 +29,11 @@ export default new Router({
...
@@ -28,6 +29,11 @@ export default new Router({
path
:
'/winner_list'
,
path
:
'/winner_list'
,
name
:
'winnerList'
,
name
:
'winnerList'
,
component
:
WinnersList
component
:
WinnersList
},
{
path
:
'/turnover-detail'
,
name
:
'turnoverDetail'
,
component
:
TurnoverDetail
}
}
]
]
})
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment