From 68d55e91a0d3efeb3494de277c799803b917ed64 Mon Sep 17 00:00:00 2001
From: guojuan <2715201989@qq.com>
Date: Fri, 30 Aug 2024 15:29:17 +0800
Subject: [PATCH] fix:提交数据大屏代码
---
frontend/front/src/components/layouts/HtSideBar/components/HtMenuItem.vue | 15 +++++++++++----
frontend/front/src/views/pages/dataLargeScreen/index.vue | 15 +++++++++++++++
2 files changed, 26 insertions(+), 4 deletions(-)
create mode 100644 frontend/front/src/views/pages/dataLargeScreen/index.vue
diff --git a/frontend/front/src/components/layouts/HtSideBar/components/HtMenuItem.vue b/frontend/front/src/components/layouts/HtSideBar/components/HtMenuItem.vue
index 165ce17..23ab7b3 100644
--- a/frontend/front/src/components/layouts/HtSideBar/components/HtMenuItem.vue
+++ b/frontend/front/src/components/layouts/HtSideBar/components/HtMenuItem.vue
@@ -78,9 +78,11 @@
return path.resolve(this.fullPath, routePath)
},
handleLink() {
- const routePath = this.routeChildren.path
- const target = this.routeChildren.meta.target
-
+ const routePath = this.routeChildren.path;
+ const target = this.routeChildren.meta.target;
+ console.log('打印是否触发这个routePath',isExternal(routePath));
+ console.log('打印是否触发这个fullPath',isExternal(this.fullPath));
+ console.log('打印是否触发这个target',target);
if (target === '_blank') {
if (isExternal(routePath)) {
window.open(routePath)
@@ -102,7 +104,12 @@
} else if (
this.$route.path !== path.resolve(this.fullPath, routePath)
) {
- this.$router.push(path.resolve(this.fullPath, routePath))
+ console.log('打印是否触发这个事件',this.$route.path,this.fullPath )
+ if(this.fullPath == '/dataLargeScreen'){
+ window.open('http://192.168.145.61:22582/yqyp-dp/#/chart/preview/1826433289372565505?id=1221', '_blank');
+ }else{
+ this.$router.push(path.resolve(this.fullPath, routePath))
+ }
}
}
},
diff --git a/frontend/front/src/views/pages/dataLargeScreen/index.vue b/frontend/front/src/views/pages/dataLargeScreen/index.vue
new file mode 100644
index 0000000..63fc4e3
--- /dev/null
+++ b/frontend/front/src/views/pages/dataLargeScreen/index.vue
@@ -0,0 +1,15 @@
+
+
+ 测试数据大屏
+
+
+
+
+
+
--
libgit2 0.21.2