Commit 2629d654 authored by 郭铭瑶's avatar 郭铭瑶 🤘

更换小区接口

parent e06e1f02
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
<link rel="icon" href="./favicon.ico" /> <link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>静安智慧房管</title> <title>静安智慧房管</title>
<script type="module" crossorigin src="./assets/index.77c34ec7.js"></script> <script type="module" crossorigin src="./assets/index.d7e4864b.js"></script>
<link rel="modulepreload" href="./assets/vendor.76a9fd99.js"> <link rel="modulepreload" href="./assets/vendor.76a9fd99.js">
<link rel="stylesheet" href="./assets/vendor.db35e2cd.css"> <link rel="stylesheet" href="./assets/vendor.db35e2cd.css">
<link rel="stylesheet" href="./assets/index.37160914.css"> <link rel="stylesheet" href="./assets/index.601a0436.css">
</head> </head>
<body> <body>
......
...@@ -10,6 +10,5 @@ switch (process.env.NODE_ENV) { ...@@ -10,6 +10,5 @@ switch (process.env.NODE_ENV) {
export default { export default {
BASE_URL, BASE_URL,
CONFIGS: '/service-bigscreen/public/bigscreenConfigs', // 配置 CONFIGS: '/service-bigscreen/public/bigscreenConfigs', // 配置
COMMUNITYS: '/service-basicdatasync-ddd/public/communities', // 小区 COMMUNITY: '/service-customkey-ddd/public/communities/v2', // 小区
COMMUNITY: '/service-basicdatasync-ddd/public/community/', // 根据小区id查档案
} }
...@@ -10,7 +10,7 @@ export function toPoints(options: LayerOption) { ...@@ -10,7 +10,7 @@ export function toPoints(options: LayerOption) {
const x = item.minx || item.maxx || item.X || item.x || item.gpsx const x = item.minx || item.maxx || item.X || item.x || item.gpsx
const y = item.miny || item.maxy || item.Y || item.y || item.gpsy const y = item.miny || item.maxy || item.Y || item.y || item.gpsy
if ((x !== 0 && !x) || (y !== 0 && !y)) { if ((x !== 0 && !x) || (y !== 0 && !y)) {
console.info(`add point: 非法的坐标[${x}, ${y}] 存在于数据: ${item}`) console.error(`add point: 非法的坐标[${x}, ${y}] 存在于数据: `, item)
} }
const z = item.Z || item.z || item.gpsz || 0 const z = item.Z || item.z || item.gpsz || 0
const result: any = { const result: any = {
......
...@@ -58,15 +58,30 @@ const searchType = ref('name') ...@@ -58,15 +58,30 @@ const searchType = ref('name')
const searchKey = ref('') const searchKey = ref('')
const list = ref<any[]>([]) const list = ref<any[]>([])
const onSearch = async () => { const onSearch = async () => {
let query: any = { stNameFrst_l: searchKey.value } let query: any = {
id: '1',
logic: 'l',
val: searchKey.value,
}
if (searchType.value === 'address') { if (searchType.value === 'address') {
query = { addrFrst_l: searchKey.value } query = {
id: '2',
logic: 'l',
val: searchKey.value,
}
} }
list.value = list.value =
( (
await ajax.get({ await ajax.post({
url: api.COMMUNITYS, url: api.COMMUNITY + '?pageSize=9000',
params: { ...query, pageSize: 1000 }, params: {
conditions: [
{
conditionsGroup: [query],
},
],
subject: 'tbl_community',
},
showLoading: false, showLoading: false,
}) })
)?.data?.content || [] )?.data?.content || []
......
...@@ -186,9 +186,7 @@ const showCommunityDrawer = ref(false) ...@@ -186,9 +186,7 @@ const showCommunityDrawer = ref(false)
const onMapClick = (data) => { const onMapClick = (data) => {
if (!data.id) return if (!data.id) return
// // TODO 是否需要获取数据? // TODO 是否需要获取数据?
// communityDetail.value =
// (await ajax.get({ url: api.COMMUNITY + data.id }))?.data?.content || {}
communityDetail.value = data communityDetail.value = data
showCommunityDrawer.value = true showCommunityDrawer.value = true
} }
......
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