Browse Source

[修改]视频流监控的详情

develop
邵佳豪 3 years ago
parent
commit
16d686ed5c
  1. 4
      proxy.config.json
  2. 5
      src/app/system-management/system-management.module.ts
  3. 1
      src/app/system-management/video-streaming/details/details.component.html
  4. 0
      src/app/system-management/video-streaming/details/details.component.scss
  5. 15
      src/app/system-management/video-streaming/details/details.component.ts
  6. 8
      src/app/system-management/video-streaming/video-streaming.component.html
  7. 25
      src/app/system-management/video-streaming/video-streaming.component.ts

4
proxy.config.json

@ -1,11 +1,11 @@
{ {
"/api": { "/api": {
"target": "http://121.36.37.70:8080", "target": "http://10.156.134.54:8080",
"secure": false, "secure": false,
"changeOrigin": true "changeOrigin": true
}, },
"/signalr": { "/signalr": {
"target": "http://121.36.37.70:8080", "target": "http://10.156.134.54:8080",
"secure": false, "secure": false,
"ws": true, "ws": true,
"logLevel": "debug" "logLevel": "debug"

5
src/app/system-management/system-management.module.ts

@ -44,8 +44,9 @@ import { StatusMonitoringComponent } from './status-monitoring/status-monitoring
import { FileComponent } from './condition-monitoring/file/file.component'; import { FileComponent } from './condition-monitoring/file/file.component';
import { ScriptComponent } from './status-monitoring/script/script.component'; import { ScriptComponent } from './status-monitoring/script/script.component';
import { VideoStreamingComponent } from './video-streaming/video-streaming.component'; import { VideoStreamingComponent } from './video-streaming/video-streaming.component';
import { DetailsComponent } from './video-streaming/details/details.component';
@NgModule({ @NgModule({
declarations: [OrganizationComponent, NavigationComponent, AddorComponent, EditorComponent, AnalysisOfTheHostComponent, AddhostComponent, EdithostComponent, AddcameraComponent, EditcameraComponent, HostConfigComponent, ImageListComponent, ImageLabelComponent, PlottingImageComponent, cameraType, ImageLabel2Component, ConfigFormComponent, ConditionMonitoringComponent, SendFileComponent, ModelComponent, KafkaComponent, StatusMonitoringComponent, FileComponent, ScriptComponent, VideoStreamingComponent], declarations: [OrganizationComponent, NavigationComponent, AddorComponent, EditorComponent, AnalysisOfTheHostComponent, AddhostComponent, EdithostComponent, AddcameraComponent, EditcameraComponent, HostConfigComponent, ImageListComponent, ImageLabelComponent, PlottingImageComponent, cameraType, ImageLabel2Component, ConfigFormComponent, ConditionMonitoringComponent, SendFileComponent, ModelComponent, KafkaComponent, StatusMonitoringComponent, FileComponent, ScriptComponent, VideoStreamingComponent, DetailsComponent],
imports: [ imports: [
CommonModule, CommonModule,
SystemRoutingModule, SystemRoutingModule,
@ -70,7 +71,7 @@ import { VideoStreamingComponent } from './video-streaming/video-streaming.compo
NzTabsModule, NzTabsModule,
NzPopconfirmModule NzPopconfirmModule
], ],
entryComponents: [AddorComponent, EditorComponent, AddhostComponent, EdithostComponent, AddcameraComponent, EditcameraComponent, SendFileComponent, ModelComponent, FileComponent,ScriptComponent] entryComponents: [AddorComponent, EditorComponent, AddhostComponent, EdithostComponent, AddcameraComponent, EditcameraComponent, SendFileComponent, ModelComponent, FileComponent, ScriptComponent, DetailsComponent]
}) })
export class SystemManagementModule { } export class SystemManagementModule { }

1
src/app/system-management/video-streaming/details/details.component.html

@ -0,0 +1 @@
<p>{{data.detail}}</p>

0
src/app/system-management/video-streaming/details/details.component.scss

15
src/app/system-management/video-streaming/details/details.component.ts

@ -0,0 +1,15 @@
import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'app-details',
templateUrl: './details.component.html',
styleUrls: ['./details.component.scss']
})
export class DetailsComponent implements OnInit {
@Input() data?: any;
constructor() { }
ngOnInit(): void {
}
}

8
src/app/system-management/video-streaming/video-streaming.component.html

@ -93,13 +93,7 @@
</p> </p>
</td> </td>
<td> <td>
<span class="blue" (click)="showModal()">详情</span> <span class="blue" (click)="showModal(data)">详情</span>
<nz-modal [(nzVisible)]="isVisible" nzTitle="详情" (nzOnCancel)="handleCancel()"
(nzOnOk)="handleOk()">
<ng-container *nzModalContent>
{{data.detail}}
</ng-container>
</nz-modal>
</td> </td>
<td> <td>
<span class="blue" (click)="dispose(data)">处置</span> <span class="blue" (click)="dispose(data)">处置</span>

25
src/app/system-management/video-streaming/video-streaming.component.ts

@ -4,6 +4,7 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NzMessageService } from 'ng-zorro-antd/message'; import { NzMessageService } from 'ng-zorro-antd/message';
import { NzModalService } from 'ng-zorro-antd/modal'; import { NzModalService } from 'ng-zorro-antd/modal';
import { TreeService } from 'src/app/service/tree.service'; import { TreeService } from 'src/app/service/tree.service';
import { DetailsComponent } from './details/details.component';
@Component({ @Component({
selector: 'app-video-streaming', selector: 'app-video-streaming',
@ -134,21 +135,19 @@ export class VideoStreamingComponent implements OnInit {
} }
showModal(data): void {
isVisible = false; const modal = this.modal.create({
showModal(): void { nzTitle: '详情',
this.isVisible = true; nzContent: DetailsComponent,
} nzViewContainerRef: this.viewContainerRef,
nzWidth: 388,
handleOk(): void { nzFooter: null,
console.log('Button ok clicked!'); nzComponentParams: {
this.isVisible = false; data: data,
}
});
} }
handleCancel(): void {
console.log('Button cancel clicked!');
this.isVisible = false;
}
dispose(data) { dispose(data) {
let body = { let body = {
isHandled: true isHandled: true

Loading…
Cancel
Save