This commit is contained in:
parent
89f5ba486f
commit
14d8cc3ad8
|
@ -1,6 +1,7 @@
|
|||
[
|
||||
{
|
||||
"name": "龙洲街道",
|
||||
|
||||
"sj": {
|
||||
"type": "FeatureCollection",
|
||||
"totalFeatures": 26,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
[
|
||||
{
|
||||
"type": "FeatureCollection",
|
||||
"features": [
|
||||
|
@ -6,7 +6,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.10854514340309, 28.922000508328516],
|
||||
[119.11039578432603, 28.92151838105444],
|
||||
|
@ -694,7 +694,7 @@
|
|||
[119.10926108515066, 28.92288609001002],
|
||||
[119.1091523327485, 28.92264646951728],
|
||||
[119.10854514340309, 28.922000508328516]
|
||||
]
|
||||
]]
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
|
@ -709,7 +709,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.16421295935115, 28.75426927440241],
|
||||
[119.16458203839272, 28.75405446819557],
|
||||
|
@ -1638,7 +1638,7 @@
|
|||
[119.16332652487972, 28.75478216713565],
|
||||
[119.16421295935115, 28.75426927440241]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -1652,7 +1652,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.23902910309528, 28.986272998063505],
|
||||
[119.2399104368547, 28.98671622766113],
|
||||
|
@ -3090,7 +3090,7 @@
|
|||
[119.23877083255546, 28.98642253220986],
|
||||
[119.23902910309528, 28.986272998063505]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -3104,7 +3104,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.25457035795148, 28.867955122825233],
|
||||
[119.25479170401553, 28.86827388646682],
|
||||
|
@ -4145,7 +4145,7 @@
|
|||
[119.25379030866394, 28.868076483881577],
|
||||
[119.25457035795148, 28.867955122825233]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -4159,7 +4159,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.05634259417491, 29.16321377117728],
|
||||
[119.05668167833856, 29.163533306957476],
|
||||
|
@ -5059,7 +5059,7 @@
|
|||
[119.0550188460594, 29.163706074005432],
|
||||
[119.05634259417491, 29.16321377117728]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -5073,7 +5073,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.3149902704068, 29.00349295076197],
|
||||
[119.3135299465217, 29.00463545739994],
|
||||
|
@ -6495,7 +6495,7 @@
|
|||
[119.31493207011579, 29.003407177815955],
|
||||
[119.3149902704068, 29.00349295076197]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -6509,7 +6509,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.27370536426389, 28.86401472854655],
|
||||
[119.27402434848193, 28.864634612411937],
|
||||
|
@ -7116,7 +7116,7 @@
|
|||
[119.27326653702782, 28.86416286825971],
|
||||
[119.27370536426389, 28.86401472854655]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -7130,7 +7130,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.07262929376235, 28.96426343659984],
|
||||
[119.07285904068443, 28.96402414720754],
|
||||
|
@ -8125,7 +8125,7 @@
|
|||
[119.07255450521747, 28.96439472665091],
|
||||
[119.07262929376235, 28.96426343659984]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -8139,7 +8139,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.17899483253369, 28.939929190819853],
|
||||
[119.1800688416546, 28.93994063404713],
|
||||
|
@ -8870,7 +8870,7 @@
|
|||
[119.17852545463046, 28.940108530264002],
|
||||
[119.17899483253369, 28.939929190819853]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -8884,7 +8884,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.19673410595996, 29.081353976104804],
|
||||
[119.19431313687134, 29.080994354930866],
|
||||
|
@ -10481,7 +10481,7 @@
|
|||
[119.19709088544813, 29.08064449535014],
|
||||
[119.19673410595996, 29.081353976104804]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -10495,7 +10495,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.2622028115618, 28.797619698364564],
|
||||
[119.26219668968452, 28.797674651924954],
|
||||
|
@ -10977,7 +10977,7 @@
|
|||
[119.26096847430128, 28.798142328082783],
|
||||
[119.2622028115618, 28.797619698364564]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -10991,7 +10991,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.10896431065798, 28.743910164350364],
|
||||
[119.10916558651901, 28.744625370502355],
|
||||
|
@ -11793,7 +11793,7 @@
|
|||
[119.10870787344905, 28.74388072851587],
|
||||
[119.10896431065798, 28.743910164350364]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -11807,7 +11807,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.19673410595996, 29.081353976104804],
|
||||
[119.19821902009701, 29.08157466002608],
|
||||
|
@ -13336,7 +13336,7 @@
|
|||
[119.19431313687134, 29.080994354930866],
|
||||
[119.19673410595996, 29.081353976104804]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -13350,7 +13350,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.18451474583492, 29.1555132310908],
|
||||
[119.18445123096969, 29.15577013564355],
|
||||
|
@ -15346,7 +15346,7 @@
|
|||
[119.18410027686086, 29.155029999290164],
|
||||
[119.18451474583492, 29.1555132310908]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -15360,7 +15360,7 @@
|
|||
"type": "Feature",
|
||||
"geometry": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
"coordinates": [[
|
||||
[
|
||||
[119.17494522268943, 29.09304620245221],
|
||||
[119.17503895423627, 29.093878481668494],
|
||||
|
@ -16748,7 +16748,7 @@
|
|||
[119.17484240766746, 29.09297091915308],
|
||||
[119.17494522268943, 29.09304620245221]
|
||||
]
|
||||
]
|
||||
]]
|
||||
},
|
||||
"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",
|
||||
|
@ -16760,3 +16760,4 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -996,7 +996,7 @@ const getData = async () => {
|
|||
};
|
||||
|
||||
onMounted(() => {
|
||||
// tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
|
||||
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
|
||||
startAutoSwitching();
|
||||
});
|
||||
|
||||
|
|
|
@ -1036,7 +1036,7 @@ watch(
|
|||
}
|
||||
);
|
||||
onMounted(() => {
|
||||
// tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
|
||||
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
|
||||
if (routers.query.type) {
|
||||
errorMessage.value = "";
|
||||
dataMyTag.identNo = routers.query.identNo;
|
||||
|
|
|
@ -165,7 +165,14 @@
|
|||
修改村名
|
||||
</div>
|
||||
<div
|
||||
class="btnopen"
|
||||
class="btnsave"
|
||||
@click="xzEdit"
|
||||
v-if="!add_mode && !edit_mode && !move_mode"
|
||||
>
|
||||
修改所属乡镇
|
||||
</div>
|
||||
<div
|
||||
class="btnsave"
|
||||
@click="centerEdit"
|
||||
v-if="!add_mode && !edit_mode && !move_mode"
|
||||
>
|
||||
|
@ -337,7 +344,7 @@
|
|||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<!-- 修改村名 -->
|
||||
<!-- 地图编辑权限 -->
|
||||
<el-dialog v-model="qx" title="地图编辑权限" width="300">
|
||||
<el-input
|
||||
v-model="qxvalue"
|
||||
|
@ -350,6 +357,19 @@
|
|||
</div>
|
||||
</template>
|
||||
</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>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -369,7 +389,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
|
|||
import tools from "@/utils/tools";
|
||||
import initializeMap from "@/utils/mapInitializer.js";
|
||||
import http from "@/utils/request.js";
|
||||
import mapTown from "@/assets/json/ly.json";
|
||||
// import mapTown from "@/assets/json/lyx.json";
|
||||
import { VideoCamera } from "@element-plus/icons-vue";
|
||||
// import xkz from "@/assets/json/xkz.json";
|
||||
// import cssj from "@/assets/json/cssj.json";
|
||||
|
@ -441,9 +461,11 @@ const addPd = computed(() => {
|
|||
//编辑村名
|
||||
const input1 = ref("");
|
||||
const input2 = ref([]);
|
||||
const input3=ref("")
|
||||
const dialogVisible = ref(false);
|
||||
const dialogVisible2 = ref(false);
|
||||
const dialogVisible3 = ref(false);
|
||||
const dialogVisible4 = ref(false);
|
||||
const qx = ref(false);
|
||||
//加载
|
||||
const loadingss = ref(false);
|
||||
|
@ -485,6 +507,8 @@ const cfCsZs = ref("");
|
|||
var map = null;
|
||||
//默认龙游县灰色地块
|
||||
const mapTownDataDK = reactive([]);
|
||||
//龙游县街道数据
|
||||
var mapTown = [];
|
||||
//社区地块
|
||||
var xkzDk = [];
|
||||
//社区中心点
|
||||
|
@ -578,83 +602,83 @@ const tsbq_pp = ref([]);
|
|||
const chooseCsList = ref([]);
|
||||
//单选未中社区区块
|
||||
const unChooseList = ref([]);
|
||||
const sqname = ref();
|
||||
// const sqname = ref();
|
||||
// const townName = ref();
|
||||
//地图街道设置(存放数量)
|
||||
const mapTownCount = reactive([
|
||||
{
|
||||
name: "龙洲街道",
|
||||
center: [119.1573083, 28.9799445],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "东华街道",
|
||||
center: [119.209592, 28.9799445],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "小南海镇",
|
||||
center: [119.119616, 29.07309],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "湖镇镇",
|
||||
center: [119.2906892, 29.0386151],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "溪口镇",
|
||||
center: [119.1859408, 28.8879474],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "詹家镇",
|
||||
center: [119.1201732, 29.005175],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "塔石镇",
|
||||
center: [119.1256669, 29.1373072],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "横山镇",
|
||||
center: [119.1876111, 29.1903275],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "模环乡",
|
||||
center: [119.237015, 29.120862],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "石佛乡",
|
||||
center: [119.1002998, 29.2018674],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "沐尘畲族乡",
|
||||
center: [119.1837169, 28.8014116],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "罗家乡",
|
||||
center: [119.2453273, 28.9130851],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "庙下乡",
|
||||
center: [119.1037175, 28.8089885],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "大街乡",
|
||||
center: [119.2664362, 28.8432149],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
{
|
||||
name: "社阳乡",
|
||||
center: [119.3109367, 28.9074754],
|
||||
center: [],
|
||||
number: "1000",
|
||||
},
|
||||
]);
|
||||
|
@ -821,7 +845,7 @@ const yaosuTotal = ref([
|
|||
img: j7,
|
||||
img_map: j7_map,
|
||||
wz: false,
|
||||
tooltip:'name'
|
||||
tooltip: "name",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
|
@ -842,7 +866,7 @@ const yaosuTotal = ref([
|
|||
img: j10,
|
||||
wz: true,
|
||||
url: "/api/ggfwyth/ysyzt/getAeds",
|
||||
tooltip:'siteAddress'
|
||||
tooltip: "siteAddress",
|
||||
},
|
||||
{
|
||||
id: 11,
|
||||
|
@ -851,7 +875,7 @@ const yaosuTotal = ref([
|
|||
img_map: j11_map,
|
||||
wz: false,
|
||||
url: "/api/ggfwyth/ysyzt/getJashsxt",
|
||||
tooltip:'sbmc'
|
||||
tooltip: "sbmc",
|
||||
},
|
||||
]);
|
||||
//选中的资源要素
|
||||
|
@ -1041,8 +1065,22 @@ const initMap = () => {
|
|||
//添加街道名
|
||||
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 () => {
|
||||
await http.get("/api/ggfwyth/regionalDivision/getDetails").then((res) => {
|
||||
await http
|
||||
.get("/api/ggfwyth/regionalDivision/getManagerVillageDetails")
|
||||
.then((res) => {
|
||||
if (res.code == 200) {
|
||||
cssj = JSON.parse(res.data);
|
||||
}
|
||||
|
@ -1052,7 +1090,7 @@ const getCssj = async () => {
|
|||
* 地块编辑
|
||||
*/
|
||||
//解锁
|
||||
const jsqx = ref(false);
|
||||
const jsqx = ref(true);
|
||||
const qxkey = "ggfwyth123";
|
||||
const qxvalue = ref("");
|
||||
const bjtitle = computed(() => {
|
||||
|
@ -1349,7 +1387,9 @@ const saveDK = async () => {
|
|||
};
|
||||
// console.log(sj.data);
|
||||
|
||||
await http.post(`/api/ggfwyth/regionalDivision/edit`, sj).then((res) => {
|
||||
await http
|
||||
.post(`/api/ggfwyth/regionalDivision/editVillage`, sj)
|
||||
.then((res) => {
|
||||
if (res.code == 200) {
|
||||
ElMessage.success({
|
||||
message: "保存成功",
|
||||
|
@ -1374,6 +1414,10 @@ const saveDK = async () => {
|
|||
const nameEdit = () => {
|
||||
dialogVisible.value = true;
|
||||
};
|
||||
//修改所属乡镇
|
||||
const xzEdit=()=>{
|
||||
dialogVisible4.value = true;
|
||||
}
|
||||
const centerEdit = () => {
|
||||
dialogVisible3.value = true;
|
||||
};
|
||||
|
@ -1412,6 +1456,10 @@ const csName = async () => {
|
|||
});
|
||||
}, 500);
|
||||
};
|
||||
const ssxzEdit=()=>{
|
||||
console.log(cs_choose_arr.value[0]);
|
||||
|
||||
}
|
||||
const csCenter = async () => {
|
||||
let regionalDivisionEditDTO = {
|
||||
id: changeCsqkId.value,
|
||||
|
@ -1504,7 +1552,7 @@ const addcenter = () => {
|
|||
//查看添加列表
|
||||
const look = () => {
|
||||
add_new_cs.area[0][0] = [];
|
||||
console.log(111111111, sceneDrawStatus.value);
|
||||
// console.log(111111111, sceneDrawStatus.value);
|
||||
sceneDrawStatus.value?.drawPoint.forEach((item, index) => {
|
||||
let arr1 = [];
|
||||
arr1.push(item.lng);
|
||||
|
@ -1512,7 +1560,7 @@ const look = () => {
|
|||
console.log(index, arr1);
|
||||
add_new_cs.area[0][0].push(arr1);
|
||||
});
|
||||
console.log(2222, add_new_cs.area[0][0]);
|
||||
console.log(2222, add_new_cs.area[0]);
|
||||
|
||||
dialogVisible2.value = true;
|
||||
};
|
||||
|
@ -1536,12 +1584,21 @@ const addNew = async () => {
|
|||
name: cfJd.value,
|
||||
data: {},
|
||||
};
|
||||
// let sj = {
|
||||
// name: "湖镇镇",
|
||||
// data: {},
|
||||
// };
|
||||
data1.id = `${cfJd.value}_${add_new_cs.name}`;
|
||||
// data1.id = `湖镇镇_${add_new_cs.name}`;
|
||||
data1.geometry.coordinates = [...add_new_cs.area];
|
||||
data1.properties.name = add_new_cs.name;
|
||||
data1.properties.center = add_new_cs.center;
|
||||
sj.data = JSON.stringify(data1);
|
||||
await http.post(`/api/ggfwyth/regionalDivision/add`, sj).then((res) => {
|
||||
console.log(sj);
|
||||
|
||||
await http
|
||||
.post(`/api/ggfwyth/regionalDivision/addVillage`, sj)
|
||||
.then((res) => {
|
||||
if (res.code == 200) {
|
||||
ElMessage.success({
|
||||
message: "添加成功",
|
||||
|
@ -1569,8 +1626,9 @@ const deleteCs = async () => {
|
|||
.then(() => {
|
||||
loadingss.value = true;
|
||||
http
|
||||
|
||||
.post(`/api/ggfwyth/regionalDivision/del?id=${changeCsqkId.value}`)
|
||||
.post(
|
||||
`/api/ggfwyth/regionalDivision/delVillage?id=${changeCsqkId.value}`
|
||||
)
|
||||
.then((res) => {
|
||||
if (res.code == 200) {
|
||||
ElMessage.success({
|
||||
|
@ -2491,25 +2549,25 @@ const changeys = (name) => {
|
|||
let url;
|
||||
let img;
|
||||
let img_map;
|
||||
let tooltip
|
||||
let tooltip;
|
||||
yaosuTotal.value.forEach((item, index) => {
|
||||
if (item.name == name) {
|
||||
url = item.url;
|
||||
img = item.img;
|
||||
img_map = item.img_map;
|
||||
tooltip=item.tooltip;
|
||||
tooltip = item.tooltip;
|
||||
}
|
||||
});
|
||||
if (name == "摄像头" || name == "AED") {
|
||||
getZyys(url, name, img, img_map,tooltip);
|
||||
getZyys(url, name, img, img_map, tooltip);
|
||||
}
|
||||
if (name == "养老机构") {
|
||||
getZyys2(name, img, img_map,tooltip);
|
||||
getZyys2(name, img, img_map, tooltip);
|
||||
}
|
||||
}
|
||||
};
|
||||
//线上接口资源要素
|
||||
const getZyys = (url, name, img, img_map,tooltip) => {
|
||||
const getZyys = (url, name, img, img_map, tooltip) => {
|
||||
http.get(url).then((res) => {
|
||||
if (res.code == 200) {
|
||||
yaosuIcon.value[name].sj = res.data;
|
||||
|
@ -2537,13 +2595,13 @@ const getZyys = (url, name, img, img_map,tooltip) => {
|
|||
// };
|
||||
});
|
||||
yaosuIcon.value[name].sj.forEach((itemm, indexx) => {
|
||||
createZyys(itemm, indexx, name,tooltip);
|
||||
createZyys(itemm, indexx, name, tooltip);
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
//本地存储资源要素
|
||||
const getZyys2 = (name, img, img_map,tooltip) => {
|
||||
const getZyys2 = (name, img, img_map, tooltip) => {
|
||||
if (name == "养老机构") {
|
||||
yaosuIcon.value[name].sj = ylCount;
|
||||
yaosuIcon.value[name].sj.forEach((item, index) => {
|
||||
|
@ -2552,13 +2610,13 @@ const getZyys2 = (name, img, img_map,tooltip) => {
|
|||
item.overlay = null;
|
||||
});
|
||||
yaosuIcon.value[name].sj.forEach((itemm, indexx) => {
|
||||
createZyys(itemm, indexx, name,tooltip);
|
||||
createZyys(itemm, indexx, name, tooltip);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// 添加资源要素的图标(overlay存放标记点)
|
||||
const createZyys = (polygon, indexx, name,tooltip) => {
|
||||
const createZyys = (polygon, indexx, name, tooltip) => {
|
||||
function createLabelDOM() {
|
||||
var content = document.createElement("div");
|
||||
content.style.display = "flex";
|
||||
|
@ -3055,7 +3113,7 @@ const drawACircle = (maxDistance) => {
|
|||
strokeOpacity: 0.8,
|
||||
fillOpacity: 0.1,
|
||||
strokeStyle: "dashed",
|
||||
zIndex: 99,
|
||||
zIndex: 10,
|
||||
// fillColor: "yellow",
|
||||
});
|
||||
map.addOverlay(circle);
|
||||
|
@ -3174,7 +3232,9 @@ const updateFwqList = (data, townName, communityName) => {
|
|||
//-------乡镇街道级别---------
|
||||
//加载乡镇信息
|
||||
const loadTown = () => {
|
||||
for (let v of mapTown.features) {
|
||||
console.log();
|
||||
|
||||
for (let v of mapTown[0].features) {
|
||||
if (v.geometry.coordinates.length > 1) {
|
||||
for (let w in v.geometry.coordinates) {
|
||||
if (v.geometry.coordinates[w][0].length < 60) continue;
|
||||
|
@ -3188,6 +3248,11 @@ const loadTown = () => {
|
|||
name: v.properties.name,
|
||||
point: v.geometry.coordinates[0],
|
||||
});
|
||||
mapTownCount.forEach((item) => {
|
||||
if (v.properties.name == item.name) {
|
||||
item.center = [...v.properties.center];
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -3212,24 +3277,31 @@ const addPolygonCounty = () => {
|
|||
// item.leg = 0;
|
||||
//地区的坐标范围
|
||||
let points = [];
|
||||
item.point.map((p) => points.push(new BMapGL.Point(...p)));
|
||||
// item.point[0].forEach((itemm, indexx) => {
|
||||
// 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) =>
|
||||
offsetPoint(point, offsetX, offsetY)
|
||||
);
|
||||
if (points.length) {
|
||||
//创建面
|
||||
let polygon = new BMapGL.Polygon(offsetPoints, {
|
||||
let polygon = new BMapGL.Polygon(points, {
|
||||
strokeColor: "#5E9AD2",
|
||||
strokeWeight: 2,
|
||||
strokeOpacity: 0.8,
|
||||
fillColor: fillColor,
|
||||
fillOpacity: 0.7,
|
||||
name: item.name,
|
||||
zIndex: 92,
|
||||
});
|
||||
|
||||
map.addOverlay(polygon);
|
||||
|
||||
polygon.addEventListener("click", async () => {
|
||||
// if (cfJd.value == "湖镇镇" && item.name=='模环乡') {
|
||||
// return;
|
||||
// }
|
||||
if (showEdit.value) {
|
||||
return;
|
||||
}
|
||||
|
@ -3327,8 +3399,7 @@ const createCustomOverlayJd = (polygon, indexx) => {
|
|||
jdm_arr.value[indexx] = new BMapGL.CustomOverlay(createLabelDOM, {
|
||||
point: new BMapGL.Point(...polygon.center),
|
||||
opacity: 0.5,
|
||||
offsetX: 10,
|
||||
offsetY: -15,
|
||||
offsetY: -10,
|
||||
properties: {
|
||||
title: polygon.name,
|
||||
type: "customOverlay",
|
||||
|
@ -3400,8 +3471,7 @@ const createCustomOverlayJd2 = (polygon, indexx) => {
|
|||
jdm_number_arr.value[indexx] = new BMapGL.CustomOverlay(createLabelDOM, {
|
||||
point: new BMapGL.Point(...polygon.center),
|
||||
opacity: 0.5,
|
||||
offsetX: 10,
|
||||
offsetY: -15,
|
||||
offsetY: -10,
|
||||
properties: {
|
||||
title: polygon.name,
|
||||
number: polygon[`${num}`],
|
||||
|
@ -3477,15 +3547,18 @@ const addPolygonCountyCs = () => {
|
|||
fillColor: fillColor,
|
||||
fillOpacity: 0.3,
|
||||
name: item.name,
|
||||
zIndex: 99,
|
||||
zIndex: 2,
|
||||
});
|
||||
map.addOverlay(cs_qk_arr.value[index]);
|
||||
cs_qk_arr.value[index].addEventListener("click", async () => {
|
||||
console.log("cunshee");
|
||||
|
||||
if (drawing.value) {
|
||||
return;
|
||||
}
|
||||
loadingss.value = true;
|
||||
cs_dd_arr.value = [];
|
||||
xuanzhongCs.value=[];
|
||||
cfCs.value = item.name;
|
||||
title_cs.value = item.name;
|
||||
sfdd.value = true;
|
||||
|
@ -3532,7 +3605,6 @@ const addPolygonCountyCs = () => {
|
|||
//添加选中社区
|
||||
const addCsChoose = () => {
|
||||
chooseCsList.value.map((item, index) => {
|
||||
sqname.value = item.name;
|
||||
let fillColor = "blue";
|
||||
//地区的坐标范围
|
||||
let points = [];
|
||||
|
@ -3549,7 +3621,7 @@ const addCsChoose = () => {
|
|||
fillColor: fillColor,
|
||||
fillOpacity: 0.3,
|
||||
name: item.name,
|
||||
zIndex: 99,
|
||||
zIndex: 5,
|
||||
});
|
||||
map.addOverlay(cs_choose_arr.value[index]);
|
||||
}
|
||||
|
@ -3574,7 +3646,7 @@ const addCsUnChoose = () => {
|
|||
fillColor: fillColor,
|
||||
fillOpacity: 0.3,
|
||||
name: item.name,
|
||||
zIndex: 99,
|
||||
zIndex: 5,
|
||||
});
|
||||
map.addOverlay(cs_un_choose_arr.value[index]);
|
||||
cs_un_choose_arr.value[index].addEventListener("click", async () => {
|
||||
|
@ -3633,7 +3705,7 @@ const addCs = () => {
|
|||
xkzCenter.map((item, index) => {
|
||||
// item.center[0] = item.center[0] + 0.01;
|
||||
// item.center[1] = item.center[1] + 0.00328;
|
||||
console.log(item.center);
|
||||
// console.log(item.center);
|
||||
createCs(item, index);
|
||||
});
|
||||
};
|
||||
|
@ -3939,9 +4011,10 @@ const reset_font2 = () => {
|
|||
"scale(" + width / 1920 + "," + height / 1080 + ")";
|
||||
};
|
||||
onMounted(async () => {
|
||||
// tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
|
||||
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
|
||||
loadingss.value = true;
|
||||
reset_font();
|
||||
await getXzsj();
|
||||
initMap();
|
||||
getData();
|
||||
BMAP();
|
||||
|
|
Loading…
Reference in New Issue