From 468f5dd9bb5ce68bb80b3f32c793c3b6fd7bc78c Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Mon, 22 Jul 2024 10:45:20 +0800 Subject: [PATCH] gx --- src/router/index.js | 10 ++++++++++ src/view/sy.vue | 14 ++++++++++++-- src/view/sy_map.vue | 10 ++++++++++ src/view/sy_table.vue | 10 ++++++++++ 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 src/view/sy_map.vue create mode 100644 src/view/sy_table.vue diff --git a/src/router/index.js b/src/router/index.js index 1a031c1..1efa05b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -50,6 +50,16 @@ const router = createRouter({ path: '/home/analyze', component: () => import('../view/analyze.vue'), }, + { + name: '首页地图', + path: '/home/index/map', + component: () => import('../view/sy_map.vue'), + }, + { + name: '首页表格', + path: '/home/index/table', + component: () => import('../view/sy_table.vue'), + }, ] }, ] diff --git a/src/view/sy.vue b/src/view/sy.vue index 5ac4a95..400419c 100644 --- a/src/view/sy.vue +++ b/src/view/sy.vue @@ -2,7 +2,7 @@
-
+
@@ -217,7 +217,7 @@
男性人口
-
+
{{ data.PopulationData.rkzs }}
人口总数
@@ -637,6 +637,15 @@ import qyfw1 from "../assets/images/sy/ljzcs.png"; import qyfw2 from "../assets/images/sy/rzbms.png"; import qyfw3 from "../assets/images/sy/shqys.png"; import qyfw4 from "../assets/images/sy/dxje.png"; +import { useRouter, useRoute } from "vue-router"; +const router = useRouter(); +const routers = useRoute(); +// 路由跳转 +const goto = (url) => { + router.push({ + path: `${url}`, + }); +} //控制echart的显示 const showEchart = ref(false); // 详情弹框 @@ -2061,6 +2070,7 @@ onBeforeMount(async () => { background-image: url(@/assets/images/sy/new_msfz.png); background-repeat: no-repeat; background-size: 100% 100%; + cursor: pointer; } .left_2 { diff --git a/src/view/sy_map.vue b/src/view/sy_map.vue new file mode 100644 index 0000000..25c942f --- /dev/null +++ b/src/view/sy_map.vue @@ -0,0 +1,10 @@ + + + + + diff --git a/src/view/sy_table.vue b/src/view/sy_table.vue new file mode 100644 index 0000000..03d8633 --- /dev/null +++ b/src/view/sy_table.vue @@ -0,0 +1,10 @@ + + + + +