Browse Source

初版:除MES未集成

master
董书康 6 months ago
parent
commit
e306ed12b3
23 changed files with 83 additions and 39 deletions
  1. +4
    -2
      digital-future-summit/src/app/implementation/implementation.module.ts
  2. +17
    -2
      digital-future-summit/src/app/implementation/layout/layout.component.html
  3. +20
    -8
      digital-future-summit/src/app/implementation/layout/layout.component.less
  4. +42
    -27
      digital-future-summit/src/app/implementation/layout/layout.component.ts
  5. BIN
      digital-future-summit/src/assets/summit/AASK.png
  6. BIN
      digital-future-summit/src/assets/summit/AIOT.png
  7. BIN
      digital-future-summit/src/assets/summit/BSC.png
  8. BIN
      digital-future-summit/src/assets/summit/DMP.png
  9. BIN
      digital-future-summit/src/assets/summit/E10-T100.png
  10. BIN
      digital-future-summit/src/assets/summit/EIP.png
  11. BIN
      digital-future-summit/src/assets/summit/KMO.png
  12. BIN
      digital-future-summit/src/assets/summit/SCS.png
  13. BIN
      digital-future-summit/src/assets/summit/SSO_PLM.png
  14. BIN
      digital-future-summit/src/assets/summit/SSO_mes.png
  15. BIN
      digital-future-summit/src/assets/summit/chatFile.png
  16. BIN
      digital-future-summit/src/assets/summit/data_assistant.png
  17. BIN
      digital-future-summit/src/assets/summit/dowload-code.png
  18. BIN
      digital-future-summit/src/assets/summit/download.png
  19. BIN
      digital-future-summit/src/assets/summit/equipmentCloud.png
  20. BIN
      digital-future-summit/src/assets/summit/iPaaS.png
  21. BIN
      digital-future-summit/src/assets/summit/main-bg.png
  22. BIN
      digital-future-summit/src/assets/summit/main.png
  23. BIN
      digital-future-summit/src/assets/summit/partsCloud.png

+ 4
- 2
digital-future-summit/src/app/implementation/implementation.module.ts View File

