From f34f3cfa27adf0c9ea30e59252d02ce7dd2eaec0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-AD8UBUJ\\ling" <1874467086@qq.com> Date: Wed, 13 May 2026 18:29:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=99=E6=80=81=E5=A4=A7=E5=B1=8F=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E5=92=8Clink=E8=B7=B3=E8=BD=AC=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../viewer/components/static.vue | 33 ++++++++++++++++--- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/src/views/bigscreenDesigner/viewer/components/static.vue b/src/views/bigscreenDesigner/viewer/components/static.vue index 8e3fbc1..c151252 100644 --- a/src/views/bigscreenDesigner/viewer/components/static.vue +++ b/src/views/bigscreenDesigner/viewer/components/static.vue @@ -6,10 +6,13 @@
-

驾驶仓总屏-销售分析-生产组态

- Energy consumption monitoring platform-visualization of carbon peak indicatorsm +

国瑞药业工业互联网

+
+
{{ currentTime }}
@@ -166,6 +169,7 @@ export default { charts: {}, powerData: [], peakData: {}, + linkList: {}, topStats: [ ] @@ -183,6 +187,7 @@ export default { this.getPowerData() this.getTopStatsData() this.getPeakData() + this.getlink() }, beforeDestroy() { window.removeEventListener('resize', this.handleResize) @@ -191,6 +196,16 @@ export default { }) }, methods: { + getlink(){ + const {widgets} = this.dashboard + if(widgets && widgets.length > 0){ + widgets.forEach(widget => { + if(['销售分析','生产组态'].includes(widget.value.setup.layerName)){ + this.linkList[widget.value.setup.layerName] = widget.value.setup.linkAdress + } + }) + } + }, async getPeakData(){ const params={"chartProperties":{"本年存货周期":"text"},"setCode":"zp_cxxt_zb","chartType":"widget-text","contextData":{"qyear":"2026","reportCode":"ddddd"}} const params2={"chartProperties":{"平均销售交付周期_天":"text"},"setCode":"ping_jun_xiao_tian","chartType":"widget-text","contextData":{"reportCode":"ddddd"}} @@ -1064,13 +1079,23 @@ export default { } .main-title { - font-size:24px; + font-size:32px; font-weight: bold; margin: 0; background-clip: text; } - +.link-section{ + position: absolute; + right: 200px; + top: 10px; + font-size: 14px; + font-weight: bold; + font-family: 'Courier New', monospace; + a{ + margin-left: 16px; + } +} .sub-title { font-size: 10px;