diff options
author | 2019-12-09 10:13:59 +0800 | |
---|---|---|
committer | 2019-12-09 10:14:06 +0800 | |
commit | a0e23263ff319da6b34b122bcde42a810599df4c (patch) | |
tree | 5993552f09d7e65776e2c1a706b828b1998807eb /usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model | |
parent | 9b2981c50e58fa641621d4a4bcb9d8827eb5968d (diff) |
feat:add model business code of slicing business page
Change-Id: I08ddb3d37e9d96c44c596b535083306992f2bf52
Issue-ID: USECASEUI-369
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model')
4 files changed, 51 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.html b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.html new file mode 100644 index 00000000..a90a90d1 --- /dev/null +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.html @@ -0,0 +1,4 @@ +<p> + nsi-model works! + <button (click)="button()">我是nsi--button</button> +</p> diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.less b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.less new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.less diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.spec.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.spec.ts new file mode 100644 index 00000000..76d1a2eb --- /dev/null +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { NsiModelComponent } from './nsi-model.component'; + +describe('NsiModelComponent', () => { + let component: NsiModelComponent; + let fixture: ComponentFixture<NsiModelComponent>; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ NsiModelComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(NsiModelComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.ts new file mode 100644 index 00000000..1b8a6627 --- /dev/null +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component.ts @@ -0,0 +1,22 @@ +import { Component, OnInit } from '@angular/core'; +import {NzModalService} from "ng-zorro-antd"; +import { SlicingBusinessModelComponent } from '../../slicing-business-management/slicing-business-model/slicing-business-model.component'; +@Component({ + selector: 'app-nsi-model', + templateUrl: './nsi-model.component.html', + styleUrls: ['./nsi-model.component.less'] +}) +export class NsiModelComponent implements OnInit { + + constructor( + private modalService: NzModalService + ) { + } + + ngOnInit() { + } + button(){ + this.modalService.create({nzContent:SlicingBusinessModelComponent}); + console.log(2222) + } +} |