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
a8d72516
authored
2020-12-03 16:38:51 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
楼盘表切换实预测类型时清除选中层,更新图例数据
1 parent
5c7f7be5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
src/views/zrz/lpb/bjlp/index.vue
src/views/zrz/lpb/bjlp/lpbContent/index.vue
src/views/zrz/lpb/bjlp/index.vue
View file @
a8d7251
...
...
@@ -442,17 +442,25 @@ export default {
plshClose
()
{
this
.
plShVisible
=
false
;
},
//改变
是
预测数据类型
//改变
实
预测数据类型
scyclxChange
(
val
){
//清空已选中层户
this
.
cbsmList
=
[];
this
.
bsms
=
[];
console
.
log
(
this
.
$refs
.
lpbContent
.
$refs
.
hBsm
,
'this.$refs.lpbContent'
);
console
.
log
(
this
.
$refs
.
lpbContent
.
$refs
.
cBsm
,
'this.$refs.lpbContent.$refs.cBsm'
);
this
.
$nextTick
(()
=>
{
this
.
$refs
.
lpbContent
.
$refs
.
hBsm
.
forEach
(
item
=>
{
if
(
item
.
className
==
"tdSelect"
)
{
item
.
className
=
""
;
}
});
this
.
$refs
.
lpbContent
.
$refs
.
cBsm
.
forEach
(
item
=>
{
console
.
log
(
item
.
className
,
'item.className'
);
item
.
className
=
"floor"
;
});
})
//获取图例数据
this
.
getDyztBsmList
();
},
//获取高度计算lpb内容区高度
getHeight
()
{
...
...
src/views/zrz/lpb/bjlp/lpbContent/index.vue
View file @
a8d7251
...
...
@@ -12,7 +12,7 @@
<table
class=
"chTable"
:style=
"
{'top':(ljzzdyHeight-1-zdys.cs.length*65)+'px'}" border="1" cellspacing="0" cellpadding="0" v-show="zdys.cs.length>0">
<tr
v-for=
"(cs,csIndex) in zdys.cs"
:key=
"csIndex"
>
<!-- 显示层数 -->
<td
class=
"floor"
@
contextmenu
.
prevent=
"openMenu($event, cs,'c')"
@
click=
"handleClickC($event,cs)"
>
{{
cs
.
sjc
}}
层
</td>
<td
class=
"floor"
ref=
"cBsm"
@
contextmenu
.
prevent=
"openMenu($event, cs,'c')"
@
click=
"handleClickC($event,cs)"
>
{{
cs
.
sjc
}}
层
</td>
<!-- 显示户 -->
<td
v-for=
"(hs,hsIndex) in cs.hs"
:data-bsm=
"hs.bsm"
ref=
"hBsm"
:key=
"hsIndex"
:class=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? 'tdSelect':''"
@
click=
"handleTdClick($event,hs.bsm)"
@
dblclick=
"dbclick(hs.bsm)"
@
contextmenu
.
prevent=
"openMenu($event, hs,'h')"
>
{{
hs
.
shbw
}}
</td>
</tr>
...
...
@@ -28,7 +28,7 @@
<table
class=
"chTable"
:style=
"
{'top':(ljzzdyHeight+40-1-ljzs.cs.length*65)
<0
?
0:
(
ljzzdyHeight
+
40-1-ljzs
.
cs
.
length
*
65
)
+'
px
'}"
border=
"1"
cellspacing=
"0"
cellpadding=
"0"
>
<tr
v-for=
"(cs) in ljzs.cs"
:key=
"cs.bsm"
>
<!-- 显示层数 -->
<td
class=
"floor"
@
contextmenu
.
prevent=
"openMenu($event, cs,'c')"
@
click=
"handleClickC($event,cs)"
>
{{
cs
.
sjc
}}
层
</td>
<td
class=
"floor"
ref=
"cBsm"
@
contextmenu
.
prevent=
"openMenu($event, cs,'c')"
@
click=
"handleClickC($event,cs)"
>
{{
cs
.
sjc
}}
层
</td>
<!-- 显示户 -->
<td
v-for=
"(hs,hsIndex) in cs.hs"
:data-bsm=
"hs.bsm"
ref=
"hBsm"
:key=
"hsIndex"
:class=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? 'tdSelect':''"
@
click=
"handleTdClick($event,hs.bsm)"
@
dblclick=
"dbclick(hs.bsm)"
@
contextmenu
.
prevent=
"openMenu($event, hs,'h')"
>
{{
hs
.
shbw
}}
</td>
</tr>
...
...
@@ -53,7 +53,7 @@
<table
class=
"chTable"
border=
"1"
cellspacing=
"0"
cellpadding=
"0"
v-show=
"zdys.cs.length>0"
>
<tr
v-for=
"(cs,csIndex) in zdys.cs"
:key=
"csIndex"
>
<!-- 显示层数 -->
<td
class=
"floor"
@
contextmenu
.
prevent=
"openMenu($event, cs,'c')"
@
click=
"handleClickC($event,cs)"
>
{{
cs
.
sjc
}}
层
</td>
<td
class=
"floor"
ref=
"cBsm"
@
contextmenu
.
prevent=
"openMenu($event, cs,'c')"
@
click=
"handleClickC($event,cs)"
>
{{
cs
.
sjc
}}
层
</td>
<!-- 显示户 -->
<td
v-for=
"(hs,hsIndex) in cs.hs"
:data-bsm=
"hs.bsm"
ref=
"hBsm"
:key=
"hsIndex"
:class=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? 'tdSelect':''"
@
click=
"handleTdClick($event,hs.bsm)"
@
dblclick=
"dbclick(hs.bsm)"
@
contextmenu
.
prevent=
"openMenu($event, hs,'h')"
>
{{
hs
.
shbw
}}
</td>
</tr>
...
...
@@ -65,7 +65,7 @@
<table
class=
"chTable"
ref=
"ch"
border=
"1"
cellspacing=
"0"
cellpadding=
"0"
v-show=
"lpbData.cs != null && lpbData.cs.length>0"
>
<tr
v-for=
"(cs,csIndex) in lpbData.cs"
:key=
"csIndex"
>
<!-- 显示层数 -->
<td
class=
"floor"
@
contextmenu
.
prevent=
"openMenu($event, cs,'c')"
@
click=
"handleClickC($event,cs)"
>
{{
cs
.
sjc
}}
层
</td>
<td
class=
"floor"
ref=
"cBsm"
@
contextmenu
.
prevent=
"openMenu($event, cs,'c')"
@
click=
"handleClickC($event,cs)"
>
{{
cs
.
sjc
}}
层
</td>
<!-- 显示户 -->
<td
v-for=
"(hs,hsIndex) in cs.hs"
:data-bsm=
"hs.bsm"
ref=
"hBsm"
:key=
"hsIndex"
:class=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? 'tdSelect':''"
@
click=
"handleTdClick($event,hs.bsm)"
@
dblclick=
"dbclick(hs.bsm)"
@
contextmenu
.
prevent=
"openMenu($event, hs,'h')"
>
{{
hs
.
shbw
}}
</td>
</tr>
...
...
Please
register
or
sign in
to post a comment