Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yuji-dataview
Project
Project
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
郭铭瑶
yuji-dataview
Commits
cedc12b4
Commit
cedc12b4
authored
Aug 26, 2020
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改海洋牧场左右移出效果
parent
28ea071b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
458 additions
and
18 deletions
+458
-18
place-list.vue
src/views/components/seedling/place-list.vue
+5
-1
ocean-farm copy.vue
src/views/ocean-farm copy.vue
+432
-0
ocean-farm.vue
src/views/ocean-farm.vue
+19
-16
seedling.vue
src/views/seedling.vue
+2
-1
No files found.
src/views/components/seedling/place-list.vue
View file @
cedc12b4
...
...
@@ -6,7 +6,7 @@
</i-col>
</Row>
<m-scroll
:length=
"model.length"
:limit=
"12"
>
<Row
class=
"row
"
v-for=
"(row, rowIndex) in model"
:key=
"rowIndex"
:style=
"`$
{row.count >= 15 ? 'color:#d04e4b': ''}`">
<Row
@
click
.
native=
"$emit('select')"
class=
"row item
"
v-for=
"(row, rowIndex) in model"
:key=
"rowIndex"
:style=
"`$
{row.count >= 15 ? 'color:#d04e4b': ''}`">
<i-col
class=
"col"
v-for=
"col in layout"
:key=
"col.key"
:span=
"col.width"
:offset=
"col.offset || 0"
>
<!--
<div
v-if=
"typeof row[col.key] === 'number'"
:style=
"`text-align: $
{col.align || 'left'};color: ${col.color};width:100%;`">
<m-count
:value=
"row[col.key]"
:decimal=
"0"
/>
...
...
@@ -73,6 +73,10 @@ export default {
font-size 1rem
&:nth-child(2n)
background-color $color-map(0.15)
&.item
cursor pointer
&:hover
color $edgeColor
.col
padding 0 .5rem
display flex
...
...
src/views/ocean-farm copy.vue
0 → 100644
View file @
cedc12b4
This diff is collapsed.
Click to expand it.
src/views/ocean-farm.vue
View file @
cedc12b4
<
template
>
<m-grid
area=
"grid"
:template=
"[
'left . right',
]"
columns=
"1fr 2fr 1fr"
rows=
"1fr"
gap=
"0.5rem"
>
<div
class=
"ocean-farm"
>
<div
id=
"oceanMap"
/>
<div
v-if=
"showDetail"
class=
"back-btn"
@
click=
"handleBack"
>
<Icon
type=
"md-arrow-round-back"
/>
返回
...
...
@@ -86,7 +79,7 @@
</m-card>
</div>
</m-animate>
</
m-grid
>
</
div
>
</
template
>
<
script
>
...
...
@@ -297,16 +290,16 @@ export default {
<p><span>建设类型:</span>
${
type
}
</p>
</div>
`
}).
open
(
this
.
map
,
location
)
})
this
.
markerInfo
.
open
(
this
.
map
,
location
)
})
return
marker
})
this
.
map
.
add
(
this
.
mapMarker
)
},
handleBack
()
{
this
.
showDetail
=
false
this
.
polygonInfo
&&
this
.
polygonInfo
.
close
()
this
.
markerInfo
&&
this
.
markerInfo
.
close
()
this
.
showDetail
=
false
if
(
this
.
mapMarker
.
length
>
0
)
{
this
.
mapMarker
.
forEach
(
marker
=>
{
marker
.
setIcon
(
this
.
preIcon
)
...
...
@@ -338,6 +331,8 @@ export default {
</
script
>
<
style
lang=
"stylus"
scoped
>
.ocean-farm
position relative
#oceanMap
z-index 9
width 100%
...
...
@@ -351,7 +346,7 @@ export default {
height @width
cursor pointer
z-index 9999
transition all
1
s ease-in-out
transition all
.5
s ease-in-out
transform-origin center
&.on
right 1rem
...
...
@@ -376,13 +371,17 @@ export default {
font-family $font-pang !important
font-size 1.5rem !important
.content
width 25%
height auto
display flex
flex-direction column
width 100%
height 100%
overflow hidden
position absolute
z-index 10
top .5rem
bottom 0
>div
margin-
top
.5rem
margin-
bottom
.5rem
&.part-left,
&.part-right
>div
...
...
@@ -390,7 +389,11 @@ export default {
flex 1
&:nth-child(2)
flex 2
&.part-right
right .5rem
&.part-left,
&.part-left2
left .5rem
>div
flex 1
</
style
>
...
...
src/views/seedling.vue
View file @
cedc12b4
...
...
@@ -34,7 +34,7 @@
<AreaCount
v-if=
"showProvince"
:data=
"areaData"
/>
</m-card>
<m-card
title=
"良种场列表"
>
<PlaceList
v-if=
"showProvince"
/>
<PlaceList
@
select=
"handleMapChoice"
v-if=
"showProvince"
/>
</m-card>
</div>
</m-animate>
...
...
@@ -189,6 +189,7 @@ export default {
},
handleMapChoice
()
{
this
.
showCompany
=
true
this
.
showProvince
=
false
}
}
}
...
...
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