From 66b967e097c6a3c62efbf424646d93f9708db5f4 Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Tue, 29 Oct 2024 17:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E9=80=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 5 + src/view/jt_details.vue | 420 ++++++++++++++++++++++++++++++++++++++++ src/view/sy_table.vue | 10 +- 3 files changed, 434 insertions(+), 1 deletion(-) create mode 100644 src/view/jt_details.vue diff --git a/src/router/index.js b/src/router/index.js index 71e8da3..2c6980e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -110,6 +110,11 @@ const router = createRouter({ path: "/home/index/table/details", component: () => import("../view/sy_details.vue"), }, + { + name: "首页表格交通便利详情", + path: "/home/index/table/jtDetails", + component: () => import("../view/jt_details.vue"), + }, { name: "人物图", path: "/home/index/person", diff --git a/src/view/jt_details.vue b/src/view/jt_details.vue new file mode 100644 index 0000000..10ba06c --- /dev/null +++ b/src/view/jt_details.vue @@ -0,0 +1,420 @@ + + + + + diff --git a/src/view/sy_table.vue b/src/view/sy_table.vue index 9a597b9..eecb625 100644 --- a/src/view/sy_table.vue +++ b/src/view/sy_table.vue @@ -212,10 +212,18 @@ const goto = (val) => { // query: { name: val.name, id: val.id }, // }); // } else { - router.push({ + if (val.name == "公共交通") { + router.push({ + path: "/home/index/table/jtDetails", + query: { name: val.name}, + }); + }else{ + router.push({ path: "/home/index/table/details", query: { name: val.name, id: val.id, xh: val.xh }, }); + } + // ElMessage.warning({ // message: `${val.name}暂无数据!`,