Commit df274e39 authored by 郭铭瑶's avatar 郭铭瑶 🤘

更换非居建筑接口

parent 1413aad8
......@@ -5,9 +5,9 @@
</m-sub>
<Brief :list="summary" click-able @touch="onTouch" />
<m-sub
:addition="{ value: nonResident?.length || 0, unit: '幢' }"
:addition="{ value: nonResident, unit: '幢' }"
click-able
@selct="onSelect"
@select="onSelect"
>
非居建筑
</m-sub>
......@@ -25,7 +25,7 @@ const _config = {
baseUrl: window._base_url,
apis: {
community: '/service-customkey-ddd/public/communities/v2?pageSize=9000',
nonResident: '/service-basicdatasync-ddd/public/nonResi/buildings',
nonResident: '/service-special-ja-ddd/public/wholeBuilding/coordinates',
api1: '/service-basicdatasync-ddd/public/indCous',
api2: '/service-basicdatasync-ddd/public/residentsCommitteesV2',
api3: '/service-basicdatasync-ddd/public/propCompanies',
......@@ -148,14 +148,21 @@ const onTouch = (i: number) => {
setCurPointType(key)
}
const nonResident = ref([])
const nonResident = ref(0)
const nonResidentList = ref([])
ajax
.get({ url: _config.apis.nonResident, params: { pageSize: 9000 } })
.then((res) => {
nonResident.value = res?.data?.content || []
const data = res?.data?.content || {}
nonResident.value = data?.wholeNum || 0
nonResidentList.value = data?.buildingList || []
})
const onSelect = () => {
bus.emit('addPoints', { icon: NoresIcon, size: 12, data: nonResident.value })
bus.emit('addPoints', {
icon: NoresIcon,
size: 12,
data: nonResidentList.value,
})
setCurPointType(7)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment