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 @@ + +