Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
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
9dba5525
authored
2020-12-31 17:10:48 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
楼盘表高度变化问题修改
1 parent
5ddfa96b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
src/views/zrz/lpb/bjlp/lpbContent/index.vue
src/views/zrz/lpb/bjlp/lpbContent/index.vue
View file @
9dba552
...
...
@@ -19,14 +19,14 @@
ref=
"ljz"
v-for=
"(ljzs, ljzIndex) in lpbData.ljzs"
:key=
"ljzIndex"
:
style=
"
{'marginTop':'30px'}
"
:
class=
"[
{'mt30' : ljzIndex == 0},{'mt60' : ljzIndex == 1 || lpbData.ljzs.length == 1}]
"
>
<!-- :style="
{'marginTop':ljzs.zdys.length>0?'0':'30px'}" -->
<!-- 循环逻辑幢下的幢单元 -->
<div
class=
"ljz-zdy-wrap"
>
<div
class=
"ljz-zdy column-reverse"
:style=
"
{ 'min-height': ljzzdyHeight
+ 40
+ 'px','marginRight':zdyIndex
<
(ljzs.zdys.length-1) || ljzs.cs.length > 1?'20px':'0'}"
:style=
"
{ 'min-height': ljzzdyHeight+ 'px','marginRight':zdyIndex
<
(ljzs.zdys.length-1) || ljzs.cs.length > 1?'20px':'0'}"
ref="ljzzdy"
v-show="ljzs.zdys.length > 0"
v-for="(zdys, zdyIndex) in ljzs.zdys"
...
...
@@ -581,10 +581,7 @@ export default {
//记录最高的幢单元高度 默认为第一个幢单元高度
zrzhighest
=
this
.
$refs
.
ljzzdy
[
0
].
offsetHeight
;
this
.
$refs
.
ljzzdy
.
forEach
((
item
)
=>
{
this
.
ljzcHeight
=
item
.
offsetHeight
>
this
.
ljzcHeight
?
item
.
offsetHeight
:
this
.
ljzcHeight
;
this
.
ljzcHeight
=
item
.
offsetHeight
>
this
.
ljzcHeight
?
item
.
offsetHeight
:
this
.
ljzcHeight
;
zrzhighest
=
zrzhighest
>
item
.
offsetHeight
?
zrzhighest
:
item
.
offsetHeight
;
});
//判断有无独立层户
...
...
@@ -1095,6 +1092,7 @@ export default {
.ljz
{
//
margin-bottom
:
20px
;
display
:
table
;
margin-top
:
30px
;
//
position
:
relative
;
.ljz-zdy-wrap
{
width
:
auto
;
...
...
@@ -1142,6 +1140,12 @@ export default {
}
}
.mt30
{
margin-top
:
30px
;
}
.mt60
{
margin-top
:
60px
;
}
div
:last-child
{
margin-right
:
0
;
}
...
...
Please
register
or
sign in
to post a comment