+
预警信息
@@ -118,6 +118,9 @@
预警时间
+
+ 状态
+
操作
@@ -140,10 +143,10 @@
Ⅲ级
Ⅳ级
-
+
{{item.violation.violationType}}
-
+
{{item.violation.violationName}}
@@ -152,6 +155,10 @@
{{item.violateTime | date:"yyyy-MM-dd HH:mm:ss"}}
+
+ 已处置
+ 未处置
+
查看
diff --git a/src/app/pages/criminal-records/criminal-records.component.ts b/src/app/pages/criminal-records/criminal-records.component.ts
index b9c18f2..e3c2425 100644
--- a/src/app/pages/criminal-records/criminal-records.component.ts
+++ b/src/app/pages/criminal-records/criminal-records.component.ts
@@ -143,7 +143,7 @@ export class CriminalRecordsComponent implements OnInit {
left: '42px',
right: '30px',
bottom: '38px',
- top: '60px'
+ top: '80px'
}
};
baroption2 = {
diff --git a/src/app/pages/disposition/disposition.component.html b/src/app/pages/disposition/disposition.component.html
new file mode 100644
index 0000000..152f821
--- /dev/null
+++ b/src/app/pages/disposition/disposition.component.html
@@ -0,0 +1,21 @@
+
\ No newline at end of file
diff --git a/src/app/pages/disposition/disposition.component.scss b/src/app/pages/disposition/disposition.component.scss
new file mode 100644
index 0000000..b616fdb
--- /dev/null
+++ b/src/app/pages/disposition/disposition.component.scss
@@ -0,0 +1,85 @@
+.box {
+ .title {
+ font-family: sybold;
+ width: 100%;
+ height: 48px;
+ background: linear-gradient(270deg, rgba(35, 153, 255, 0) 0%, rgba(35, 153, 255, 0.57) 50%, rgba(35, 153, 255, 0) 100%);
+ display: flex;
+ align-items: center;
+ position: relative;
+
+ .titlecontent {
+ width: 100%;
+ height: 32px;
+ line-height: 32px;
+ background: linear-gradient(270deg, rgba(35, 153, 255, 0) 0%, rgba(35, 153, 255, 0.57) 50%, rgba(35, 153, 255, 0) 100%);
+ text-align: center;
+ color: #91CCFF;
+ font-size: 16px;
+ }
+
+ i {
+ position: absolute;
+ right: 12px;
+ color: #fff;
+ font-size: 18px;
+ cursor: pointer;
+ }
+ }
+
+ .form {
+ box-sizing: border-box;
+ padding: 0 17px;
+
+ p {
+ margin-bottom: 0;
+ color: #C4E2FC;
+ margin: 16px 0;
+ }
+
+ nz-form-item {
+ margin-bottom: 0;
+
+ textarea {
+ color: rgba(145, 204, 255, 0.95) !important;
+ width: 100%;
+ height: 300px;
+ background: #173d60;
+ }
+ }
+
+ nz-date-picker {
+ background-color: #143c61;
+ width: 100%;
+ }
+
+ .btnbox {
+ width: 100%;
+ margin-top: 24px;
+ margin-bottom: 17px;
+ display: flex;
+ justify-content: flex-end;
+
+ button {
+ border-radius: 0px;
+ color: #91CCFF;
+ }
+
+ button:nth-child(2) {
+ margin-left: 16px;
+ }
+
+ .ok {
+ background: rgba(0, 129, 255, 0.4);
+ }
+
+ .cancel {
+ border: 1px solid #C4E2FC;
+ background: #0c1e38;
+ color: rgba(99, 102, 105, 0.6);
+ box-shadow: 0 0 3px 0 #fff inset;
+ }
+ }
+ }
+
+}
diff --git a/src/app/pages/disposition/disposition.component.ts b/src/app/pages/disposition/disposition.component.ts
new file mode 100644
index 0000000..93ec6b3
--- /dev/null
+++ b/src/app/pages/disposition/disposition.component.ts
@@ -0,0 +1,33 @@
+import { Component, OnInit } from '@angular/core';
+import { NzModalRef } from 'ng-zorro-antd/modal';
+import { FormBuilder, FormGroup, Validators } from '@angular/forms';
+@Component({
+ selector: 'app-disposition',
+ templateUrl: './disposition.component.html',
+ styleUrls: ['./disposition.component.scss']
+})
+export class DispositionComponent implements OnInit {
+ validateForm!: FormGroup;
+ constructor(private modal: NzModalRef, private fb: FormBuilder) { }
+
+
+ peopleName:string
+
+ ngOnInit(): void {
+ if(sessionStorage.getItem('isGasStation') == 'true'){
+ this.peopleName = JSON.parse(sessionStorage.getItem('userdataOfgasstation')).name
+ }else{
+ this.peopleName = JSON.parse(sessionStorage.getItem('userdata')).name
+ }
+
+ this.validateForm = this.fb.group({
+ content: [null, [Validators.required]]
+ });
+ }
+ destroyModal(){
+ this.modal.destroy();
+ }
+ ok(){
+ this.modal.triggerOk()
+ }
+}
diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html
index 46dc0cf..47eef40 100644
--- a/src/app/pages/home/home.component.html
+++ b/src/app/pages/home/home.component.html
@@ -59,4 +59,24 @@
-
\ No newline at end of file
+
+
+
+
+
+

+
+
+ 您有一条新的预警提醒!
+ {{item.id}}
+
+
+
+
\ No newline at end of file
diff --git a/src/app/pages/home/home.component.ts b/src/app/pages/home/home.component.ts
index a08734d..5d71b06 100644
--- a/src/app/pages/home/home.component.ts
+++ b/src/app/pages/home/home.component.ts
@@ -1,14 +1,14 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, OnInit, ViewChild, TemplateRef } from '@angular/core';
import { Router, NavigationEnd, ActivatedRoute } from '@angular/router';
import { Title } from '@angular/platform-browser'
import { filter } from 'rxjs/operators';
-import { NavChangeService } from 'src/app/service/navChange.service';
+import { NavChangeService } from '../../service/navChange.service';
import { CacheTokenService } from '../../service/cache-token.service' //引入服务
import { CookieService } from 'ngx-cookie-service';
import { NzMessageService } from 'ng-zorro-antd/message';
import { SignalRAspNetCoreHelper } from '../../../shared/helpers/SignalRAspNetCoreHelper';
-
-
+import { NzNotificationService } from 'ng-zorro-antd/notification';
+declare var abp: any
@Component({
selector: 'app-home',
@@ -16,9 +16,10 @@ import { SignalRAspNetCoreHelper } from '../../../shared/helpers/SignalRAspNetCo
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
-
+ @ViewChild('warning', { static: false }) template?: TemplateRef<{}>;
constructor(private router: Router, private navChangeService: NavChangeService, public token: CacheTokenService,
- private cookieService: CookieService, private message: NzMessageService) { }
+ private cookieService: CookieService, private message: NzMessageService, private notificationService: NzNotificationService) { }
+
isGasStationNav: boolean
isGasStation: boolean
isGasStationBack: boolean
@@ -78,13 +79,39 @@ export class HomeComponent implements OnInit {
this.userName = JSON.parse(sessionStorage.getItem('userdata')).userName
}
+
+
+ }
+ ngAfterViewInit() {
SignalRAspNetCoreHelper.initSignalR();
- abp.event.on('abp.notifications.received', function (userNotification) {
- console.log('abp.notifications.received成功收到了哈哈哈', userNotification);
+ abp.event.on('abp.notifications.received', (userNotification) => {
+ console.log('abp.notifications.received收到通知', userNotification);
+ this.receiptOfNotification(userNotification)
});
+ }
+ messageId=[]
+ receiptOfNotification(userNotification) {
+ let obj = {
+ id:'xxx',
+ messageId:this.notificationService.template(this.template!, {nzPlacement: 'bottomRight', nzClass: 'receiptOfNotification', nzDuration: 0, nzData: userNotification}).messageId
+ }
+ this.messageId.push(obj)
+ console.log(99999,this.messageId)
+ }
+
+ close(item){
+ this.messageId.forEach((element)=>{
+ if(element.id == 'xxx'){
+ this.notificationService.remove(element.messageId)
+ }
+ })
}
+
+ ngOnDestroy() {
+ abp.signalr.disconnect()
+ }
//获得时间
time: string
diff --git a/src/app/pages/login/login.component.html b/src/app/pages/login/login.component.html
index ce7ecf1..5fc7bb9 100644
--- a/src/app/pages/login/login.component.html
+++ b/src/app/pages/login/login.component.html
@@ -61,18 +61,3 @@
-
-
-
-

-
-
- 您有一条新的预警提醒!
- 这是详细描述这是详细描述这是详细描述...
-
-
-
-
-
-
-
diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts
index 1fc96cf..7a6b72d 100644
--- a/src/app/pages/login/login.component.ts
+++ b/src/app/pages/login/login.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit, AfterViewInit, ViewChild, TemplateRef } from '@angular/core';
+import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http'
import { Router, ActivatedRoute } from '@angular/router'
import { CacheTokenService } from '../../service/cache-token.service'//引入服务
@@ -18,7 +18,6 @@ declare var abp: any
export class LoginComponent implements OnInit {
validateForm!: FormGroup;
- @ViewChild(TemplateRef, { static: false }) template?: TemplateRef<{}>;
constructor(private http: HttpClient, private router: Router, private route: ActivatedRoute, public token: CacheTokenService, private cookieService: CookieService, private fb: FormBuilder, private message: NzMessageService, private notificationService: NzNotificationService) { }
ngOnInit() {
@@ -149,10 +148,6 @@ export class LoginComponent implements OnInit {
)
}
- receiptOfNotification() {
- this.notificationService.template(this.template!, { nzPlacement: 'bottomRight', nzClass: 'receiptOfNotification', nzDuration: 0 });
- }
-
roleList = [
'管理员', '职工'
]
diff --git a/src/app/pages/pages.module.ts b/src/app/pages/pages.module.ts
index 3324872..26f5b77 100644
--- a/src/app/pages/pages.module.ts
+++ b/src/app/pages/pages.module.ts
@@ -48,11 +48,12 @@ import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';
import { PlanAdminComponent } from './plan-admin/plan-admin.component';
import { GetOutOfLineDetailsComponent } from './today-warning/get-out-of-line-details/get-out-of-line-details.component';
import { NzNotificationModule } from 'ng-zorro-antd/notification';
+import { DispositionComponent } from './disposition/disposition.component';
@NgModule({
declarations: [LoginComponent, RegisterComponent, HomeComponent, PlanComponent, TodayWarningComponent, CriminalRecordsComponent,
TodayWarningAdminComponent, CriminalRecordsAdminComponent, LeftDomainComponent, EquipmentInfoComponent, OilStationInfoComponent,
- AddequipmentComponent, EditequipmentComponent,PlanAdminComponent, GetOutOfLineDetailsComponent],
+ AddequipmentComponent, EditequipmentComponent,PlanAdminComponent, GetOutOfLineDetailsComponent, DispositionComponent],
imports: [
@@ -92,7 +93,7 @@ import { NzNotificationModule } from 'ng-zorro-antd/notification';
NzNotificationModule,
NzPopconfirmModule
],
- entryComponents: [AddequipmentComponent, EditequipmentComponent,GetOutOfLineDetailsComponent],
+ entryComponents: [AddequipmentComponent, EditequipmentComponent,GetOutOfLineDetailsComponent,DispositionComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
diff --git a/src/app/pages/plan-admin/plan-admin.component.html b/src/app/pages/plan-admin/plan-admin.component.html
index e30c6b0..97fec22 100644
--- a/src/app/pages/plan-admin/plan-admin.component.html
+++ b/src/app/pages/plan-admin/plan-admin.component.html
@@ -5,9 +5,9 @@