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
6f5dcc4a
authored
2020-12-25 17:26:45 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
幢单元下的户全选和清除
1 parent
99f1ad87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
4 deletions
src/views/zrz/lpb/bjlp/lpbContent/index.vue
src/views/zrz/lpb/bjlp/lpbContent/index.vue
View file @
6f5dcc4
...
...
@@ -36,7 +36,8 @@
<!-- 幢单元名称 -->
<div
class=
"zdy-name name"
>
<p>
{{
zdys
.
zdymc
}}
<!--
{{
zdys
.
zdymc
}}
-->
<el-checkbox
@
change=
'zdySelectAll($event,zdys.cs)'
>
{{
lpbData
.
xmmc
}}
</el-checkbox>
</p>
</div>
...
...
@@ -171,7 +172,8 @@
<!-- 幢单元名称 -->
<div
class=
"zdy-name name"
>
<p>
{{
zdys
.
zdymc
}}
<!--
{{
zdys
.
zdymc
}}
-->
<el-checkbox
@
change=
'zdySelectAll($event,zdys.cs)'
>
{{
lpbData
.
xmmc
}}
</el-checkbox>
</p>
</div>
<!-- 循环幢单元下的层户 -->
...
...
@@ -957,8 +959,8 @@ export default {
this
.
hcxlzVisible
=
true
},
//楼盘表户全选
lpbSelectAll
(
val
ue
){
if
(
val
ue
){
lpbSelectAll
(
val
){
if
(
val
){
this
.
$refs
.
hBsm
.
forEach
((
item
)
=>
{
item
.
className
=
"tdSelect"
;
this
.
hbsmList
.
push
(
item
.
dataset
.
bsm
);
// 将户bsm放进hbsmList
...
...
@@ -969,6 +971,40 @@ export default {
this
.
hbsmList
=
[];
});
}
},
//幢单元全选
zdySelectAll
(
val
,
cs
){
let
zdyHbsmList
=
[];
cs
.
forEach
(
i
=>
{
i
.
hs
.
forEach
(
j
=>
{
zdyHbsmList
.
push
(
j
.
bsm
)
})
});
if
(
val
)
{
this
.
$nextTick
(()
=>
{
console
.
log
(
zdyHbsmList
);
this
.
$refs
.
hBsm
.
forEach
((
item
)
=>
{
console
.
log
(
item
.
dataset
.
bsm
);
if
(
zdyHbsmList
.
indexOf
(
item
.
dataset
.
bsm
)
>-
1
)
{
item
.
className
=
"tdSelect"
;
this
.
hbsmList
=
zdyHbsmList
;
// 将户bsm放进hbsmList
}
});
})
}
else
{
this
.
$refs
.
hBsm
.
forEach
((
item
)
=>
{
console
.
log
(
item
.
dataset
.
bsm
);
if
(
zdyHbsmList
.
indexOf
(
item
.
dataset
.
bsm
)
>-
1
)
{
item
.
className
=
""
;
}
zdyHbsmList
.
forEach
(
j
=>
{
if
(
item
.
dataset
.
bsm
==
j
)
{
this
.
hbsmList
=
this
.
hbsmList
.
filter
(
i
=>
i
!=
j
)
}
})
});
}
}
},
computed
:
{
...
...
Please
register
or
sign in
to post a comment