From 1e1d81e72a790f88ebdb95fd64bba10184e4d33e Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Sun, 14 Jul 2024 11:11:19 +0800 Subject: [PATCH] gx --- src/assets/images/map/m1.png | Bin 0 -> 5357 bytes src/assets/images/map/m2.png | Bin 0 -> 4433 bytes src/view/analyze.vue | 2 +- src/view/dialog/dialogMap.vue | 42 +----- src/view/dialog/dialogMap2.vue | 225 ++++++++++++++++++++++++++++ src/view/dialog/echarts/map.vue | 258 ++++++++++++++++++++++++++++++++ src/view/echart_analyze/map.vue | 46 ++++-- src/view/yl.vue | 13 +- 8 files changed, 533 insertions(+), 53 deletions(-) create mode 100644 src/assets/images/map/m1.png create mode 100644 src/assets/images/map/m2.png create mode 100644 src/view/dialog/dialogMap2.vue create mode 100644 src/view/dialog/echarts/map.vue diff --git a/src/assets/images/map/m1.png b/src/assets/images/map/m1.png new file mode 100644 index 0000000000000000000000000000000000000000..128800ed0b4bfa1b704c3c3cb412edf41df2e138 GIT binary patch literal 5357 zcmVPx}r%6OXRCr$1oePv*Wp&5@JClS*gajpksT86-O=;h)T(7 z5f`qC+6Ppn%c8AzEks0+LWm^-MZmz!1QKgW0eJ-iLZN^Nf*=G)$UC!pf9HPRopbL! z_ug~w+&eSbYn?U8%y-WD&j0LhfBSt*W0c%|iljXxy<5^GN$-%v?<`DtgQVBO@r zPj}x!()0l6`z1}4w1cE~h68{R1&reW;AXfuJujCuC<#%*@pjYjuwvx7zv{BM;CBb#b+Ser^1|Y!aMKJzdl6I5CiipnxxQyi* z>m(tYSBK**NiRscLDJ97Y-LN_lJlgF0_^TwA8@w}OCL}W1%R?+IFPk~4~S1mdIC9W zW-sP^hGdw#vk|f>BEOO69IO^(Fd(mz1ehzr!TnyAv{=%wI<-M|4B!AR&(0F(h#SQbE-xK8PIvelvidaJQL7Q8etibqwG*v%tv_WN&Kni+xM2PdE<| zGD)T>a!r(JyGYs8_C2W%|>g739RU;jrh>ePy~%-S%j$(e94;LMuTmz_p2Z z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;+3tj&!_Gg#sAR!3K6_G+}ky)kDoqb z(VyYTMt&uu6WzYRvhnnbWJ7UjHMrmTz*&t8bu@=K)w;jp80>c__EP4djWK zq60}f(QA%KGv=|0`;>z!_s_)2uS1vgGgED_?d-$#RKnX7) z!p0(p*rp=eHpK&yH0%14Jl*Q`?!^#H+~sIiQ)Vp~;im{-#aFn1P8@j2rziT5?cA?_ zbnlHRifBX_ceHZVTt1KCu%8V3(Cj0_erwmL7egB9;$9P}jCQLBp&B(LV}S^|Tv z?6Ol`)N%Lo1u5XhDLEYGL@Nrhng^0Wudx~!t#}kWtxLSSMHzEHPmlryjyT`B7qW~YM*D#3A)JaW(Q1yy-NwR3*cu>tHH+K8QI=Igmdh&D+PZsaetMv* zCppH^DE_mfj-@@5Er42L0;?~zW-J$#0%^(T`hGmYI1{Y|kVn4u0LiP}3j#R9(yo(^ zrv*TwWECE0+=L_*JEpdz_5#V@WiKdlmXZD{)t0%OtJDolbJ7G!zC?AzHDKp}bfaCMXr|uY0#dCJ-ly{%qCmm0n*uC}ODoYLI~_5y z{v5~(BcVy(A(?XeP921g9o(q&&N|_6o?RBu!1J(Zl X#Jf#Aca(4900000NkvXXu0mjfLo{%l literal 0 HcmV?d00001 diff --git a/src/view/analyze.vue b/src/view/analyze.vue index 29f47ea..4ffaa4c 100644 --- a/src/view/analyze.vue +++ b/src/view/analyze.vue @@ -50,7 +50,7 @@
-
+
diff --git a/src/view/dialog/dialogMap.vue b/src/view/dialog/dialogMap.vue index a2f924e..37f604b 100644 --- a/src/view/dialog/dialogMap.vue +++ b/src/view/dialog/dialogMap.vue @@ -45,7 +45,8 @@
- + +
@@ -63,7 +64,7 @@ import { } from "vue"; import { CircleCloseFilled } from "@element-plus/icons-vue"; import Map from "../echart_analyze/map.vue"; - +import Map2 from "./echarts/map.vue"; const props = defineProps({ dialogShowMap: { type: Boolean, @@ -77,24 +78,6 @@ const props = defineProps({ return ""; }, }, - list1: { - type: Array, - default: () => { - return []; - }, - }, - list2: { - type: Array, - default: () => { - return []; - }, - }, - year: { - type: Array, - default: () => { - return []; - }, - }, }); const emit = defineEmits(["close"]); @@ -117,29 +100,14 @@ watch( } ); watch( - () => props.list1, + () => props.title, (newVal, oldVal) => { - data.list1 = newVal; - } -); -watch( - () => props.list2, - (newVal, oldVal) => { - data.list2 = newVal; - } -); -watch( - () => props.year, - (newVal, oldVal) => { - data.year = newVal; + data.title = newVal; } ); // 使用生命钩子 onMounted(() => { data.title = props.title; - data.list1 = props.list1; - data.list2 = props.list2; - data.year = props.year; }); const closeDialog = () => { diff --git a/src/view/dialog/dialogMap2.vue b/src/view/dialog/dialogMap2.vue new file mode 100644 index 0000000..befb84e --- /dev/null +++ b/src/view/dialog/dialogMap2.vue @@ -0,0 +1,225 @@ + + + + \ No newline at end of file diff --git a/src/view/dialog/echarts/map.vue b/src/view/dialog/echarts/map.vue new file mode 100644 index 0000000..636fa62 --- /dev/null +++ b/src/view/dialog/echarts/map.vue @@ -0,0 +1,258 @@ + + + + + + diff --git a/src/view/echart_analyze/map.vue b/src/view/echart_analyze/map.vue index 7b5a579..737d627 100644 --- a/src/view/echart_analyze/map.vue +++ b/src/view/echart_analyze/map.vue @@ -9,27 +9,45 @@ import { onBeforeMount, onBeforeUnmount, computed, + defineProps, + watch, } from "vue"; -var map = null +const props = defineProps({ + center: { + type: Array, + default: () => { + return [119.178783, 29.034583]; + }, + }, +}); +var map = null; const initMap = () => { - map = new BMapGL.Map('map', { minZoom: 11, maxZoom: 20 }) - map.enableScrollWheelZoom(true) + map = new BMapGL.Map("map", { minZoom: 11, maxZoom: 20 }); + map.enableScrollWheelZoom(true); map.setMapStyleV2({ - styleId: 'd0acde891abd157741b71e12670ee2e6' - }) - goMapCenter([119.178783,29.034583], 15) -} + styleId: "d0acde891abd157741b71e12670ee2e6", + }); + goMapCenter(props.center, 15); +}; //地图中点 const goMapCenter = (point, zoom) => { - map.centerAndZoom(new BMapGL.Point(point[0], point[1]), zoom) -} + map.centerAndZoom(new BMapGL.Point(point[0], point[1]), zoom); +}; +watch( + () => props.center, + (newVal) => { + console.log(newVal); + goMapCenter(newVal, 15); + } +); onMounted(() => { - initMap() -}) + + initMap(); +}); \ No newline at end of file diff --git a/src/view/yl.vue b/src/view/yl.vue index 04cecfa..47bd4a5 100644 --- a/src/view/yl.vue +++ b/src/view/yl.vue @@ -219,7 +219,7 @@
{{ data.yljgzlzx.yljg }} @@ -313,6 +313,8 @@
晚餐
+ +
@@ -329,6 +331,7 @@ import ylJHSY from "./echarts_yl/ylJHSY.vue"; import ylSMFW from "./echarts_yl/ylSMFW.vue"; import ylXZZC from "./echarts_yl/ylXZZC.vue"; import Dialog from "./dialog/dialog.vue"; +import DialogMap from "./dialog/dialogMap.vue"; import { ref, onMounted, onBeforeMount, reactive, computed } from "vue"; import http from "@/utils/request.js"; const leftchoose = ref({ @@ -339,6 +342,8 @@ const leftchoose = ref({ const showEchart = ref(false); // 详情弹框 const dialogShow = ref(false); +const dialogShowMap = ref(false); +const mapTitle = ref(""); const tableType = reactive({ url: "", title: "", @@ -439,6 +444,11 @@ const showDialog = (title, url, coulumn) => { getTable(url, pagination.currentPage); }; +//养老机构地图 +const showMapDialog =(title)=>{ + mapTitle.value = title; + dialogShowMap.value = true; +} //获取表格数据 const getTable = (url, currentPage) => { http @@ -453,6 +463,7 @@ const getTable = (url, currentPage) => { }; const close = () => { dialogShow.value = false; + dialogShowMap.value = false; pagination.currentPage = 1; pagination.total = 100; };