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 @@
<link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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="stylesheet" href="./assets/vendor.db35e2cd.css">
<link rel="stylesheet" href="./assets/index.37160914.css">
<link rel="stylesheet" href="./assets/index.601a0436.css">
</head>
<body>
......
......@@ -10,6 +10,5 @@ switch (process.env.NODE_ENV) {
export default {
BASE_URL,
CONFIGS: '/service-bigscreen/public/bigscreenConfigs', // 配置
COMMUNITYS: '/service-basicdatasync-ddd/public/communities', // 小区
COMMUNITY: '/service-basicdatasync-ddd/public/community/', // 根据小区id查档案
COMMUNITY: '/service-customkey-ddd/public/communities/v2', // 小区
}
......@@ -10,7 +10,7 @@ export function toPoints(options: LayerOption) {
const x = item.minx || item.maxx || item.X || item.x || item.gpsx
const y = item.miny || item.maxy || item.Y || item.y || item.gpsy
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 result: any = {
......
......@@ -58,15 +58,30 @@ const searchType = ref('name')
const searchKey = ref('')
const list = ref<any[]>([])
const onSearch = async () => {
let query: any = { stNameFrst_l: searchKey.value }
let query: any = {
id: '1',
logic: 'l',
val: searchKey.value,
}
if (searchType.value === 'address') {
query = { addrFrst_l: searchKey.value }
query = {
id: '2',
logic: 'l',
val: searchKey.value,
}
}
list.value =
(
await ajax.get({
url: api.COMMUNITYS,
params: { ...query, pageSize: 1000 },
await ajax.post({
url: api.COMMUNITY + '?pageSize=9000',
params: {
conditions: [
{
conditionsGroup: [query],
},
],
subject: 'tbl_community',
},
showLoading: false,
})
)?.data?.content || []
......
......@@ -186,9 +186,7 @@ const showCommunityDrawer = ref(false)
const onMapClick = (data) => {
if (!data.id) return
// // TODO 是否需要获取数据?
// communityDetail.value =
// (await ajax.get({ url: api.COMMUNITY + data.id }))?.data?.content || {}
// TODO 是否需要获取数据?
communityDetail.value = data
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