Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
huamu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭铭瑶
huamu
Commits
864e5927
Commit
864e5927
authored
Sep 10, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重设楼宇搜索参数
parent
d60876f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
building-drawer.vue
src/view/components/building-drawer.vue
+17
-4
filter-drawer.vue
src/view/components/filter-drawer.vue
+1
-3
No files found.
src/view/components/building-drawer.vue
View file @
864e5927
...
...
@@ -19,7 +19,9 @@
<p
class=
"name"
>
{{ path.join('') }}
</p>
<div
v-if=
"showBuildingDetail"
class=
"building"
>
<div
class=
"nav"
>
<p>
{{ curBuilding['小区名称'] + curBuilding['楼宇名称'] }}
</p>
<p
:title=
"curBuilding['小区名称'] + curBuilding['楼宇名称']"
>
{{ curBuilding['小区名称'] + curBuilding['楼宇名称'] }}
</p>
<span
@
click=
"showBuildingDetail = false"
>
返回
<n-icon
size=
".09rem"
>
...
...
@@ -80,7 +82,7 @@
}"
@
click=
"setBuilding(item)"
>
<p>
<p
:title=
"item['楼宇名称']"
>
<n-icon
class=
"dot"
size=
".08rem"
>
<svg-icon
:data=
"dot"
/>
</n-icon>
...
...
@@ -160,16 +162,23 @@ const getRooms = async (query: string) => {
)
}
const
getFloors
=
async
(
data
:
any
)
=>
{
console
.
log
(
'123'
,
data
)
return
Promise
.
all
(
(
await
useFetchRoom
({
a
:
'id,count'
,
keys
:
'层数'
,
q
:
`paths @ "所属小区" && string == "
${
data
[
'小区名称'
]}
", paths @ "所属楼宇" string @ "
${
data
[
'号'
]}
"`
,
q
:
`paths @ "所属小区" && string == "
${
props
.
path
[
props
.
path
.
length
-
1
]
}
", paths @ "所属楼宇" string @ "
${
data
[
'号'
]}
"`
,
})
).
map
(
async
(
item
:
any
)
=>
{
const
rooms
=
await
getRooms
(
`paths @ "所属小区" && string == "
${
data
[
'小区名称'
]}
", paths @ "所属楼宇" && string @ "
${
data
[
'号'
]}
",paths @ "层数" && number ==
${
item
[
'层数'
]}
`
,
`paths @ "所属小区" && string == "
${
props
.
path
[
props
.
path
.
length
-
1
]
}
", paths @ "所属楼宇" && string @ "
${
data
[
'号'
]
}
",paths @ "层数" && number ==
${
item
[
'层数'
]}
`
,
)
let
memberAmount
=
0
rooms
.
forEach
((
item
:
any
)
=>
(
memberAmount
+=
item
.
members
.
length
))
...
...
@@ -255,10 +264,14 @@ const selectMember = (data: any) => {
box-shadow 0 0.02rem .05rem rgba(0,0,0,0.1)
p
font-family $font-ping-medium
flex 1
$text-overflow()
span
color $red
font-size .09rem
cursor pointer
width .3rem
white-space nowrap
.floors
padding .08rem
background $light-gray
...
...
src/view/components/filter-drawer.vue
View file @
864e5927
...
...
@@ -219,7 +219,6 @@ const getCommittees = async (name?: string) => {
const
query
=
name
?
`paths @ "所属社区" && string == "
${
name
}
"`
:
undefined
committees
.
value
=
(
await
useFetchCommittee
({
a
:
'id,count'
,
keys
:
'所属居委'
,
q
:
query
,
})
...
...
@@ -231,7 +230,6 @@ const getCommunities = async (name?: string) => {
const
query
=
name
?
`paths @ "所属居委" && string == "
${
name
}
"`
:
undefined
communities
.
value
=
(
await
useFetchCommunity
({
a
:
'id,count'
,
keys
:
'居住区名称'
,
q
:
query
,
})
...
...
@@ -359,7 +357,7 @@ const buildingList = ref([])
const
getBuildings
=
async
(
name
:
string
)
=>
{
buildingList
.
value
=
(
await
useFetchBuilding
({
q
:
`paths @ "
小区名称" && string ==
"
${
name
}
"`
,
q
:
`paths @ "
楼宇名称" && string @
"
${
name
}
"`
,
})
).
map
((
item
:
any
)
=>
item
.
extra
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment