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
a43dbd9f
authored
2020-11-17 16:49:11 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
监听有无通过输入框查询选择到的户,如果有,将其bsm放入hbsmList
1 parent
42a381e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
5 deletions
src/assets/less/main.less
src/views/systemZRZ/lpb/bjlp/lpbContent/index.vue
src/assets/less/main.less
View file @
a43dbd9
...
...
@@ -19,6 +19,9 @@
.db{
display: block;
}
.dn{
display: none;
}
.fl{
float: left;
}
...
...
src/views/systemZRZ/lpb/bjlp/lpbContent/index.vue
View file @
a43dbd9
...
...
@@ -14,7 +14,7 @@
<!-- 显示层数 -->
<td
class=
"floor"
>
{{
cs
.
sjc
}}
层
</td>
<!-- 显示户 -->
<td
v-for=
"(hs,hsIndex) in cs.hs"
:key=
"hsIndex"
:class=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? 'tdSelect':''"
@
click=
"handleTdClick($event,hs.bsm)"
@
dblclick=
"dbclick(hs.bsm)"
>
{{
hs
.
shbw
}}
</td>
<td
v-for=
"(hs,hsIndex) in cs.hs"
:
data-bsm=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? hs.bsm : ''"
ref=
"hBsm"
:
key=
"hsIndex"
:class=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? 'tdSelect':''"
@
click=
"handleTdClick($event,hs.bsm)"
@
dblclick=
"dbclick(hs.bsm)"
>
{{
hs
.
shbw
}}
</td>
</tr>
</table>
<!--
</div>
-->
...
...
@@ -30,7 +30,7 @@
<!-- 显示层数 -->
<td
class=
"floor"
>
{{
cs
.
sjc
}}
层
</td>
<!-- 显示户 -->
<td
v-for=
"(hs,hsIndex) in cs.hs"
:key=
"hsIndex"
:class=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? 'tdSelect':''"
@
click=
"handleTdClick($event,hs.bsm)"
@
dblclick=
"dbclick(hs.bsm)"
>
{{
hs
.
shbw
}}
</td>
<td
v-for=
"(hs,hsIndex) in cs.hs"
:
data-bsm=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? hs.bsm : ''"
ref=
"hBsm"
:
key=
"hsIndex"
:class=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? 'tdSelect':''"
@
click=
"handleTdClick($event,hs.bsm)"
@
dblclick=
"dbclick(hs.bsm)"
>
{{
hs
.
shbw
}}
</td>
</tr>
</table>
</div>
...
...
@@ -55,7 +55,7 @@
<!-- 显示层数 -->
<td
class=
"floor"
>
{{
cs
.
sjc
}}
层
</td>
<!-- 显示户 -->
<td
v-for=
"(hs,hsIndex) in cs.hs"
:key=
"hsIndex"
:class=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? 'tdSelect':''"
@
click=
"handleTdClick($event,hs.bsm)"
@
dblclick=
"dbclick(hs.bsm)"
>
{{
hs
.
shbw
}}
</td>
<td
v-for=
"(hs,hsIndex) in cs.hs"
:
data-bsm=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? hs.bsm : ''"
ref=
"hBsm"
:
key=
"hsIndex"
:class=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? 'tdSelect':''"
@
click=
"handleTdClick($event,hs.bsm)"
@
dblclick=
"dbclick(hs.bsm)"
>
{{
hs
.
shbw
}}
</td>
</tr>
</table>
</div>
...
...
@@ -67,7 +67,7 @@
<!-- 显示层数 -->
<td
class=
"floor"
>
{{
cs
.
sjc
}}
层
</td>
<!-- 显示户 -->
<td
v-for=
"(hs,hsIndex) in cs.hs"
:key=
"hsIndex"
:class=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? 'tdSelect':''"
@
click=
"handleTdClick($event,hs.bsm)"
@
dblclick=
"dbclick(hs.bsm)"
>
{{
hs
.
shbw
}}
</td>
<td
v-for=
"(hs,hsIndex) in cs.hs"
:
data-bsm=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? hs.bsm : ''"
ref=
"hBsm"
:
key=
"hsIndex"
:class=
"(searchNum == hs.shbw || searchNum == hs.bdcdyh) ? 'tdSelect':''"
@
click=
"handleTdClick($event,hs.bsm)"
@
dblclick=
"dbclick(hs.bsm)"
>
{{
hs
.
shbw
}}
</td>
</tr>
</table>
</div>
...
...
@@ -143,7 +143,7 @@ export default {
},
//按照bdcdyh或shbw筛选户
lpbDataMap
(
sh
){
console
.
log
(
sh
,
'sh'
);
// console.log('查询'+sh
);
this
.
searchNum
=
sh
;
},
//自然幢下元素高度宽度计算
...
...
@@ -258,6 +258,22 @@ export default {
this
.
lpbContentWidth
=
this
.
$refs
.
lpbContent
.
offsetWidth
-
6
;
},
501
);
},
//监听有无通过输入框查询选择到的户,如果有,将其bsm放入hbsmList
searchNum
(
n
){
console
.
log
(
this
.
$refs
.
hBsm
,
'this.$refs.hBsm'
);
this
.
$nextTick
(()
=>
{
this
.
$refs
.
hBsm
.
forEach
(
item
=>
{
console
.
log
(
item
.
dataset
,
'item'
);
if
(
item
.
dataset
.
bsm
!=
''
){
console
.
log
(
item
.
dataset
.
bsm
,
'item.dataset.bsm'
);
// 判断hbsmList中是否已经存在
if
(
this
.
hbsmList
.
indexOf
(
item
.
dataset
.
bsm
)
==
-
1
){
this
.
hbsmList
.
push
(
item
.
dataset
.
bsm
)
// 将户bsm放进hbsmList
}
}
})
})
}
},
};
</
script
>
...
...
Please
register
or
sign in
to post a comment