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
950a2ebc
authored
2020-11-13 16:33:09 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
判断没有独立幢单元和独立层户时,将逻辑幢置于最下层
1 parent
ad6c940b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
src/views/systemZRZ/lpb/bjlp/lpbContent/index.vue
src/views/systemZRZ/lpb/bjlp/lpbContent/index.vue
View file @
950a2eb
<
template
>
<div
class=
"lpbContent-wrap"
ref=
"lpbContentWrap"
>
<div
class=
"lpbContent"
ref=
"lpbContent"
v-loading=
'loading'
>
<div
class=
"ljz-wrap
"
:style=
"
{'width':ljzWidth+'px'}" v-show="lpbData.ljzs.length>0">
<div
:class=
"(lpbData.cs.length == 0 && lpbData.zdys.length == 0) ? 'bottom40 ljz-wrap':'ljz-wrap'
"
:style=
"
{'width':ljzWidth+'px'}" v-show="lpbData.ljzs.length>0">
<!-- 循环逻辑幢数据 -->
<div
class=
"ljz"
ref=
"ljz"
v-for=
"(ljzs,ljzIndex) in lpbData.ljzs"
:key=
"ljzIndex"
>
<div
class=
"ljz-zdy-wrap"
>
...
...
@@ -22,8 +22,8 @@
</div>
</div>
<!-- 循环逻辑幢下的层户 -->
<div
class=
"ljz-ch"
>
<table
class=
"chTable"
border=
"1"
cellspacing=
"0"
cellpadding=
"0"
v-show=
"ljzs.cs.length>0"
>
<div
class=
"ljz-ch"
v-if=
"ljzs.cs.length>0"
>
<table
class=
"chTable"
border=
"1"
cellspacing=
"0"
cellpadding=
"0"
>
<tr
v-for=
"(cs) in ljzs.cs"
:key=
"cs.bsm"
>
<!-- 显示层数 -->
<td
class=
"floor"
>
{{
cs
.
sjc
}}
层
</td>
...
...
@@ -156,7 +156,7 @@ export default {
let
highest
=
this
.
$refs
.
zdy
[
0
].
offsetHeight
;
this
.
zdyWidth
-=
980
;
this
.
$refs
.
zdy
.
forEach
(
item
=>
{
this
.
zdyWidth
+=
item
.
offsetWidth
+
2
0
;
this
.
zdyWidth
+=
item
.
offsetWidth
+
2
1
;
this
.
cHeight
=
item
.
offsetHeight
>
this
.
cHeight
?
item
.
offsetHeight
:
this
.
cHeight
;
highest
=
highest
>
item
.
offsetHeight
?
highest
:
item
.
offsetHeight
;
})
...
...
@@ -277,6 +277,13 @@ export default {
background-color
:
darkorange
;
}
}
div
:last-child
{
margin-right
:
0
;
}
}
.bottom40
{
position
:
absolute
;
bottom
:
40px
;
}
.zdy-wrap
{
height
:
auto
;
...
...
Please
register
or
sign in
to post a comment