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
269f7045
authored
2020-11-04 15:00:27 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
楼盘表内容区高度动态计算
1 parent
06f8233f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
src/assets/less/main.less
src/views/systemZRZ/lpb/edit/index.vue
src/assets/less/main.less
View file @
269f704
...
...
@@ -3,7 +3,6 @@
padding-top: 0;
box-sizing: border-box;
width: 100%;
height: 100%;
}
.el-table .success-row {
background:@tablebg;
...
...
src/views/systemZRZ/lpb/edit/index.vue
View file @
269f704
...
...
@@ -18,7 +18,7 @@
<el-button
class=
"radioBtn"
label=
"7"
border
>
批量单元号
</el-button>
</div>
</div>
<div
class=
"tab-content"
>
<div
class=
"tab-content"
:style=
"
{'height':lpbContentHight+'px'}"
>
<div
class=
"lp-tree"
:class=
"createFlag ? 'w260':'w0'"
>
<LineTree
:pd=
"pd"
class=
"treeData"
:islpb =
"islpb"
></LineTree>
<p
@
click=
"createFlag = false"
style=
"width:20px;float:left;cursor:pointer;"
>
X
</p>
...
...
@@ -29,8 +29,8 @@
<div
class=
"lp-legend"
>
<div
class=
"handleCol"
>
<div
class=
"btn"
@
click=
"legendToggle"
>
<i
class=
"el-icon-d-arrow-left"
></i>
<
!--
<i
class=
"el-icon-d-arrow-right"
></i>
--
>
<i
v-show=
"!legendToggleFlag"
class=
"el-icon-d-arrow-left"
></i>
<
i
v-show=
"legendToggleFlag"
class=
"el-icon-d-arrow-right"
></i
>
</div>
<div
class=
"dyzt"
>
<span>
单元状态
</span>
...
...
@@ -165,14 +165,22 @@ export default {
mj
:
'285'
},
],
legendToggleFlag
:
false
legendToggleFlag
:
false
,
lpbContentHight
:
''
}
},
created
(){},
created
(){
window
.
addEventListener
(
'resize'
,
this
.
getHeight
);
this
.
getHeight
()
},
mounted
(){
this
.
getLpbMenuTree
(
'd1b82b27f2a6ab7bf3f0e7708c96e46f'
)
},
methods
:{
//获取高度计算lpb内容区高度
getHeight
(){
this
.
lpbContentHight
=
window
.
innerHeight
-
340
},
//创建楼盘
create
(){
this
.
createFlag
=
true
...
...
@@ -236,6 +244,9 @@ export default {
}
},
computed
:
{},
destroyed
(){
window
.
removeEventListener
(
'resize'
,
this
.
getHeight
)
},
watch
:
{
},
}
...
...
@@ -269,9 +280,9 @@ export default {
}
}
.tab-content
{
height
:
calc
(
100%
-
161px
);
background-color
:
#ffffff
;
display
:
flex
;
overflow-y
:
scroll
;
.lp-tree{
height
:
100%
;
overflow
:
hidden
;
...
...
Please
register
or
sign in
to post a comment