Compare commits

..

No commits in common. "88effb1c9dfe8126b23892ae1f3bf44155fc8c5f" and "b495b58afdb3ae63b97d0c76e18161534d97506c" have entirely different histories.

7 changed files with 92 additions and 132649 deletions

View File

@ -1,7 +1,6 @@
[ [
{ {
"name": "龙洲街道", "name": "龙洲街道",
"sj": { "sj": {
"type": "FeatureCollection", "type": "FeatureCollection",
"totalFeatures": 26, "totalFeatures": 26,

View File

@ -1,4 +1,4 @@
[
{ {
"type": "FeatureCollection", "type": "FeatureCollection",
"features": [ "features": [
@ -6,7 +6,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.10854514340309, 28.922000508328516], [119.10854514340309, 28.922000508328516],
[119.11039578432603, 28.92151838105444], [119.11039578432603, 28.92151838105444],
@ -694,7 +694,7 @@
[119.10926108515066, 28.92288609001002], [119.10926108515066, 28.92288609001002],
[119.1091523327485, 28.92264646951728], [119.1091523327485, 28.92264646951728],
[119.10854514340309, 28.922000508328516] [119.10854514340309, 28.922000508328516]
]] ]
] ]
}, },
"properties": { "properties": {
@ -709,7 +709,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.16421295935115, 28.75426927440241], [119.16421295935115, 28.75426927440241],
[119.16458203839272, 28.75405446819557], [119.16458203839272, 28.75405446819557],
@ -1638,7 +1638,7 @@
[119.16332652487972, 28.75478216713565], [119.16332652487972, 28.75478216713565],
[119.16421295935115, 28.75426927440241] [119.16421295935115, 28.75426927440241]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.185345462181 28.7694664323522,119.184907702253 28.7681500024233,119.184693862287 28.7679673924517,119.184031462388 28.7676779525325,119.183917342404 28.7675081225472,119.183716102433 28.7669854025755,119.183718622432 28.76642", "geom": "SRID=4326;MULTIPOLYGON(((119.185345462181 28.7694664323522,119.184907702253 28.7681500024233,119.184693862287 28.7679673924517,119.184031462388 28.7676779525325,119.183917342404 28.7675081225472,119.183716102433 28.7669854025755,119.183718622432 28.76642",
@ -1652,7 +1652,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.23902910309528, 28.986272998063505], [119.23902910309528, 28.986272998063505],
[119.2399104368547, 28.98671622766113], [119.2399104368547, 28.98671622766113],
@ -3090,7 +3090,7 @@
[119.23877083255546, 28.98642253220986], [119.23877083255546, 28.98642253220986],
[119.23902910309528, 28.986272998063505] [119.23902910309528, 28.986272998063505]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.25810611993 28.9874213090687,119.257268039892 28.9877406289048,119.257006679883 28.9877165088559,119.256794279877 28.987787248817,119.256131879861 28.9882376087,119.255405399853 28.9881716385797,119.254362479858 28.9871297084", "geom": "SRID=4326;MULTIPOLYGON(((119.25810611993 28.9874213090687,119.257268039892 28.9877406289048,119.257006679883 28.9877165088559,119.256794279877 28.987787248817,119.256131879861 28.9882376087,119.255405399853 28.9881716385797,119.254362479858 28.9871297084",
@ -3104,7 +3104,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.25457035795148, 28.867955122825233], [119.25457035795148, 28.867955122825233],
[119.25479170401553, 28.86827388646682], [119.25479170401553, 28.86827388646682],
@ -4145,7 +4145,7 @@
[119.25379030866394, 28.868076483881577], [119.25379030866394, 28.868076483881577],
[119.25457035795148, 28.867955122825233] [119.25457035795148, 28.867955122825233]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.224800727153 28.8954402308523,119.22541992689 28.8946302306979,119.225853366708 28.8943479005905,119.226085206612 28.8938905205349,119.22652224643 28.8937779304283,119.226892686278 28.8935730903397,119.227656605967 28.8935403", "geom": "SRID=4326;MULTIPOLYGON(((119.224800727153 28.8954402308523,119.22541992689 28.8946302306979,119.225853366708 28.8943479005905,119.226085206612 28.8938905205349,119.22652224643 28.8937779304283,119.226892686278 28.8935730903397,119.227656605967 28.8935403",
@ -4159,7 +4159,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.05634259417491, 29.16321377117728], [119.05634259417491, 29.16321377117728],
[119.05668167833856, 29.163533306957476], [119.05668167833856, 29.163533306957476],
@ -5059,7 +5059,7 @@
[119.0550188460594, 29.163706074005432], [119.0550188460594, 29.163706074005432],
[119.05634259417491, 29.16321377117728] [119.05634259417491, 29.16321377117728]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.136199330248 29.1653876730191,119.135674809985 29.1653496928423,119.135449089872 29.165556332768,119.135090169692 29.1655664126482,119.133601928952 29.1659879721596,119.133000368654 29.1660075019643,119.132130608228 29.166084", "geom": "SRID=4326;MULTIPOLYGON(((119.136199330248 29.1653876730191,119.135674809985 29.1653496928423,119.135449089872 29.165556332768,119.135090169692 29.1655664126482,119.133601928952 29.1659879721596,119.133000368654 29.1660075019643,119.132130608228 29.166084",
@ -5073,7 +5073,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.3149902704068, 29.00349295076197], [119.3149902704068, 29.00349295076197],
[119.3135299465217, 29.00463545739994], [119.3135299465217, 29.00463545739994],
@ -6495,7 +6495,7 @@
[119.31493207011579, 29.003407177815955], [119.31493207011579, 29.003407177815955],
[119.3149902704068, 29.00349295076197] [119.3149902704068, 29.00349295076197]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.318191578954 29.0023489132804,119.318177538951 29.0020000732764,119.31859225904 29.0018004533786,119.320055299333 29.000659703715,119.319996979322 29.0005737537021,119.320459939408 29.0003132938015,119.321344819563 29.0002848", "geom": "SRID=4326;MULTIPOLYGON(((119.318191578954 29.0023489132804,119.318177538951 29.0020000732764,119.31859225904 29.0018004533786,119.320055299333 29.000659703715,119.319996979322 29.0005737537021,119.320459939408 29.0003132938015,119.321344819563 29.0002848",
@ -6509,7 +6509,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.27370536426389, 28.86401472854655], [119.27370536426389, 28.86401472854655],
[119.27402434848193, 28.864634612411937], [119.27402434848193, 28.864634612411937],
@ -7116,7 +7116,7 @@
[119.27326653702782, 28.86416286825971], [119.27326653702782, 28.86416286825971],
[119.27370536426389, 28.86401472854655] [119.27370536426389, 28.86401472854655]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.281848845454 28.8722957474481,119.281568045349 28.8719699473171,119.280657245012 28.8713503868961,119.280195004844 28.8709312566844,119.280702965029 28.8694954869153,119.281116965181 28.8690030971052,119.28151908533 28.868706", "geom": "SRID=4326;MULTIPOLYGON(((119.281848845454 28.8722957474481,119.281568045349 28.8719699473171,119.280657245012 28.8713503868961,119.280195004844 28.8709312566844,119.280702965029 28.8694954869153,119.281116965181 28.8690030971052,119.28151908533 28.868706",
@ -7130,7 +7130,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.07262929376235, 28.96426343659984], [119.07262929376235, 28.96426343659984],
[119.07285904068443, 28.96402414720754], [119.07285904068443, 28.96402414720754],
@ -8125,7 +8125,7 @@
[119.07255450521747, 28.96439472665091], [119.07255450521747, 28.96439472665091],
[119.07262929376235, 28.96426343659984] [119.07262929376235, 28.96426343659984]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.08766304314 28.9526836531827,119.087199363346 28.9521451834345,119.086840443508 28.9513883736328,119.086676283584 28.9503810937242,119.085769804015 28.9506648642428,119.085049804374 28.9510736446685,119.084989684404 28.951580", "geom": "SRID=4326;MULTIPOLYGON(((119.08766304314 28.9526836531827,119.087199363346 28.9521451834345,119.086840443508 28.9513883736328,119.086676283584 28.9503810937242,119.085769804015 28.9506648642428,119.085049804374 28.9510736446685,119.084989684404 28.951580",
@ -8139,7 +8139,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.17899483253369, 28.939929190819853], [119.17899483253369, 28.939929190819853],
[119.1800688416546, 28.93994063404713], [119.1800688416546, 28.93994063404713],
@ -8870,7 +8870,7 @@
[119.17852545463046, 28.940108530264002], [119.17852545463046, 28.940108530264002],
[119.17899483253369, 28.939929190819853] [119.17899483253369, 28.939929190819853]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.209785853963 28.9520849750693,119.209253054203 28.9517931052342,119.2088152944 28.9518836453685,119.208511094536 28.951843235462,119.208136334703 28.9516845655772,119.20773781488 28.9516484756991,119.207355495049 28.951788155", "geom": "SRID=4326;MULTIPOLYGON(((119.209785853963 28.9520849750693,119.209253054203 28.9517931052342,119.2088152944 28.9518836453685,119.208511094536 28.951843235462,119.208136334703 28.9516845655772,119.20773781488 28.9516484756991,119.207355495049 28.951788155",
@ -8884,7 +8884,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.19673410595996, 29.081353976104804], [119.19673410595996, 29.081353976104804],
[119.19431313687134, 29.080994354930866], [119.19431313687134, 29.080994354930866],
@ -10481,7 +10481,7 @@
[119.19709088544813, 29.08064449535014], [119.19709088544813, 29.08064449535014],
[119.19673410595996, 29.081353976104804] [119.19673410595996, 29.081353976104804]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.187794541892 29.0754326806906,119.1969198193 29.0777157088267,119.199375378409 29.0782058481937,119.201791697468 29.0785617075296,119.202147737324 29.0778510674259,119.202139817327 29.0774590274267,119.20230469726 29.07725886", "geom": "SRID=4326;MULTIPOLYGON(((119.187794541892 29.0754326806906,119.1969198193 29.0777157088267,119.199375378409 29.0782058481937,119.201791697468 29.0785617075296,119.202147737324 29.0778510674259,119.202139817327 29.0774590274267,119.20230469726 29.07725886",
@ -10495,7 +10495,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.2622028115618, 28.797619698364564], [119.2622028115618, 28.797619698364564],
[119.26219668968452, 28.797674651924954], [119.26219668968452, 28.797674651924954],
@ -10977,7 +10977,7 @@
[119.26096847430128, 28.798142328082783], [119.26096847430128, 28.798142328082783],
[119.2622028115618, 28.797619698364564] [119.2622028115618, 28.797619698364564]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.271929042215 28.8069973232039,119.27179944218 28.8066856531557,119.271414602079 28.8061995630137,119.270769481913 28.8056583927794,119.270368441813 28.8054608426362,119.269177921529 28.8052411522223,119.268242281321 28.805230", "geom": "SRID=4326;MULTIPOLYGON(((119.271929042215 28.8069973232039,119.27179944218 28.8066856531557,119.271414602079 28.8061995630137,119.270769481913 28.8056583927794,119.270368441813 28.8054608426362,119.269177921529 28.8052411522223,119.268242281321 28.805230",
@ -10991,7 +10991,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.10896431065798, 28.743910164350364], [119.10896431065798, 28.743910164350364],
[119.10916558651901, 28.744625370502355], [119.10916558651901, 28.744625370502355],
@ -11793,7 +11793,7 @@
[119.10870787344905, 28.74388072851587], [119.10870787344905, 28.74388072851587],
[119.10896431065798, 28.743910164350364] [119.10896431065798, 28.743910164350364]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.119719602846 28.7502281090769,119.119623842812 28.7498632490607,119.119663802826 28.7496288890703,119.119004282598 28.7490218389478,119.11822848234 28.747922668815,119.118081962292 28.7472797087941,119.118271322354 28.7466515", "geom": "SRID=4326;MULTIPOLYGON(((119.119719602846 28.7502281090769,119.119623842812 28.7498632490607,119.119663802826 28.7496288890703,119.119004282598 28.7490218389478,119.11822848234 28.747922668815,119.118081962292 28.7472797087941,119.118271322354 28.7466515",
@ -11807,7 +11807,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.19673410595996, 29.081353976104804], [119.19673410595996, 29.081353976104804],
[119.19821902009701, 29.08157466002608], [119.19821902009701, 29.08157466002608],
@ -13336,7 +13336,7 @@
[119.19431313687134, 29.080994354930866], [119.19431313687134, 29.080994354930866],
[119.19673410595996, 29.081353976104804] [119.19673410595996, 29.081353976104804]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.291507289436 29.080654032376,119.289619808639 29.080694711434,119.288108888008 29.0808254806814,119.28755880778 29.0809627304082,119.287283407667 29.0811216702717,119.286614527392 29.0818812699411,119.28597048713 29.082399939", "geom": "SRID=4326;MULTIPOLYGON(((119.291507289436 29.080654032376,119.289619808639 29.080694711434,119.288108888008 29.0808254806814,119.28755880778 29.0809627304082,119.287283407667 29.0811216702717,119.286614527392 29.0818812699411,119.28597048713 29.082399939",
@ -13350,7 +13350,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.18451474583492, 29.1555132310908], [119.18451474583492, 29.1555132310908],
[119.18445123096969, 29.15577013564355], [119.18445123096969, 29.15577013564355],
@ -15346,7 +15346,7 @@
[119.18410027686086, 29.155029999290164], [119.18410027686086, 29.155029999290164],
[119.18451474583492, 29.1555132310908] [119.18451474583492, 29.1555132310908]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.198105658933 29.1566995289746,119.197970298982 29.1563550090074,119.198069298945 29.1561143489798,119.198243178882 29.1559572989331,119.198648538733 29.1559635088261,119.198822058669 29.1558780987793,119.198968938614 29.15535", "geom": "SRID=4326;MULTIPOLYGON(((119.198105658933 29.1566995289746,119.197970298982 29.1563550090074,119.198069298945 29.1561143489798,119.198243178882 29.1559572989331,119.198648538733 29.1559635088261,119.198822058669 29.1558780987793,119.198968938614 29.15535",
@ -15360,7 +15360,7 @@
"type": "Feature", "type": "Feature",
"geometry": { "geometry": {
"type": "Polygon", "type": "Polygon",
"coordinates": [[ "coordinates": [
[ [
[119.17494522268943, 29.09304620245221], [119.17494522268943, 29.09304620245221],
[119.17503895423627, 29.093878481668494], [119.17503895423627, 29.093878481668494],
@ -16748,7 +16748,7 @@
[119.17484240766746, 29.09297091915308], [119.17484240766746, 29.09297091915308],
[119.17494522268943, 29.09304620245221] [119.17494522268943, 29.09304620245221]
] ]
]] ]
}, },
"properties": { "properties": {
"geom": "SRID=4326;MULTIPOLYGON(((119.185179142414 29.1063604612029,119.185257262401 29.1061117011918,119.185857382296 29.1062120511153,119.186096422253 29.1061404110829,119.186168782239 29.1053138510685,119.186662342145 29.1043294309944,119.187107302056 29.10425", "geom": "SRID=4326;MULTIPOLYGON(((119.185179142414 29.1063604612029,119.185257262401 29.1061117011918,119.185857382296 29.1062120511153,119.186096422253 29.1061404110829,119.186168782239 29.1053138510685,119.186662342145 29.1043294309944,119.187107302056 29.10425",
@ -16760,4 +16760,3 @@
} }
] ]
} }
]

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1024,7 +1024,7 @@ const getData = async () => {
}; };
onMounted(() => { onMounted(() => {
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); // tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
startAutoSwitching(); startAutoSwitching();
}); });

View File

@ -1036,7 +1036,7 @@ watch(
} }
); );
onMounted(() => { onMounted(() => {
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); // tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
if (routers.query.type) { if (routers.query.type) {
errorMessage.value = ""; errorMessage.value = "";
dataMyTag.identNo = routers.query.identNo; dataMyTag.identNo = routers.query.identNo;

View File

@ -165,14 +165,7 @@
修改村名 修改村名
</div> </div>
<div <div
class="btnsave" class="btnopen"
@click="xzEdit"
v-if="!add_mode && !edit_mode && !move_mode"
>
修改所属乡镇
</div>
<div
class="btnsave"
@click="centerEdit" @click="centerEdit"
v-if="!add_mode && !edit_mode && !move_mode" v-if="!add_mode && !edit_mode && !move_mode"
> >
@ -344,7 +337,7 @@
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
<!-- 地图编辑权限 --> <!-- 修改村名 -->
<el-dialog v-model="qx" title="地图编辑权限" width="300"> <el-dialog v-model="qx" title="地图编辑权限" width="300">
<el-input <el-input
v-model="qxvalue" v-model="qxvalue"
@ -357,19 +350,6 @@
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
<!-- 修改所属乡镇 -->
<el-dialog v-model="dialogVisible4" title="修改所属乡镇" width="500">
<el-input
v-model="input3"
style="width: 240px"
placeholder="请输入所属乡镇"
/>
<template #footer>
<div class="dialog-footer">
<el-button type="primary" @click="ssxzEdit()"> 确认修改 </el-button>
</div>
</template>
</el-dialog>
</teleport> </teleport>
</div> </div>
</template> </template>
@ -389,7 +369,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
import tools from "@/utils/tools"; import tools from "@/utils/tools";
import initializeMap from "@/utils/mapInitializer.js"; import initializeMap from "@/utils/mapInitializer.js";
import http from "@/utils/request.js"; import http from "@/utils/request.js";
// import mapTown from "@/assets/json/lyx.json"; import mapTown from "@/assets/json/ly.json";
import { VideoCamera } from "@element-plus/icons-vue"; import { VideoCamera } from "@element-plus/icons-vue";
// import xkz from "@/assets/json/xkz.json"; // import xkz from "@/assets/json/xkz.json";
// import cssj from "@/assets/json/cssj.json"; // import cssj from "@/assets/json/cssj.json";
@ -461,11 +441,9 @@ const addPd = computed(() => {
// //
const input1 = ref(""); const input1 = ref("");
const input2 = ref([]); const input2 = ref([]);
const input3=ref("")
const dialogVisible = ref(false); const dialogVisible = ref(false);
const dialogVisible2 = ref(false); const dialogVisible2 = ref(false);
const dialogVisible3 = ref(false); const dialogVisible3 = ref(false);
const dialogVisible4 = ref(false);
const qx = ref(false); const qx = ref(false);
// //
const loadingss = ref(false); const loadingss = ref(false);
@ -507,8 +485,6 @@ const cfCsZs = ref("");
var map = null; var map = null;
// //
const mapTownDataDK = reactive([]); const mapTownDataDK = reactive([]);
//
var mapTown = [];
// //
var xkzDk = []; var xkzDk = [];
// //
@ -602,83 +578,83 @@ const tsbq_pp = ref([]);
const chooseCsList = ref([]); const chooseCsList = ref([]);
// //
const unChooseList = ref([]); const unChooseList = ref([]);
// const sqname = ref(); const sqname = ref();
// const townName = ref(); // const townName = ref();
//() //()
const mapTownCount = reactive([ const mapTownCount = reactive([
{ {
name: "龙洲街道", name: "龙洲街道",
center: [], center: [119.1573083, 28.9799445],
number: "1000", number: "1000",
}, },
{ {
name: "东华街道", name: "东华街道",
center: [], center: [119.209592, 28.9799445],
number: "1000", number: "1000",
}, },
{ {
name: "小南海镇", name: "小南海镇",
center: [], center: [119.119616, 29.07309],
number: "1000", number: "1000",
}, },
{ {
name: "湖镇镇", name: "湖镇镇",
center: [], center: [119.2906892, 29.0386151],
number: "1000", number: "1000",
}, },
{ {
name: "溪口镇", name: "溪口镇",
center: [], center: [119.1859408, 28.8879474],
number: "1000", number: "1000",
}, },
{ {
name: "詹家镇", name: "詹家镇",
center: [], center: [119.1201732, 29.005175],
number: "1000", number: "1000",
}, },
{ {
name: "塔石镇", name: "塔石镇",
center: [], center: [119.1256669, 29.1373072],
number: "1000", number: "1000",
}, },
{ {
name: "横山镇", name: "横山镇",
center: [], center: [119.1876111, 29.1903275],
number: "1000", number: "1000",
}, },
{ {
name: "模环乡", name: "模环乡",
center: [], center: [119.237015, 29.120862],
number: "1000", number: "1000",
}, },
{ {
name: "石佛乡", name: "石佛乡",
center: [], center: [119.1002998, 29.2018674],
number: "1000", number: "1000",
}, },
{ {
name: "沐尘畲族乡", name: "沐尘畲族乡",
center: [], center: [119.1837169, 28.8014116],
number: "1000", number: "1000",
}, },
{ {
name: "罗家乡", name: "罗家乡",
center: [], center: [119.2453273, 28.9130851],
number: "1000", number: "1000",
}, },
{ {
name: "庙下乡", name: "庙下乡",
center: [], center: [119.1037175, 28.8089885],
number: "1000", number: "1000",
}, },
{ {
name: "大街乡", name: "大街乡",
center: [], center: [119.2664362, 28.8432149],
number: "1000", number: "1000",
}, },
{ {
name: "社阳乡", name: "社阳乡",
center: [], center: [119.3109367, 28.9074754],
number: "1000", number: "1000",
}, },
]); ]);
@ -1065,32 +1041,18 @@ const initMap = () => {
// //
addJd(); addJd();
}; };
//
const getXzsj = async () => {
await http
.get("/api/ggfwyth/regionalDivision/getManagerTownDetails")
.then((res) => {
if (res.code == 200) {
console.log(JSON.parse(res.data));
mapTown = JSON.parse(res.data);
}
});
};
const getCssj = async () => { const getCssj = async () => {
await http await http.get("/api/ggfwyth/regionalDivision/getDetails").then((res) => {
.get("/api/ggfwyth/regionalDivision/getManagerVillageDetails") if (res.code == 200) {
.then((res) => { cssj = JSON.parse(res.data);
if (res.code == 200) { }
cssj = JSON.parse(res.data); });
}
});
}; };
/** /**
* 地块编辑 * 地块编辑
*/ */
// //
const jsqx = ref(true); const jsqx = ref(false);
const qxkey = "ggfwyth123"; const qxkey = "ggfwyth123";
const qxvalue = ref(""); const qxvalue = ref("");
const bjtitle = computed(() => { const bjtitle = computed(() => {
@ -1387,15 +1349,13 @@ const saveDK = async () => {
}; };
// console.log(sj.data); // console.log(sj.data);
await http await http.post(`/api/ggfwyth/regionalDivision/edit`, sj).then((res) => {
.post(`/api/ggfwyth/regionalDivision/editVillage`, sj) if (res.code == 200) {
.then((res) => { ElMessage.success({
if (res.code == 200) { message: "保存成功",
ElMessage.success({ });
message: "保存成功", }
}); });
}
});
await getCssj(); await getCssj();
await loadCs(cfJd.value); await loadCs(cfJd.value);
cs_choose_arr.value.forEach((item, index) => { cs_choose_arr.value.forEach((item, index) => {
@ -1414,10 +1374,6 @@ const saveDK = async () => {
const nameEdit = () => { const nameEdit = () => {
dialogVisible.value = true; dialogVisible.value = true;
}; };
//
const xzEdit=()=>{
dialogVisible4.value = true;
}
const centerEdit = () => { const centerEdit = () => {
dialogVisible3.value = true; dialogVisible3.value = true;
}; };
@ -1456,10 +1412,6 @@ const csName = async () => {
}); });
}, 500); }, 500);
}; };
const ssxzEdit=()=>{
console.log(cs_choose_arr.value[0]);
}
const csCenter = async () => { const csCenter = async () => {
let regionalDivisionEditDTO = { let regionalDivisionEditDTO = {
id: changeCsqkId.value, id: changeCsqkId.value,
@ -1552,7 +1504,7 @@ const addcenter = () => {
// //
const look = () => { const look = () => {
add_new_cs.area[0][0] = []; add_new_cs.area[0][0] = [];
// console.log(111111111, sceneDrawStatus.value); console.log(111111111, sceneDrawStatus.value);
sceneDrawStatus.value?.drawPoint.forEach((item, index) => { sceneDrawStatus.value?.drawPoint.forEach((item, index) => {
let arr1 = []; let arr1 = [];
arr1.push(item.lng); arr1.push(item.lng);
@ -1560,7 +1512,7 @@ const look = () => {
console.log(index, arr1); console.log(index, arr1);
add_new_cs.area[0][0].push(arr1); add_new_cs.area[0][0].push(arr1);
}); });
console.log(2222, add_new_cs.area[0]); console.log(2222, add_new_cs.area[0][0]);
dialogVisible2.value = true; dialogVisible2.value = true;
}; };
@ -1584,28 +1536,19 @@ const addNew = async () => {
name: cfJd.value, name: cfJd.value,
data: {}, data: {},
}; };
// let sj = {
// name: "",
// data: {},
// };
data1.id = `${cfJd.value}_${add_new_cs.name}`; data1.id = `${cfJd.value}_${add_new_cs.name}`;
// data1.id = `_${add_new_cs.name}`;
data1.geometry.coordinates = [...add_new_cs.area]; data1.geometry.coordinates = [...add_new_cs.area];
data1.properties.name = add_new_cs.name; data1.properties.name = add_new_cs.name;
data1.properties.center = add_new_cs.center; data1.properties.center = add_new_cs.center;
sj.data = JSON.stringify(data1); sj.data = JSON.stringify(data1);
console.log(sj); await http.post(`/api/ggfwyth/regionalDivision/add`, sj).then((res) => {
if (res.code == 200) {
await http ElMessage.success({
.post(`/api/ggfwyth/regionalDivision/addVillage`, sj) message: "添加成功",
.then((res) => { });
if (res.code == 200) { dialogVisible2.value = false;
ElMessage.success({ }
message: "添加成功", });
});
dialogVisible2.value = false;
}
});
cancel(); cancel();
add_new_cs.name = ""; add_new_cs.name = "";
add_new_cs.center = []; add_new_cs.center = [];
@ -1626,9 +1569,8 @@ const deleteCs = async () => {
.then(() => { .then(() => {
loadingss.value = true; loadingss.value = true;
http http
.post(
`/api/ggfwyth/regionalDivision/delVillage?id=${changeCsqkId.value}` .post(`/api/ggfwyth/regionalDivision/del?id=${changeCsqkId.value}`)
)
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
ElMessage.success({ ElMessage.success({
@ -3112,7 +3054,7 @@ const drawACircle = (maxDistance) => {
strokeOpacity: 0.8, strokeOpacity: 0.8,
fillOpacity: 0.1, fillOpacity: 0.1,
strokeStyle: "dashed", strokeStyle: "dashed",
zIndex: 10, zIndex: 99,
// fillColor: "yellow", // fillColor: "yellow",
}); });
map.addOverlay(circle); map.addOverlay(circle);
@ -3231,9 +3173,7 @@ const updateFwqList = (data, townName, communityName) => {
//---------------- //----------------
// //
const loadTown = () => { const loadTown = () => {
console.log(); for (let v of mapTown.features) {
for (let v of mapTown[0].features) {
if (v.geometry.coordinates.length > 1) { if (v.geometry.coordinates.length > 1) {
for (let w in v.geometry.coordinates) { for (let w in v.geometry.coordinates) {
if (v.geometry.coordinates[w][0].length < 60) continue; if (v.geometry.coordinates[w][0].length < 60) continue;
@ -3247,11 +3187,6 @@ const loadTown = () => {
name: v.properties.name, name: v.properties.name,
point: v.geometry.coordinates[0], point: v.geometry.coordinates[0],
}); });
mapTownCount.forEach((item) => {
if (v.properties.name == item.name) {
item.center = [...v.properties.center];
}
});
} }
} }
}; };
@ -3276,31 +3211,24 @@ const addPolygonCounty = () => {
// item.leg = 0; // item.leg = 0;
// //
let points = []; let points = [];
// item.point[0].forEach((itemm, indexx) => { item.point.map((p) => points.push(new BMapGL.Point(...p)));
// itemm[0] = itemm[0] + 0.01095;
// itemm[1] = itemm[1] + 0.00314;
// });
item.point[0].map((p) => points.push(new BMapGL.Point(...p)));
let offsetPoints = points.map((point) => let offsetPoints = points.map((point) =>
offsetPoint(point, offsetX, offsetY) offsetPoint(point, offsetX, offsetY)
); );
if (points.length) { if (points.length) {
// //
let polygon = new BMapGL.Polygon(points, { let polygon = new BMapGL.Polygon(offsetPoints, {
strokeColor: "#5E9AD2", strokeColor: "#5E9AD2",
strokeWeight: 2, strokeWeight: 2,
strokeOpacity: 0.8, strokeOpacity: 0.8,
fillColor: fillColor, fillColor: fillColor,
fillOpacity: 0.7, fillOpacity: 0.7,
name: item.name, name: item.name,
zIndex: 92,
}); });
map.addOverlay(polygon); map.addOverlay(polygon);
polygon.addEventListener("click", async () => { polygon.addEventListener("click", async () => {
// if (cfJd.value == "" && item.name=='') {
// return;
// }
if (showEdit.value) { if (showEdit.value) {
return; return;
} }
@ -3398,7 +3326,8 @@ const createCustomOverlayJd = (polygon, indexx) => {
jdm_arr.value[indexx] = new BMapGL.CustomOverlay(createLabelDOM, { jdm_arr.value[indexx] = new BMapGL.CustomOverlay(createLabelDOM, {
point: new BMapGL.Point(...polygon.center), point: new BMapGL.Point(...polygon.center),
opacity: 0.5, opacity: 0.5,
offsetY: -10, offsetX: 10,
offsetY: -15,
properties: { properties: {
title: polygon.name, title: polygon.name,
type: "customOverlay", type: "customOverlay",
@ -3470,7 +3399,8 @@ const createCustomOverlayJd2 = (polygon, indexx) => {
jdm_number_arr.value[indexx] = new BMapGL.CustomOverlay(createLabelDOM, { jdm_number_arr.value[indexx] = new BMapGL.CustomOverlay(createLabelDOM, {
point: new BMapGL.Point(...polygon.center), point: new BMapGL.Point(...polygon.center),
opacity: 0.5, opacity: 0.5,
offsetY: -10, offsetX: 10,
offsetY: -15,
properties: { properties: {
title: polygon.name, title: polygon.name,
number: polygon[`${num}`], number: polygon[`${num}`],
@ -3546,18 +3476,15 @@ const addPolygonCountyCs = () => {
fillColor: fillColor, fillColor: fillColor,
fillOpacity: 0.3, fillOpacity: 0.3,
name: item.name, name: item.name,
zIndex: 2, zIndex: 99,
}); });
map.addOverlay(cs_qk_arr.value[index]); map.addOverlay(cs_qk_arr.value[index]);
cs_qk_arr.value[index].addEventListener("click", async () => { cs_qk_arr.value[index].addEventListener("click", async () => {
console.log("cunshee");
if (drawing.value) { if (drawing.value) {
return; return;
} }
loadingss.value = true; loadingss.value = true;
cs_dd_arr.value = []; cs_dd_arr.value = [];
xuanzhongCs.value=[];
cfCs.value = item.name; cfCs.value = item.name;
title_cs.value = item.name; title_cs.value = item.name;
sfdd.value = true; sfdd.value = true;
@ -3604,6 +3531,7 @@ const addPolygonCountyCs = () => {
// //
const addCsChoose = () => { const addCsChoose = () => {
chooseCsList.value.map((item, index) => { chooseCsList.value.map((item, index) => {
sqname.value = item.name;
let fillColor = "blue"; let fillColor = "blue";
// //
let points = []; let points = [];
@ -3620,7 +3548,7 @@ const addCsChoose = () => {
fillColor: fillColor, fillColor: fillColor,
fillOpacity: 0.3, fillOpacity: 0.3,
name: item.name, name: item.name,
zIndex: 5, zIndex: 99,
}); });
map.addOverlay(cs_choose_arr.value[index]); map.addOverlay(cs_choose_arr.value[index]);
} }
@ -3645,7 +3573,7 @@ const addCsUnChoose = () => {
fillColor: fillColor, fillColor: fillColor,
fillOpacity: 0.3, fillOpacity: 0.3,
name: item.name, name: item.name,
zIndex: 5, zIndex: 99,
}); });
map.addOverlay(cs_un_choose_arr.value[index]); map.addOverlay(cs_un_choose_arr.value[index]);
cs_un_choose_arr.value[index].addEventListener("click", async () => { cs_un_choose_arr.value[index].addEventListener("click", async () => {
@ -3704,7 +3632,7 @@ const addCs = () => {
xkzCenter.map((item, index) => { xkzCenter.map((item, index) => {
// item.center[0] = item.center[0] + 0.01; // item.center[0] = item.center[0] + 0.01;
// item.center[1] = item.center[1] + 0.00328; // item.center[1] = item.center[1] + 0.00328;
// console.log(item.center); console.log(item.center);
createCs(item, index); createCs(item, index);
}); });
}; };
@ -4010,10 +3938,9 @@ const reset_font2 = () => {
"scale(" + width / 1920 + "," + height / 1080 + ")"; "scale(" + width / 1920 + "," + height / 1080 + ")";
}; };
onMounted(async () => { onMounted(async () => {
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); // tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
loadingss.value = true; loadingss.value = true;
reset_font(); reset_font();
await getXzsj();
initMap(); initMap();
getData(); getData();
BMAP(); BMAP();