@ -26,7 +26,8 @@ import { DW_ORGTREE_MODAL_DEFAULT } from "@webdpt/framework/organize-tree-core";
import { LayoutComponent } from "./layout/layout.component"; import { LayoutComponent } from "./layout/layout.component";
// import { themeConfig } from '../config/theme.config'; // import { themeConfig } from '../config/theme.config';
import { DwMainLayoutModule } from "@webdpt/components/layout"; import { DwMainLayoutModule } from "@webdpt/components/layout";
import { NzPopconfirmComponent, NzPopconfirmModule } from "ng-zorro-antd/popconfirm";
import { NzPopconfirmModule } from "ng-zorro-antd/popconfirm";
import { NzModalModule } from "ng-zorro-antd/modal";
@NgModule({ @NgModule({
imports: [ imports: [
@ -34,7 +35,8 @@ import { NzPopconfirmComponent, NzPopconfirmModule } from "ng-zorro-antd/popconf
ImplementationRoutingModule, ImplementationRoutingModule,
SharedModule, // 共享模組 SharedModule, // 共享模組
DwMainLayoutModule, DwMainLayoutModule,
NzPopconfirmModule
NzPopconfirmModule,
NzModalModule
], ],
declarations: [LayoutComponent], declarations: [LayoutComponent],
providers: [], providers: [],


+ 17
- 2
digital-future-summit/src/app/implementation/layout/layout.component.html View File

@ -114,8 +114,9 @@
</div> --> </div> -->
<div id="E10-T100" appDraggable [dragEnable]="dragEnable" (dragEvent)="handleElementDrag($event)" class="box box-ET" <div id="E10-T100" appDraggable [dragEnable]="dragEnable" (dragEvent)="handleElementDrag($event)" class="box box-ET"
nz-popconfirm nzPopconfirmTitle="请您选择系统E10 OR T100 ?" (nzOnConfirm)="jumpToSystem('T100')"
(nzOnCancel)="jumpToSystem('SSO_E10229')" nzPopconfirmPlacement="bottom" nzOkText="T00 ERP" nzCancelText="E10 ERP" nzIcon="appstore">
nz-popconfirm nzPopconfirmTitle="请您选择系统 E10 OR T100 ?" (nzOnConfirm)="jumpToSystem('T100')"
(nzOnCancel)="jumpToSystem('SSO_E10229')" nzPopconfirmPlacement="top" nzOkText="T00 ERP" nzCancelText="E10 ERP"
nzIcon="appstore">
<span>精益数字化管理</span> <span>精益数字化管理</span>
</div> </div>
@ -123,6 +124,20 @@
(click)="jumpToSystem('SSO_PLM')"> (click)="jumpToSystem('SSO_PLM')">
<span>高效设计研发</span> <span>高效设计研发</span>
</div> </div>
<div id="download" appDraggable [dragEnable]="dragEnable" (dragEvent)="handleElementDrag($event)"
class="box box-download" (click)="jumpToSystem('download')">
<span>资料下载</span>
</div>
<nz-modal [(nzVisible)]="isDownloadVisible" nzTitle="扫描二维码下载资料" (nzOnCancel)="handleModelCancel()"
nzCentered="true" nzMask="true" nzMaskClosable="true" nzCancelText="关闭" nzOkDisabled="true" nzFooter="感谢您的关注">
<ng-container *nzModalContent>
<div style="text-align: center; width: 100%;">
<img src="../../../assets/summit/dowload-code.png" />
</div>
</ng-container>
</nz-modal>
</div> </div>
</div> </div>

+ 20
- 8
digital-future-summit/src/app/implementation/layout/layout.component.less View File

@ -1,7 +1,7 @@
.layout-body { .layout-body {
margin: 0; margin: 0;
padding: 0; padding: 0;
background: url("../../../assets/img/1122.png") center center no-repeat;
background: url("../../../assets/summit/main.png") center center no-repeat;
/* 设置背景图 */ /* 设置背景图 */
background-size: 100% 100%; background-size: 100% 100%;
/* 背景图等比例缩小填充整个容器 */ /* 背景图等比例缩小填充整个容器 */
@ -48,18 +48,23 @@
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
display: none; display: none;
// background-color: aqua;
// border: 1px solid #ddd; // border: 1px solid #ddd;
transition: transform 0.3s ease;
// transition: transform 0.3s ease;
/* 添加过渡效果 */ /* 添加过渡效果 */
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
// box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
/* 添加阴影效果 */ /* 添加阴影效果 */
border-radius: 10px;
// border-radius: 10px;
/* 添加圆角边,可以指定具体的像素值 */ /* 添加圆角边,可以指定具体的像素值 */
} }
.container .box:hover {
transform: scale(1.1);
/* 鼠标放上去时放大 1.1 倍 */
// .container .box:hover {
// transform: scale(1.1);
// /* 鼠标放上去时放大 1.1 倍 */
// }
.container .box>span {
display: none;
} }
.container .box-ET { .container .box-ET {
@ -165,4 +170,11 @@
top: 220px; top: 220px;
right: 0px; right: 0px;
width: 150px; width: 150px;
}
}
.container .box-download {
top: 270px;
right: 0px;
width: 150px;
}

+ 42
- 27
digital-future-summit/src/app/implementation/layout/layout.component.ts View File

@ -14,6 +14,8 @@ import {
} from "app/config/app-auth-token"; } from "app/config/app-auth-token";
import { CommonService } from "../service/common.service"; import { CommonService } from "../service/common.service";
import { NzMessageService } from "ng-zorro-antd/message"; import { NzMessageService } from "ng-zorro-antd/message";
import { tr } from "date-fns/locale";
import { NzModalService } from "ng-zorro-antd/modal";
@Component({ @Component({
@ -33,6 +35,8 @@ export class LayoutComponent implements OnInit, AfterViewInit {
isDragging: boolean = false; isDragging: boolean = false;
isDownloadVisible: boolean = false;
layoutUsers = [ layoutUsers = [
"digiwin0001", "digiwin0001",
"digiwin0002", "digiwin0002",
@ -67,7 +71,8 @@ export class LayoutComponent implements OnInit, AfterViewInit {
private commonService: CommonService, private commonService: CommonService,
private el: ElementRef, private el: ElementRef,
private renderer: Renderer2, private renderer: Renderer2,
private message: NzMessageService
private message: NzMessageService,
private modalService: NzModalService
) { } ) { }
ngOnInit(): void { ngOnInit(): void {
this.systemMaps = systemList; this.systemMaps = systemList;
@ -85,8 +90,7 @@ export class LayoutComponent implements OnInit, AfterViewInit {
const DwUserInfo = JSON.parse(sessionStorage.getItem("DwUserInfo")); const DwUserInfo = JSON.parse(sessionStorage.getItem("DwUserInfo"));
this.USER_TOKEN = DwUserInfo.token; this.USER_TOKEN = DwUserInfo.token;
this.USER_ID = DwUserInfo.userId; this.USER_ID = DwUserInfo.userId;
this.dragEnable =
this.USER_ID === "dongsk@digiwin.com" || this.USER_ID === "M00020";
this.dragEnable = this.USER_ID === "dongsk@digiwin.com" || this.USER_ID === "M00020";
console.log(this.dragEnable); console.log(this.dragEnable);
@ -99,28 +103,30 @@ export class LayoutComponent implements OnInit, AfterViewInit {
this.commonService this.commonService
.getRequestWithHeaders(url, headers) .getRequestWithHeaders(url, headers)
.then((res) => { .then((res) => {
this.queryDisplayList = res.response;
this.queryDisplayList.forEach((item) => {
this.systemMaps["SSO_" + item.id] = {
key: item.id,
id: item.id,
title: item.name,
mockLogin: false,
ssoLogin: true,
callBackUrl: item.callBackUrl,
url: item.cloudwebsite,
applicationAppId: item.applicationAppId,
};
// 非管理员加载
this.divContent.userId = this.USER_ID;
if (
this.USER_ID === "dongsk@digiwin.com" ||
this.USER_ID === "M00020"
) {
this.divContent.userId = "default";
}
});
if (res && res.response) {
this.queryDisplayList = res.response;
this.queryDisplayList.forEach((item) => {
this.systemMaps["SSO_" + item.id] = {
key: item.id,
id: item.id,
title: item.name,
mockLogin: false,
ssoLogin: true,
callBackUrl: item.callBackUrl,
url: item.cloudwebsite,
applicationAppId: item.applicationAppId,
};
// 非管理员加载
this.divContent.userId = this.USER_ID;
if (
this.USER_ID === "dongsk@digiwin.com" ||
this.USER_ID === "M00020"
) {
this.divContent.userId = "default";
}
});
}
// 初始化布局 // 初始化布局
this.initSysLayout(); this.initSysLayout();
@ -162,7 +168,7 @@ export class LayoutComponent implements OnInit, AfterViewInit {
this.renderer.setStyle(sysEL, "left", item.leftPercent); this.renderer.setStyle(sysEL, "left", item.leftPercent);
this.renderer.setStyle(sysEL, "width", item.widthPercent); this.renderer.setStyle(sysEL, "width", item.widthPercent);
this.renderer.setStyle(sysEL, "height", item.heightPercent); this.renderer.setStyle(sysEL, "height", item.heightPercent);
this.renderer.setStyle(sysEL, "background-color", 'wheat');
// this.renderer.setStyle(sysEL, "background-color", 'wheat');
this.renderer.setStyle(sysEL, "display", 'block'); this.renderer.setStyle(sysEL, "display", 'block');
} }
@ -181,6 +187,11 @@ export class LayoutComponent implements OnInit, AfterViewInit {
return; return;
} }
if (key === 'download') {
this.isDownloadVisible = true;
return;
}
if (this.systemMaps[key] == null) { if (this.systemMaps[key] == null) {
this.message.error(`${key} 未集成`); this.message.error(`${key} 未集成`);
return; return;
@ -356,7 +367,7 @@ export class LayoutComponent implements OnInit, AfterViewInit {
this.divContent, this.divContent,
{ {
"Digi-Middleware-Auth-App": DigiMiddlewareAuthApp, "Digi-Middleware-Auth-App": DigiMiddlewareAuthApp,
"Digi-Middleware-Auth-User": this.USER_TOKEN
"Digi-Middleware-Auth-User": this.USER_TOKEN,
} }
) )
.then((res) => { .then((res) => {
@ -366,4 +377,8 @@ export class LayoutComponent implements OnInit, AfterViewInit {
} }
}); });
} }
handleModelCancel() {
this.isDownloadVisible = false;
}
} }

BIN
digital-future-summit/src/assets/summit/AASK.png View File

Before After
Width: 209  |  Height: 215  |  Size: 13 KiB

BIN
digital-future-summit/src/assets/summit/AIOT.png View File

Before After
Width: 476  |  Height: 69  |  Size: 4.4 KiB

BIN
digital-future-summit/src/assets/summit/BSC.png View File

Before After
Width: 207  |  Height: 215  |  Size: 13 KiB

BIN
digital-future-summit/src/assets/summit/DMP.png View File

Before After
Width: 209  |  Height: 215  |  Size: 15 KiB

BIN
digital-future-summit/src/assets/summit/E10-T100.png View File

Before After
Width: 600  |  Height: 69  |  Size: 7.7 KiB

BIN
digital-future-summit/src/assets/summit/EIP.png View File

Before After
Width: 175  |  Height: 126  |  Size: 3.1 KiB

BIN
digital-future-summit/src/assets/summit/KMO.png View File

Before After
Width: 209  |  Height: 215  |  Size: 12 KiB

BIN
digital-future-summit/src/assets/summit/SCS.png View File

Before After
Width: 277  |  Height: 127  |  Size: 11 KiB

BIN
digital-future-summit/src/assets/summit/SSO_PLM.png View File

Before After
Width: 541  |  Height: 70  |  Size: 6.9 KiB

BIN
digital-future-summit/src/assets/summit/SSO_mes.png View File

Before After
Width: 532  |  Height: 70  |  Size: 5.7 KiB

BIN
digital-future-summit/src/assets/summit/chatFile.png View File

Before After
Width: 250  |  Height: 49  |  Size: 2.2 KiB

BIN
digital-future-summit/src/assets/summit/data_assistant.png View File

Before After
Width: 239  |  Height: 126  |  Size: 4.8 KiB

BIN
digital-future-summit/src/assets/summit/dowload-code.png View File

Before After
Width: 297  |  Height: 297  |  Size: 38 KiB

BIN
digital-future-summit/src/assets/summit/download.png View File

Before After
Width: 360  |  Height: 79  |  Size: 5.2 KiB

BIN
digital-future-summit/src/assets/summit/equipmentCloud.png View File

Before After
Width: 277  |  Height: 215  |  Size: 17 KiB

BIN
digital-future-summit/src/assets/summit/iPaaS.png View File

Before After
Width: 207  |  Height: 215  |  Size: 12 KiB

BIN
digital-future-summit/src/assets/summit/main-bg.png View File

Before After
Width: 4000  |  Height: 1938  |  Size: 1.9 MiB

BIN
digital-future-summit/src/assets/summit/main.png View File

Before After
Width: 4000  |  Height: 1938  |  Size: 2.0 MiB

BIN
digital-future-summit/src/assets/summit/partsCloud.png View File

Before After
Width: 280  |  Height: 215  |  Size: 19 KiB

Loading…
Cancel
Save