From a00e2784e108f248b252f54370b5c3fac64e3c08 Mon Sep 17 00:00:00 2001 From: duanxiaohai <1812246227@qq.com> Date: Tue, 12 Nov 2024 17:11:17 +0800 Subject: [PATCH] gx --- src/components/header.vue | 21 +- src/router/index.js | 10 + src/utils/request.js | 2 +- src/view/hd_details.vue | 700 +++++++++++++++++++++++++++++++++++++ src/view/js_details.vue | 719 ++++++++++++++++++++++++++++++++++++++ src/view/sy_table.vue | 33 +- 6 files changed, 1464 insertions(+), 21 deletions(-) create mode 100644 src/view/hd_details.vue create mode 100644 src/view/js_details.vue diff --git a/src/components/header.vue b/src/components/header.vue index 8bdcfcf..55e305c 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -11,7 +11,12 @@

返回

@@ -109,15 +114,15 @@ const to = (url) => { }); if (url == "/home/index/map") { let menu = tools.data.get("menu"); - if(menu && menu.indexOf('ggfw:ystp') != -1){ + if (menu && menu.indexOf("ggfw:ystp") != -1) { data.nowTab = url; data.menushow = false; } - }else{ + } else { data.nowTab = url; data.menushow = false; } - + // data.nowTab = url; // data.menushow = false; }; @@ -198,19 +203,19 @@ const data = reactive({ ], nowTab: "/home/index", }); -const timeT=ref(null); +const timeT = ref(null); onMounted(() => { // 初始调用 updateClock 以立即显示时间 updateClock(); data.nowTab = router.currentRoute.value.fullPath; // 每隔一秒钟调用一次 updateClock 以更新时钟显示 - timeT.value=setInterval(updateClock, 1000); + timeT.value = setInterval(updateClock, 1000); }); onBeforeUnmount(() => { if (timeT.value) { clearInterval(timeT.value); - console.log('定时器已清除'); - } + console.log("定时器已清除"); + } }); + diff --git a/src/view/js_details.vue b/src/view/js_details.vue new file mode 100644 index 0000000..cd89e0a --- /dev/null +++ b/src/view/js_details.vue @@ -0,0 +1,719 @@ + + + + + + diff --git a/src/view/sy_table.vue b/src/view/sy_table.vue index a93c96c..53be267 100644 --- a/src/view/sy_table.vue +++ b/src/view/sy_table.vue @@ -214,21 +214,30 @@ const goto = (val) => { // } else { if (val.name == "公共交通") { router.push({ - path: "/home/index/table/jtDetails", - query: { name: val.name}, - }); - }else{ + path: "/home/index/table/jtDetails", + query: { name: val.name }, + }); + } else if (val.name == "全民健身服务") { router.push({ - path: "/home/index/table/details", - query: { name: val.name, id: val.id, xh: val.xh }, - }); + path: "/home/index/table/fitnessServices", + query: { name: val.name }, + }); + } else if (val.name == "校外活动服务") { + router.push({ + path: "/home/index/table/afterschoolActivities", + 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}暂无数据!`, - // offset: 100, // 距离窗口顶部的偏移量 - // }); + // ElMessage.warning({ + // message: `${val.name}暂无数据!`, + // offset: 100, // 距离窗口顶部的偏移量 + // }); // } };