From 911e7a546aa3a6c1cc0e8557e3d496022103b6c5 Mon Sep 17 00:00:00 2001 From: dongsk Date: Tue, 14 May 2024 16:27:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=BA=E5=90=88=E6=8A=A5=E5=8F=8AQRcode=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../layout/layout.component.html | 8 ++--- .../implementation/layout/layout.component.ts | 28 ++++++++++++++---- .../src/app/implementation/layout/system.ts | 2 +- .../src/assets/i18n/zh_CN/basic.json | 3 +- .../src/assets/summit/QRcode.png | Bin 0 -> 6379 bytes 5 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 digital-future-summit/src/assets/summit/QRcode.png diff --git a/digital-future-summit/src/app/implementation/layout/layout.component.html b/digital-future-summit/src/app/implementation/layout/layout.component.html index 0ff3bea..acf7145 100644 --- a/digital-future-summit/src/app/implementation/layout/layout.component.html +++ b/digital-future-summit/src/app/implementation/layout/layout.component.html @@ -103,8 +103,8 @@ -->
精益数字化管理
@@ -141,8 +141,8 @@ -
- +
+
diff --git a/digital-future-summit/src/app/implementation/layout/layout.component.ts b/digital-future-summit/src/app/implementation/layout/layout.component.ts index 9cce669..3cd1d45 100644 --- a/digital-future-summit/src/app/implementation/layout/layout.component.ts +++ b/digital-future-summit/src/app/implementation/layout/layout.component.ts @@ -14,6 +14,7 @@ import { import { CommonService } from "../service/common.service"; import { NzMessageService } from "ng-zorro-antd/message"; import { NzModalService } from "ng-zorro-antd/modal"; +import { he } from "date-fns/locale"; @Component({ @@ -68,6 +69,11 @@ export class LayoutComponent implements OnInit { widthPercent: "", }; + QRcodeStyle = { + height: 450, + width: 450 + } + constructor( private commonService: CommonService, private el: ElementRef, @@ -162,7 +168,7 @@ export class LayoutComponent implements OnInit { // this.renderer.setStyle(sysEL, 'left', item.left); // this.renderer.setStyle(sysEL, 'width', item.width); // this.renderer.setStyle(sysEL, 'height', item.height); - if (sysEL != null) { + if (sysEL != null && item.sysId !== 'QRcode') { this.renderer.setStyle(sysEL, "top", item.topPercent); this.renderer.setStyle(sysEL, "left", item.leftPercent); this.renderer.setStyle(sysEL, "width", item.widthPercent); @@ -183,6 +189,11 @@ export class LayoutComponent implements OnInit { } } + + if (item.sysId === 'QRcode') { + this.QRcodeStyle.height = Number(item.height.replace("px", "")); + this.QRcodeStyle.width = Number(item.width.replace("px", "")); + } }); } }); @@ -191,6 +202,13 @@ export class LayoutComponent implements OnInit { jumpToSystem(key: string) { const DwUserInfo = JSON.parse(sessionStorage.getItem("DwUserInfo")); + if (key === 'download') { + this.isDownloadVisible = true; + const sysEL = this.el.nativeElement.querySelector("#imgQRcode"); + console.log(this.QRcodeStyle); + return; + } + if ( DwUserInfo.userId === "dongsk@digiwin.com" || DwUserInfo.userId === "M00020" @@ -198,10 +216,6 @@ export class LayoutComponent implements OnInit { return; } - if (key === 'download') { - this.isDownloadVisible = true; - return; - } if (this.exclusionSys.includes(key)) { this.message.error(`${key} 未集成`); @@ -287,6 +301,10 @@ export class LayoutComponent implements OnInit { this.divContent.sysId = data.id; } + if (data.id === 'QRcode') { + return; + } + if (data.type !== "mouseup") { return; } diff --git a/digital-future-summit/src/app/implementation/layout/system.ts b/digital-future-summit/src/app/implementation/layout/system.ts index aa390d8..5f57103 100644 --- a/digital-future-summit/src/app/implementation/layout/system.ts +++ b/digital-future-summit/src/app/implementation/layout/system.ts @@ -120,7 +120,7 @@ export const systemList = { sid: 484411116737088, id: 'SCST100Athena', name: 'scs华为云发版测试', - url: "https://athena.digiwincloud.com.cn", + url: "https://athena.digiwincloud.com.cn/sso-login?routerLink=/report-template", mockLogin: false, ssoLogin: false, } diff --git a/digital-future-summit/src/assets/i18n/zh_CN/basic.json b/digital-future-summit/src/assets/i18n/zh_CN/basic.json index d13376c..7486666 100755 --- a/digital-future-summit/src/assets/i18n/zh_CN/basic.json +++ b/digital-future-summit/src/assets/i18n/zh_CN/basic.json @@ -1,5 +1,6 @@ { "prog": { "lagrge-home": "大屏首页" - } + }, + "app-title": "数智未来峰会" } \ No newline at end of file diff --git a/digital-future-summit/src/assets/summit/QRcode.png b/digital-future-summit/src/assets/summit/QRcode.png new file mode 100644 index 0000000000000000000000000000000000000000..ef56bc761ba02c8ec4b352df6b62915012210abe GIT binary patch literal 6379 zcmd5>dq9#`8%JlQwUueP)vLrqc&Suq ziI`VR1Ir6Iayhc3Ff6a6nGVS-ctgqW(B`(bzWx3E;UAv!zUQ3xd7j_pJS6PKI)5>L z`Fscj@&(#u=UxazOQ8AFoeM^ymI-%3Aj?Y8J9l`T&+Kn&Z))@`owK|53T4KtXTNe{ zxxvchFd>;B$xL@@p4scI#pd&(r^foVAg*euObb$jo)3i-Ambo~EPd^gn<(9ykpH)V zF-GHO=j#Gu)TBt=a@AOWs|*U+WzRmX9xdwpHP_@$On%GlnBrDGr?S7I;K`eB)YxN# z(w3~^K(uU}?^M1j-}!kagVR|ir#{NuoYY6jz30{JWWB1lEnolK{?}#_>&dcht>@Ya zJ;OINbHmbeFNp)h`GMu})fczK8n+cxH{IF=eRuCxc$rc1QwNn_I_KyfU9Hy}hT}`> zt$)BplH4hy?E94IGU7|WU}J_X97U#kZIhRn4#y`i7o9xH@Jrv^!;J74x65&eOqf{} zcq!Bn5f{3musdROzeNpIqYxMTDB>R;ZsT3LeT!XLGz-W##Q z_YCJN!`vzUiE2B+i*HA>7ar>7|8;Vq=)%H7)A%(D0&~BRZ*D63>l{`Ti#-(m^L^B- zux#6_U!4!ABlF)}k2&H2eOI+3t8QUcvBE(b@lJHbEDkc1ZxMe=V4b3O=K4|JgKnb} z#WyXJ)?vp30tG91SCDb1a)}8Rxl~WqlZ*aNGgtM^{Gww$1HuU^&4Y_nyLDrR2Das$ zd#J_eiXb>c&8OX;d)c)wdX-X3Q$}R=jlY=4C!w$8^+XUt)zZZs!w*}SCURZ~rVFjI z$BvRiq9hftM;?l*in>13c{BJL$v<8sF*xx0++QShR7jDvLTq<(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