Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DA-Platform
Overview
Overview
Details
Activity
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
Berlin
DA-Platform
Commits
b4e25fda
Commit
b4e25fda
authored
May 19, 2020
by
张欣玥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改了一下界面样式
parent
5df74ffa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
22 deletions
+80
-22
App.vue
DAPlatform-front/src/App.vue
+6
-0
imageAnnotiation.vue
...front/src/components/imageAnnotation/imageAnnotiation.vue
+42
-13
layerAnnotation.vue
...-front/src/components/imageAnnotation/layerAnnotation.vue
+31
-8
index.js
DAPlatform-front/src/router/index.js
+1
-1
No files found.
DAPlatform-front/src/App.vue
View file @
b4e25fda
...
@@ -21,4 +21,10 @@ body{
...
@@ -21,4 +21,10 @@ body{
color
:
#2c3e50
;
color
:
#2c3e50
;
margin
:
0
;
margin
:
0
;
}
}
html
,
body
,
#app
{
height
:
100%
;
width
:
100%
;
margin
:
0
;
}
</
style
>
</
style
>
DAPlatform-front/src/components/imageAnnotation/imageAnnotiation.vue
View file @
b4e25fda
<
template
>
<
template
>
<div
class=
"layout"
>
<div
class=
"layout"
:style=
"
{ height : height_res+'px'}"
>
<!-- 工具栏-->
<!-- 工具栏-->
<div
class=
"toolBar"
>
<div
class=
"toolBar"
>
<el-button-group
id=
"start"
>
<el-button-group
id=
"start"
>
...
@@ -35,11 +35,14 @@
...
@@ -35,11 +35,14 @@
<!-- 工作台-->
<!-- 工作台-->
<el-main
class=
"workbench"
>
<el-main
class=
"workbench"
>
<img
src=
"../../assets/logo.png"
>
<img
src=
"../../assets/logo.png"
>
<el-button-group
id=
"buttonBar"
>
<!--
<div
style=
"margin-top: 50px"
>
-->
<el-button
class=
"tool-button"
type=
"primary"
>
移动图层
</el-button>
<el-button-group
id=
"buttonBar"
>
<el-button
class=
"tool-button"
type=
"primary"
>
放大
</el-button>
<el-button
class=
"tool-button"
type=
"primary"
>
移动图层
</el-button>
<el-button
class=
"tool-button"
type=
"primary"
>
缩小
</el-button>
<el-button
class=
"tool-button"
type=
"primary"
>
放大
</el-button>
</el-button-group>
<el-button
class=
"tool-button"
type=
"primary"
>
缩小
</el-button>
</el-button-group>
<!--
</div>
-->
</el-main>
</el-main>
</el-container>
</el-container>
</div>
</div>
...
@@ -50,6 +53,7 @@ export default {
...
@@ -50,6 +53,7 @@ export default {
name
:
'imageAnnotation'
,
name
:
'imageAnnotation'
,
data
(){
data
(){
return
{
return
{
height_res
:
0
,
activeIndex1
:
1
,
activeIndex1
:
1
,
image_list
:
[{
image_list
:
[{
label
:
'image1.jpg'
,
label
:
'image1.jpg'
,
...
@@ -93,7 +97,18 @@ export default {
...
@@ -93,7 +97,18 @@ export default {
}
}
}
}
},
},
mounted
(){
this
.
get_height
();
var
_this
=
this
;
window
.
onresize
=
function
(){
// alert("??");
_this
.
height_res
=
document
.
body
.
clientHeight
-
61
;
}
},
methods
:{
methods
:{
get_height
(){
this
.
height_res
=
document
.
body
.
clientHeight
-
61
;
},
changeToolBar
(
val
){
changeToolBar
(
val
){
this
.
activeIndex1
=
val
this
.
activeIndex1
=
val
},
},
...
@@ -120,28 +135,40 @@ export default {
...
@@ -120,28 +135,40 @@ export default {
<
style
scoped
>
<
style
scoped
>
.layout
{
.layout
{
display
:
flex
;
flex-direction
:
column
;
height
:
100%
;
height
:
100%
;
overflow
:
hidden
;
/*overflow: hidden;*/
background-color
:
#d9ecff
;
}
}
.toolBar
{
.toolBar
{
margin-top
:
20px
;
margin-top
:
20px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
/*background-color: #2c3e50;*/
}
}
.workbench
{
.workbench
{
border
:
2px
solid
#409eff
;
/*border: 2px solid #409eff;*/
margin-left
:
10px
;
margin-left
:
20px
;
margin-right
:
10px
;
margin-right
:
40px
;
border-radius
:
5px
;
box-shadow
:
0px
0px
10px
#dbdbdb
;
background-color
:
white
;
height
:
87%
;
}
}
#buttonBar
{
#buttonBar
{
position
:
fixed
;
position
:
fixed
;
left
:
50%
;
left
:
50%
;
bottom
:
5
0px
;
bottom
:
3
0px
;
}
}
.sidebar
{
.sidebar
{
height
:
87%
;
margin-left
:
50px
;
margin-left
:
50px
;
border
:
2px
solid
#409eff
;
/*border: 2px solid #409eff;*/
border-radius
:
5px
;
box-shadow
:
0px
0px
10px
#dbdbdb
;
background-color
:
white
;
}
}
.img-list-title
{
.img-list-title
{
line-height
:
40px
;
line-height
:
40px
;
...
@@ -150,8 +177,10 @@ export default {
...
@@ -150,8 +177,10 @@ export default {
color
:
white
;
color
:
white
;
}
}
.img-title-list-box
{
.img-title-list-box
{
height
:
500px
;
/*height: 800px;*/
height
:
100%
;
overflow
:
auto
;
overflow
:
auto
;
background-color
:
white
;
}
}
.add-file-btn-group
>>>
button
{
.add-file-btn-group
>>>
button
{
margin-top
:
3px
;
margin-top
:
3px
;
...
...
DAPlatform-front/src/components/imageAnnotation/layerAnnotation.vue
View file @
b4e25fda
<
template
>
<
template
>
<div
class=
"layout"
>
<div
class=
"layout"
:style=
"
{ height : height_res+'px'}"
>
<!-- 工具栏-->
<!-- 工具栏-->
<div
class=
"toolBar"
>
<div
class=
"toolBar"
>
<el-button-group
id=
"start"
>
<el-button-group
id=
"start"
>
<el-button
class=
"tool-button"
type=
"primary"
>
保存
</el-button>
<el-button
class=
"tool-button"
type=
"primary"
>
保存
</el-button>
<el-button
class=
"tool-button"
type=
"primary"
>
退出
</el-button>
<el-button
class=
"tool-button"
type=
"primary"
>
退出
</el-button>
</el-button-group>
</el-button-group>
<el-button-group
style=
"margin-right: 10px ; "
>
<el-button-group
style=
"margin-right: 10px ;
line-height: 40px;vertical-align: middle
"
>
<el-button
class=
"tool-button"
type=
"primary"
style=
"margin-right: 10px"
>
飞入坐标点
</el-button>
<el-button
class=
"tool-button"
type=
"primary"
style=
"margin-right: 10px"
>
飞入坐标点
</el-button>
<a>
X:
</a>
<a>
X:
</a>
<input
type=
"text"
style=
"width: 30px"
>
<input
type=
"text"
style=
"width: 30px"
>
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
name
:
'layerAnnotation'
,
name
:
'layerAnnotation'
,
data
(){
data
(){
return
{
return
{
height_res
:
0
,
Xpoint
:
0
,
Xpoint
:
0
,
Ypoint
:
0
,
Ypoint
:
0
,
activeIndex1
:
1
,
activeIndex1
:
1
,
...
@@ -101,7 +102,18 @@
...
@@ -101,7 +102,18 @@
}
}
}
}
},
},
mounted
(){
this
.
get_height
();
var
_this
=
this
;
window
.
onresize
=
function
(){
// alert("??");
_this
.
height_res
=
document
.
body
.
clientHeight
-
61
;
}
},
methods
:{
methods
:{
get_height
(){
this
.
height_res
=
document
.
body
.
clientHeight
-
61
;
},
changeToolBar
(
val
){
changeToolBar
(
val
){
this
.
activeIndex1
=
val
this
.
activeIndex1
=
val
},
},
...
@@ -128,8 +140,11 @@
...
@@ -128,8 +140,11 @@
<
style
scoped
>
<
style
scoped
>
.layout
{
.layout
{
display
:
flex
;
flex-direction
:
column
;
height
:
100%
;
height
:
100%
;
overflow
:
hidden
;
/*overflow: hidden;*/
background-color
:
#d9ecff
;
}
}
.toolBar
{
.toolBar
{
...
@@ -137,19 +152,27 @@
...
@@ -137,19 +152,27 @@
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
.workbench
{
.workbench
{
border
:
2px
solid
#409eff
;
/*border: 2px solid #409eff;*/
margin-left
:
10px
;
margin-left
:
20px
;
margin-right
:
10px
;
margin-right
:
40px
;
border-radius
:
5px
;
box-shadow
:
0px
0px
10px
#dbdbdb
;
background-color
:
white
;
height
:
87%
;
}
}
#buttonBar
{
#buttonBar
{
position
:
fixed
;
position
:
fixed
;
left
:
50%
;
left
:
50%
;
bottom
:
5
0px
;
bottom
:
3
0px
;
}
}
.sidebar
{
.sidebar
{
height
:
87%
;
margin-left
:
50px
;
margin-left
:
50px
;
border
:
2px
solid
#409eff
;
/*border: 2px solid #409eff;*/
border-radius
:
5px
;
box-shadow
:
0px
0px
10px
#dbdbdb
;
background-color
:
white
;
}
}
.img-list-title
{
.img-list-title
{
line-height
:
40px
;
line-height
:
40px
;
...
...
DAPlatform-front/src/router/index.js
View file @
b4e25fda
...
@@ -12,7 +12,7 @@ import ongoingtask from '../components/ongoingtask'
...
@@ -12,7 +12,7 @@ import ongoingtask from '../components/ongoingtask'
import
SelectText
from
'../components/textAnnotation/SelectText'
import
SelectText
from
'../components/textAnnotation/SelectText'
import
Table
from
'../components/textAnnotation/Table'
import
Table
from
'../components/textAnnotation/Table'
import
imageAnnotiation
from
'../components/imageAnnotation/imageAnnotiation'
import
imageAnnotiation
from
'../components/imageAnnotation/imageAnnotiation'
import
layerAnnotation
from
"../components/imageAnnotation/layerAnnotation"
;
import
layerAnnotation
from
'../components/imageAnnotation/layerAnnotation'
;
Vue
.
use
(
Router
)
Vue
.
use
(
Router
)
...
...
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