Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FTT_Board
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
Administrator
FTT_Board
Commits
ad094813
Commit
ad094813
authored
Sep 06, 2019
by
王文琼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
头部标题绑定
parent
b8bb00b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
11 deletions
+31
-11
App.vue
FTT.Board.VueUI/src/App.vue
+1
-1
header.vue
FTT.Board.VueUI/src/views/board/chartDemo/header.vue
+22
-4
index.vue
FTT.Board.VueUI/src/views/board/chartDemo/index.vue
+5
-4
header.vue
FTT.Board.VueUI/src/views/board/chartDemo1/header.vue
+3
-2
No files found.
FTT.Board.VueUI/src/App.vue
View file @
ad094813
...
@@ -63,6 +63,6 @@ html::-webkit-scrollbar {
...
@@ -63,6 +63,6 @@ html::-webkit-scrollbar {
width
:
0px
;
width
:
0px
;
}
}
#app
div
{
#app
div
{
overflow
:
hidden
;
/* overflow: hidden; */
}
}
</
style
>
</
style
>
FTT.Board.VueUI/src/views/board/chartDemo/header.vue
View file @
ad094813
<
template
>
<
template
>
<!--头部-->
<!--头部-->
<div
class=
"header"
>
<div
class=
"header"
>
飞天兔数字工厂大数据展示
<!-- 飞天兔数字工厂大数据展示 -->
<div
class=
"header_title"
>
<el-input
class=
"input"
v-model=
"input"
placeholder=
"请输入您的标题"
></el-input>
</div>
<a
href=
"javascript:;"
class=
"a-access"
>
<a
href=
"javascript:;"
class=
"a-access"
>
<button
class=
"button type1"
@
click=
"created"
>
生成
</button>
<button
class=
"button type1"
@
click=
"created"
>
生成
</button>
</a>
</a>
...
@@ -13,17 +16,18 @@ export default {
...
@@ -13,17 +16,18 @@ export default {
name
:
"chartHeader"
,
name
:
"chartHeader"
,
data
()
{
data
()
{
return
{
return
{
// key: value
input
:
""
};
};
},
},
// props:{
// props:{
// chartList:Array,
// chartList:Array,
// selectChartList:Array
// selectChartList:Array
// },
// },
methods
:
{
methods
:
{
created
()
{
created
()
{
this
.
$emit
(
"created"
);
this
.
$emit
(
"created"
,
this
.
input
);
console
.
log
(
"我要去生成了"
);
console
.
log
(
"我要去生成了"
,
this
.
input
);
}
}
}
}
};
};
...
@@ -39,12 +43,26 @@ export default {
...
@@ -39,12 +43,26 @@ export default {
text-align
:
center
;
text-align
:
center
;
background
:
url(../../../assets/image/chartHeaderBg.png)
top
center
no-repeat
;
background
:
url(../../../assets/image/chartHeaderBg.png)
top
center
no-repeat
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
}
.header
a
.a-access
{
.header
a
.a-access
{
position
:
absolute
;
position
:
absolute
;
right
:
3%
;
right
:
3%
;
top
:
-18%
;
top
:
-18%
;
}
}
.header_title
{
height
:
50px
;
width
:
28%
;
display
:
flex
;
}
/
deep
/
.el-input--small
.el-input__inner
{
background
:
none
;
border
:
1px
solid
#00ffff
;
color
:
#00ffff
;
}
.button
{
.button
{
position
:
relative
;
position
:
relative
;
padding
:
0.5em
1.5em
;
padding
:
0.5em
1.5em
;
...
...
FTT.Board.VueUI/src/views/board/chartDemo/index.vue
View file @
ad094813
...
@@ -180,10 +180,11 @@ export default {
...
@@ -180,10 +180,11 @@ export default {
chartMain
chartMain
},
},
methods
:
{
methods
:
{
created
()
{
created
(
input
)
{
console
.
log
(
"1111"
+
JSON
.
stringify
(
this
.
chartListLeft
)
)
console
.
log
(
"1111"
+
input
)
console
.
log
(
"222222222"
+
JSON
.
stringify
(
this
.
chartListMain
))
console
.
log
(
"222222222"
+
JSON
.
stringify
(
this
.
chartListMain
))
console
.
log
(
"3333"
+
JSON
.
stringify
(
this
.
chartListRight
))
console
.
log
(
"3333"
+
JSON
.
stringify
(
this
.
chartListRight
))
localStorage
.
setItem
(
"chartListtitle"
,
input
);
localStorage
.
setItem
(
"chartListLeft"
,
JSON
.
stringify
(
this
.
chartListLeft
));
localStorage
.
setItem
(
"chartListLeft"
,
JSON
.
stringify
(
this
.
chartListLeft
));
localStorage
.
setItem
(
"chartListMain"
,
JSON
.
stringify
(
this
.
chartListMain
));
localStorage
.
setItem
(
"chartListMain"
,
JSON
.
stringify
(
this
.
chartListMain
));
localStorage
.
setItem
(
"chartListRight"
,
JSON
.
stringify
(
this
.
chartListRight
));
localStorage
.
setItem
(
"chartListRight"
,
JSON
.
stringify
(
this
.
chartListRight
));
...
@@ -202,7 +203,7 @@ export default {
...
@@ -202,7 +203,7 @@ export default {
<
style
>
<
style
>
.el-header
{
.el-header
{
background-color
:
#040f3c
;
background-color
:
#040f3c
!important
;
}
}
div
{
div
{
overflow
:
initial
!important
;
overflow
:
initial
!important
;
...
...
FTT.Board.VueUI/src/views/board/chartDemo1/header.vue
View file @
ad094813
<
template
>
<
template
>
<!--头部-->
<!--头部-->
<div
class=
"header"
>
<div
class=
"header"
>
飞天兔数字工厂大数据展示
<div
style=
"width:30%;margin:0 auto;overflow:hidden !important; white-space: nowrap; text-overflow: ellipsis;"
>
{{
title
}}
</div>
<!--
<a
href=
"javascript:;"
class=
"a-access"
>
<!--
<a
href=
"javascript:;"
class=
"a-access"
>
<button
class=
"button type1"
>
<button
class=
"button type1"
>
返回
返回
...
@@ -15,7 +16,7 @@
...
@@ -15,7 +16,7 @@
name
:
"chartHeader"
,
name
:
"chartHeader"
,
data
()
{
data
()
{
return
{
return
{
// key: value
title
:
localStorage
.
getItem
(
"chartListtitle"
),
}
}
},
},
methods
:
{
methods
:
{
...
...
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