Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
component-lib
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
郭铭瑶
component-lib
Commits
df274e39
Commit
df274e39
authored
Nov 18, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换非居建筑接口
parent
1413aad8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
index.vue
src/lib/A015/index.vue
+13
-6
No files found.
src/lib/A015/index.vue
View file @
df274e39
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
</m-sub>
</m-sub>
<Brief
:list=
"summary"
click-able
@
touch=
"onTouch"
/>
<Brief
:list=
"summary"
click-able
@
touch=
"onTouch"
/>
<m-sub
<m-sub
:addition=
"
{ value: nonResident
?.length || 0
, unit: '幢' }"
:addition=
"
{ value: nonResident, unit: '幢' }"
click-able
click-able
@selct="onSelect"
@sel
e
ct="onSelect"
>
>
非居建筑
非居建筑
</m-sub>
</m-sub>
...
@@ -25,7 +25,7 @@ const _config = {
...
@@ -25,7 +25,7 @@ const _config = {
baseUrl
:
window
.
_base_url
,
baseUrl
:
window
.
_base_url
,
apis
:
{
apis
:
{
community
:
'/service-customkey-ddd/public/communities/v2?pageSize=9000'
,
community
:
'/service-customkey-ddd/public/communities/v2?pageSize=9000'
,
nonResident
:
'/service-
basicdatasync-ddd/public/nonResi/building
s'
,
nonResident
:
'/service-
special-ja-ddd/public/wholeBuilding/coordinate
s'
,
api1
:
'/service-basicdatasync-ddd/public/indCous'
,
api1
:
'/service-basicdatasync-ddd/public/indCous'
,
api2
:
'/service-basicdatasync-ddd/public/residentsCommitteesV2'
,
api2
:
'/service-basicdatasync-ddd/public/residentsCommitteesV2'
,
api3
:
'/service-basicdatasync-ddd/public/propCompanies'
,
api3
:
'/service-basicdatasync-ddd/public/propCompanies'
,
...
@@ -148,14 +148,21 @@ const onTouch = (i: number) => {
...
@@ -148,14 +148,21 @@ const onTouch = (i: number) => {
setCurPointType
(
key
)
setCurPointType
(
key
)
}
}
const
nonResident
=
ref
([])
const
nonResident
=
ref
(
0
)
const
nonResidentList
=
ref
([])
ajax
ajax
.
get
({
url
:
_config
.
apis
.
nonResident
,
params
:
{
pageSize
:
9000
}
})
.
get
({
url
:
_config
.
apis
.
nonResident
,
params
:
{
pageSize
:
9000
}
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
nonResident
.
value
=
res
?.
data
?.
content
||
[]
const
data
=
res
?.
data
?.
content
||
{}
nonResident
.
value
=
data
?.
wholeNum
||
0
nonResidentList
.
value
=
data
?.
buildingList
||
[]
})
})
const
onSelect
=
()
=>
{
const
onSelect
=
()
=>
{
bus
.
emit
(
'addPoints'
,
{
icon
:
NoresIcon
,
size
:
12
,
data
:
nonResident
.
value
})
bus
.
emit
(
'addPoints'
,
{
icon
:
NoresIcon
,
size
:
12
,
data
:
nonResidentList
.
value
,
})
setCurPointType
(
7
)
setCurPointType
(
7
)
}
}
...
...
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