Commit 05ed529a authored by 郭铭瑶's avatar 郭铭瑶 🤘

增加曹路 金桥楼栋数据

parent c158d5af
This diff is collapsed.
......@@ -49,7 +49,7 @@ export default {
[121.646363, 31.29713]
],
'community': [{
name: '民风小区',
name: '川沙路326弄',
address: '川沙路326弄',
level: 2,
location: [121.666008, 31.279523],
......@@ -199,7 +199,7 @@ export default {
}, {
'name': '银丰苑',
'address': '银峰路549弄1-171号',
'level': 2,
'level': 1,
'location': [121.68779, 31.267045],
'path': [
[121.688748, 31.268906],
......@@ -283,7 +283,7 @@ export default {
[121.666823, 31.275305]
]
}, {
name: '顾路阳光苑南区',
name: '民耀路268弄',
address: '民耀路268弄1-34号',
level: 1,
location: [121.652693, 31.272165],
......@@ -343,7 +343,7 @@ export default {
[121.65355, 31.275371]
]
}, {
'name': '民同10弄',
'name': '民同10弄',
'address': '民同路10弄1-6号',
'level': 1,
'location': [121.650247, 31.274278],
......@@ -355,7 +355,7 @@ export default {
[121.650771, 31.274374]
]
}, {
name: '阳光苑1期至3期',
name: '民同路40弄',
address: '民同路40弄',
level: 1,
location: [121.650688, 31.273385],
......@@ -374,7 +374,7 @@ export default {
[121.649847, 31.2739]
]
}, {
name: '顾路阳光苑-北区',
name: '民耀路98弄',
address: '民耀路98弄1-27号民耀路96、100号',
level: 1,
location: [121.65162, 31.274128],
......
import caolu from './caolu'
import caoluBuilding from './caolu-building'
import dongming from './dongming'
import gaodong from './gaodong'
import gaoxing from './gaoxing'
......@@ -6,6 +7,7 @@ import hangtou from './hangtou'
import hudong from './hudong'
import huamu from './huamu'
import jinqiao from './jinqiao'
import jinqiaoBuilding from './jinqiao-building'
import jinyang from './jinyang'
import jinyangBuilding from './jinyang-building'
import lujiazui from './lujiazui'
......@@ -79,4 +81,6 @@ export const mockBuilding = {
jinyangBuilding,
yangjingBuilding,
chuanshaBuilding,
caoluBuilding,
jinqiaoBuilding,
}
This diff is collapsed.
......@@ -141,7 +141,7 @@ export default {
[121.588871, 31.283549]
],
'community': [{
'name': '张桥小区(佳林路)',
'name': '张桥小区',
'address': '佳林路962弄1-12号',
'level': 2,
'location': [121.611623, 31.264485],
......@@ -169,13 +169,18 @@ export default {
}, {
'name': '永宁路136弄',
'address': '永宁路136弄',
'level': 2,
'location': [121.609949, 31.265870],
'path': [],
'level': 3,
'location': [121.609849,31.266232],
'path': [
[121.609977,31.265773],
[121.610384,31.266146],
[121.609743,31.266751],
[121.609322,31.266429],
],
}, {
'name': '永建路86弄小区',
'name': '永建路86弄',
'address': '永建路86弄1-35号',
'level': 3,
'level': 2,
'location': [121.615862, 31.263585],
'path': [
[121.616596, 31.264696],
......@@ -191,21 +196,25 @@ export default {
[121.616596, 31.264696]
]
}, {
'name': '永宁路122弄小区',
'name': '永宁路122弄',
'address': '浦东永宁路122弄',
'level': 2,
'location': [121.611175, 31.266957],
'path': [
[121.611294, 31.267317],
[121.611581, 31.266932],
[121.611073, 31.266609],
[121.610754, 31.266957],
[121.611294, 31.267317]
// [121.611294, 31.267317],
// [121.611581, 31.266932],
// [121.611073, 31.266609],
// [121.610754, 31.266957],
// [121.611294, 31.267317]
[121.610788,31.26697],
[121.611092,31.26662],
[121.611623,31.266957],
[121.611327,31.267333],
]
}, {
name: '佳虹小区2期',
address: '永业路188弄1-16号',
level: 3,
level: 1,
location: [121.615809, 31.266854],
path: [
[121.616591, 31.266715],
......@@ -243,14 +252,14 @@ export default {
[121.614611, 31.266765]
]
}, {
name: '金浦小区(金桥路)',
name: '金浦小区',
address: '金桥路2552弄',
level: 2,
location: [ 121.602448, 31.234428 ],
path:
[ [ 121.602684, 31.233716 ],
[ 121.602543, 31.233776 ],
[ 121.601809, 31.233891 ],
[121.601806,31.233886],
[ 121.601322, 31.234546 ],
[ 121.601277, 31.234643 ],
[ 121.601986, 31.234916 ],
......@@ -262,7 +271,7 @@ export default {
}, {
name: '三桥小区北区',
address: '金桥路3299弄',
level: 3,
level: 2,
location: [121.607794, 31.223276],
path: [
[121.607369, 31.22352],
......@@ -275,14 +284,13 @@ export default {
}, {
name: '三桥小区南区',
address: '金桥路3379弄',
level: 3,
level: 2,
location: [121.608724, 31.221391],
path: [
[121.608287, 31.221735],
[121.608818, 31.221908],
[121.609191, 31.221053],
[121.60858, 31.220899],
[121.608287, 31.221735]
[121.608158,31.221643],
[121.608405,31.220808],
[121.609006,31.221],
[121.608668,31.221799],
]
}, {
'name': '金舍苑',
......@@ -318,7 +326,7 @@ export default {
[121.610413, 31.261459]
]
}, {
'name': '金石苑(佳高路)',
'name': '金石苑',
'address': '杨高北路5291弄1-30号',
'level': 2,
'location': [121.606535, 31.264609],
......@@ -340,19 +348,19 @@ export default {
[121.607277, 31.263272]
]
}, {
name: '阳光欧洲城金色米兰苑',
name: '金色米兰苑',
address: '佳乐路255弄1-53号',
level: 2,
location: [121.61519, 31.269524],
path: [
[121.61354, 31.27024],
[121.616576, 31.27019],
[121.616622, 31.2701],
[121.616624, 31.268635],
[121.616623,31.270096],
[121.616657,31.268637],
[121.616528, 31.268589],
[121.615924, 31.268633],
[121.615557, 31.268695],
[121.614495, 31.268878],
[121.61451,31.268849],
[121.614453, 31.26891],
[121.614455, 31.269241],
[121.614224, 31.269241],
......@@ -363,8 +371,8 @@ export default {
[121.61354, 31.27024]
]
}, {
name: '永业小区南区',
address: '佳林路',
name: '永业路42弄、94弄',
address: '永业路42弄、94弄',
level: 2,
location: [121.614423, 31.264846],
path: [
......@@ -398,7 +406,7 @@ export default {
[121.614625, 31.266108]
]
}, {
'name': '永建路152弄小区',
'name': '永建路152弄',
'address': '永建路152弄1-6号',
'level': 3,
'location': [121.616155, 31.264658],
......@@ -410,9 +418,9 @@ export default {
[121.615734, 31.264578]
]
}, {
name: '永业小区北区',
name: '佳虹路50弄、佳林路919弄',
address: '佳虹路50弄1-30号',
level: 3,
level: 2,
location: [121.61312, 31.266007],
path: [
[121.61197, 31.265369],
......
import Vue from 'vue'
import Router from 'vue-router'
const Main = () => import('@/views/main.vue')
const Test = () => import('@/views/test.vue')
Vue.use(Router)
......@@ -9,7 +10,12 @@ export default new Router({
{
path: '/',
name: 'main',
component: Main
}
component: Main,
},
{
path: '/test',
name: 'test',
component: Test,
},
]
})
......@@ -11,4 +11,35 @@ export default{
return []
}
},
similar(str1, str2) {
if (!str1 || !str2 || typeof(str1) != 'string' || typeof(str2) != 'string') {
console.error('参数需要是string类型!')
return 0
}
const len1 = str1.length
const len2 = str2.length
const arr = []
for (let i = 0; i <= len1; i++) {
arr[i] = []
arr[i][0] = i
}
for (let i = 0; i <= len2; i++) {
arr[0][i] = i
}
let temp
for (let i = 1; i <= len1; i++) {
for (let j = 1; j <= len2; j++) {
if (str1.charAt(i - 1) == str2.charAt(j - 1)) {
temp = 0
} else {
temp = 1
}
arr[i][j] = Math.min(arr[i - 1][j - 1] + temp, arr[i][j - 1] + 1, arr[i - 1][j] + 1)
}
}
return (1 - arr[len1][len2] / Math.max(len1, len2)).toFixed(3)
}
}
......@@ -4,15 +4,6 @@
<Panel v-for="street in streetList" :key="street" :name="street">
{{areaList[street].name}}小区列表
<div slot="content" class="community-list">
<!-- <Button
v-for="(item, index) in areaList[street].community"
:key="item.name + index"
@click="handleView(item)"
size="small"
type="text"
long>
{{item.name}}
</Button> -->
<div v-for="(item, index) in areaList[street].community" :key="item.name + index" style="display:flex;justify-content:space-between;">
<Button
@click="handleView(item)"
......@@ -27,7 +18,7 @@
</Panel>
</Collapse>
<Modal v-model="detailModal" width="90%" :footer-hide="true">
<Table :columns="columns" :data="detailData" size="small" :max-height="tableHeight"/>
<Table v-if="detailModal" :columns="columns" :data="detailData" size="small" :max-height="tableHeight"/>
</Modal>
</div>
</template>
......@@ -110,7 +101,7 @@ export default {
{
title: '小区',
key: 'name',
minWidth: 100,
minWidth: 150,
fixed: 'left',
align: 'center',
},
......@@ -259,8 +250,13 @@ export default {
this.addMarker(name)
},
handleDetail({name}) {
if (!this.buildingList[`${this.curStreet}Building`]) return
this.detailData = this.buildingList[`${this.curStreet}Building`].building.filter(item => item.name.indexOf(name) >= 0)
const buildingList = this.buildingList[`${this.curStreet}Building`]
if (!buildingList) return
// this.detailData = buildingList.building.filter(item => item.name.indexOf(name) >= 0)
this.detailData = buildingList.building.filter(item => {
const buildingName = item.name && item.name.replace('(补)', '').replace('(补)', '')
return buildingName.indexOf(name) >= 0
})
this.detailModal = true
},
handleSelect(key) {
......
This diff is collapsed.
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