From 791271c7472c3063cc066a2133ee98746064d6b3 Mon Sep 17 00:00:00 2001 From: xiaoguangbin Date: Mon, 9 Dec 2024 10:58:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=A2=9E=E5=8A=A0=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E5=88=86=E6=9E=90=20help=E5=BC=B9=E7=AA=97=E6=89=93?= =?UTF-8?q?=E5=BC=80pdf=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/spectrumAnalysis/index.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/views/spectrumAnalysis/index.vue b/src/views/spectrumAnalysis/index.vue index 4bbc24a..aee4ee8 100644 --- a/src/views/spectrumAnalysis/index.vue +++ b/src/views/spectrumAnalysis/index.vue @@ -1109,6 +1109,22 @@ export default { // 查看软件操作帮助文档 handleHelp() { + let docPath = null + let apiBaseUrl = window._CONFIG['onlinePreviewDomainURL'] || "/jeecg-boot"; + if(this.isGamma) { + docPath = `/armd-help/Gamma.pdf`; + } else if (this.isBeta) { + docPath = `/armd-help/Self-Beta-Gamma.pdf`; + } else if(this.isBetaGamma) { + docPath = `/armd-help/Beta-Gamma.pdf`; + } + + if(!docPath) { + this.$message.warning('Please load an spectrum first!') + return ; + } + window.open(apiBaseUrl + docPath, '_blank'); + console.log('%c [ handleHelp ]-221', 'font-size:13px; background:pink; color:#bf2c9f;') },