Browse Source

[完善]decs修改为哦content1;修改首页展示字段

dev
邵佳豪 3 years ago
parent
commit
45869519c4
  1. 6
      src/app/pages/home-page/home-page.component.html
  2. 2
      src/app/pages/home-page/home-page.component.ts
  3. 2
      src/app/pages/home/home.component.ts
  4. 2
      src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts
  5. 5
      src/app/system-management/organization/organization.component.ts

6
src/app/pages/home-page/home-page.component.html

@ -82,7 +82,7 @@
<div class="box eventbox"> <div class="box eventbox">
<div class="eventboxitem" <div class="eventboxitem"
*ngFor="let item of HomeAggregatioData.violationNameAgg;let key = index"> *ngFor="let item of HomeAggregatioData.violationNameAgg;let key = index">
<div class="eventname" [title]="item.key"> <div class="eventname" [title]="item.eventSystemName">
<div class="block" [ngClass]="{'yellow': key < 3,'blue': key > 2}"> <div class="block" [ngClass]="{'yellow': key < 3,'blue': key > 2}">
<ng-container *ngIf="key != 9; else elseTemplate"> <ng-container *ngIf="key != 9; else elseTemplate">
{{'0' + (key + 1)}} {{'0' + (key + 1)}}
@ -91,7 +91,7 @@
{{key + 1}} {{key + 1}}
</ng-template> </ng-template>
</div> </div>
{{item.key}} {{item.eventSystemName}}
</div> </div>
<div class="progressbox"> <div class="progressbox">
<div class="progress"> <div class="progress">
@ -124,7 +124,7 @@
{{key + 1}} {{key + 1}}
</ng-template> </ng-template>
</div> </div>
{{item.companyName}} {{item.name}} {{item.companyName}} {{item.stationName}}
</div> </div>
<div class="progressbox"> <div class="progressbox">
<div class="progress"> <div class="progress">

2
src/app/pages/home-page/home-page.component.ts

@ -696,7 +696,7 @@ export class HomePageComponent implements OnInit {
look(item) { look(item) {
// console.log(item) // console.log(item)
if (item.notification.data.eventSystemName == '灭火器维护' || item.notification.data.eventSystemName == '证照预警') { if (item.notification.data.eventSystemName == '灭火器维护' || item.notification.data.eventSystemName == '证照预警') {
this.message.create('warning', item.notification.data.desc); this.message.create('warning', item.notification.data.content1);
} else { } else {
this.isOpenModel = true this.isOpenModel = true
let data = { let data = {

2
src/app/pages/home/home.component.ts

@ -114,7 +114,7 @@ export class HomeComponent implements OnInit {
}).subscribe((data: any) => { }).subscribe((data: any) => {
// console.log(data) // console.log(data)
if (item.notification.data.properties.EventSystemName == '灭火器维护' || item.notification.data.properties.EventSystemName == '证照预警') { if (item.notification.data.properties.EventSystemName == '灭火器维护' || item.notification.data.properties.EventSystemName == '证照预警') {
this.message.create('warning', data.result.desc); this.message.create('warning', data.result.content1);
} else { } else {
const modal = this.modal.create({ const modal = this.modal.create({
nzContent: GetOutOfLineDetailsComponent, nzContent: GetOutOfLineDetailsComponent,

2
src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts

@ -19,7 +19,7 @@ export class GetOutOfLineDetailsComponent implements OnInit {
details details
ngOnInit(): void { ngOnInit(): void {
console.log(this.data) console.log(this.data)
this.details = this.data.desc this.details = this.data.content1
this.imgUrl = this.data.violateImage this.imgUrl = this.data.violateImage
this.vedioUrl = this.data.violateVideo this.vedioUrl = this.data.violateVideo
this.content = this.data.handleRecord this.content = this.data.handleRecord

5
src/app/system-management/organization/organization.component.ts

@ -155,6 +155,9 @@ export class OrganizationComponent implements OnInit {
} }
deleteOr(item) { deleteOr(item) {
console.log(item) console.log(item)
if (item.origin.children && item.origin.children.length != 0) {
this.message.create('warning', '请先删除所有子节点');
} else {
this.modal.confirm({ this.modal.confirm({
nzTitle: `确定要删除${item.title}这个机构吗?`, nzTitle: `确定要删除${item.title}这个机构吗?`,
nzOkText: '确定', nzOkText: '确定',
@ -179,6 +182,8 @@ export class OrganizationComponent implements OnInit {
}); });
} }
}
nzEvent(event: NzFormatEmitEvent): void { nzEvent(event: NzFormatEmitEvent): void {
console.log('event', event) console.log('event', event)

Loading…
Cancel
Save