Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a80c2f0b
authored
2022-11-16 11:16:43 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:首页设配
1 parent
640def75
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
src/views/home/index.scss
src/views/home/index.vue
src/views/home/index.scss
View file @
a80c2f0
.home
{
display
:
flex
;
justify-content
:
space-between
;
height
:
100%
;
.flexst
{
display
:
flex
;
...
...
@@ -48,6 +49,7 @@
.home-left
{
width
:
70%
;
padding-right
:
3px
;
height
:
100%
;
.list-title
{
overflow
:
hidden
;
...
...
@@ -66,6 +68,11 @@
}
}
.box-mountNode
{
flex
:
1
;
height
:
calc
(
100%
-
500px
);
}
.home-right
{
padding-left
:
4px
;
width
:
30%
;
...
...
src/views/home/index.vue
View file @
a80c2f0
...
...
@@ -59,7 +59,8 @@
</el-card>
</el-col>
</el-row>
<el-card
shadow=
"hover"
class=
"marginTop10"
:body-style=
"
{ paddingRight: '6px' }">
<el-card
shadow=
"hover"
class=
"marginTop10 box-mountNode"
id=
"mountNodeCon"
:body-style=
"
{ padding: '8px 6px 0 6px' }">
<div
id=
"mountNode"
></div>
</el-card>
</div>
...
...
@@ -208,13 +209,11 @@ export default {
window
.
open
(
href
,
'_blank'
);
},
buildChart
()
{
let
height
=
document
.
getElementById
(
"mountNodeCon"
).
offsetHeight
-
20
var
chart
=
new
G2
.
Chart
({
container
:
'mountNode'
,
height
:
205
height
:
height
});
const
e
=
document
.
createEvent
(
'Event'
)
e
.
initEvent
(
'resize'
,
true
,
true
)
window
.
dispatchEvent
(
e
)
chart
.
source
(
this
.
chartData
);
chart
.
scale
({
value
:
{
...
...
Please
register
or
sign in
to post a comment