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
5f103abd
authored
2020-11-17 17:14:18 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改户查询结果渲染方式
1 parent
a3845a45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
src/views/systemZRZ/lpb/bjlp/lpbContent/index.vue
src/views/systemZRZ/lpb/bjlp/lpbContent/index.vue
View file @
5f103ab
...
...
@@ -14,7 +14,7 @@
<!-- 显示层数 -->
<td
class=
"floor"
>
{{
cs
.
sjc
}}
层
</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>
<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)"
>
{{
hs
.
shbw
}}
</td>
</tr>
</table>
<!--
</div>
-->
...
...
@@ -30,7 +30,7 @@
<!-- 显示层数 -->
<td
class=
"floor"
>
{{
cs
.
sjc
}}
层
</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>
<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)"
>
{{
hs
.
shbw
}}
</td>
</tr>
</table>
</div>
...
...
@@ -55,7 +55,7 @@
<!-- 显示层数 -->
<td
class=
"floor"
>
{{
cs
.
sjc
}}
层
</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>
<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)"
>
{{
hs
.
shbw
}}
</td>
</tr>
</table>
</div>
...
...
@@ -67,7 +67,7 @@
<!-- 显示层数 -->
<td
class=
"floor"
>
{{
cs
.
sjc
}}
层
</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>
<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)"
>
{{
hs
.
shbw
}}
</td>
</tr>
</table>
</div>
...
...
@@ -263,8 +263,7 @@ export default {
console
.
log
(
this
.
$refs
.
hBsm
,
'this.$refs.hBsm'
);
this
.
$nextTick
(()
=>
{
this
.
$refs
.
hBsm
.
forEach
(
item
=>
{
console
.
log
(
item
.
dataset
,
'item'
);
if
(
item
.
dataset
.
bsm
!=
''
){
if
(
item
.
className
==
'tdSelect'
){
console
.
log
(
item
.
dataset
.
bsm
,
'item.dataset.bsm'
);
// 判断hbsmList中是否已经存在
if
(
this
.
hbsmList
.
indexOf
(
item
.
dataset
.
bsm
)
==
-
1
){
...
...
Please
register
or
sign in
to post a comment