import { NsiModelComponent } from './views/services/slicing-management/slicing-resource-management/nsi-management/nsi-model/nsi-model.component';
import { NssiModelComponent } from './views/services/slicing-management/slicing-resource-management/nssi-management/nssi-model/nssi-model.component';
import { CsmfSlicingBusinessManagementComponent } from './views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component';
+import { BusinessOrderComponent } from './views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component';
@NgModule({
providers: [
SlicingBusinessModelComponent,
NsiModelComponent,
NssiModelComponent,
- CsmfSlicingBusinessManagementComponent
+ CsmfSlicingBusinessManagementComponent,
+ BusinessOrderComponent
],
imports: [
BrowserModule,
csmfDeactivate:"/api/usecaseui/csmf/5gSlicing/service/{serviceId}/deactivate",\r
csmfTerminate:"/api/usecaseui/csmf/5gSlicing/service/{serviceId}",\r
csmfGetProgress:"/api/usecaseui/csmf/5gSlicing/service/{serviceId}/progress",\r
+ csmfPurchase:"/uui-slicing/csmf/5gSlicing ",\r
//monitor 5G\r
fetchTraffic: this.baseUrl + "/monitoring/queryTimestamp/{queryTimestamp}/trafficData",\r
fetchOnlineusers: this.baseUrl + "/monitoring/queryTimestamp/{queryTimestamp}/onlineUsers",\r
--- /dev/null
+<p>
+ business-order works!
+</p>
--- /dev/null
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { BusinessOrderComponent } from './business-order.component';
+
+describe('BusinessOrderComponent', () => {
+ let component: BusinessOrderComponent;
+ let fixture: ComponentFixture<BusinessOrderComponent>;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ BusinessOrderComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(BusinessOrderComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
--- /dev/null
+import { Component, OnInit } from '@angular/core';
+import {COMMUNICATION_FORM_ITEMS} from "../../../../../../constants/constants";
+@Component({
+ selector: 'app-business-order',
+ templateUrl: './business-order.component.html',
+ styleUrls: ['./business-order.component.less']
+})
+export class BusinessOrderComponent implements OnInit {
+
+ constructor() { }
+
+ ngOnInit() {
+ }
+
+}
<nz-option *ngFor="let item of statusOptions" [nzLabel]="item" [nzValue]="item"></nz-option>
</nz-select>
</div>
+ <button nz-button nzType="primary" class="buy-button">Purchase</button>
</div>
<div class="slicing-resource-table-list">
<nz-table #basicTable [nzData]="listOfData" [nzFrontPagination]="false" nzShowSizeChanger
</td>
<td>
<div class="action-icon">
- <nz-switch [ngModel]="data.service_status==='activated'?true:false"
+ <nz-switch [ngModel]="data.orchestration_status==='activated'?true:false"
[nzDisabled]="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100'"
(ngModelChange)="switchChange(data,i)"></nz-switch>
<nz-progress
</nz-progress>
</div>
<div class="action-icon">
- <i [ngClass]="{'cannotclick': data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && (data.last_operation_type !== 'DELETE' || data.service_status==='activated')}"
+ <i [ngClass]="{'cannotclick': data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== '100' && (data.last_operation_type !== 'DELETE' || data.orchestration_status==='activated')}"
nz-icon nzType="poweroff" nzTheme="outline" class="anticon anticon-poweroff"
(click)="terminate(data)"></i>
<nz-progress
pointer-events: none;
color: #aaa;
opacity: 0.6;
+}
+.buy-button{
+ float: right;
+ margin-right: 2%;
}
\ No newline at end of file
]\r
export const BUSINESS_STATUS = [\r
"All", "activated", "deactivated"\r
-]
\ No newline at end of file
+]\r
+\r
+export const COMMUNICATION_FORM_ITEMS = [\r
+ {\r
+ title: 'Slicing Business Name',\r
+ key: 'name'\r
+ },\r
+ {\r
+ title: 'Max Number of UEs',\r
+ key: 'maxNumberofUEs'\r
+ },\r
+ {\r
+ title: 'Data Rate Downlink (Mbps)',\r
+ key: 'expDataRateDL'\r
+ },\r
+ {\r
+ title: 'Latency',\r
+ key: 'latency'\r
+ },\r
+ {\r
+ title: 'Data Rate Uplink (Mbps)',\r
+ key: 'expDataRateUL'\r
+ },\r
+ {\r
+ title: 'Resource Sharing Level',\r
+ key: 'resourceSharingLevel',\r
+ options: [\r
+ {\r
+ title: 'Shared',\r
+ key: 'shared'\r
+ },\r
+ {\r
+ title: 'Non-shared',\r
+ key: 'no-shared'\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ title: 'Mobility',\r
+ key: 'uEMobilityLevel',\r
+ },\r
+ {\r
+ title: 'Use Interval (Month)',\r
+ key: 'useInterval'\r
+ },\r
+ {\r
+ title: 'Max Number of UEs',\r
+ key: 'coverageArea'\r
+ }\r
+]\r
+\r
+export const COMMUNICATION_FORM_ADDRESS = {\r
+ "result_header": {\r
+ "result_code": 200,\r
+ "result_message": "Successfully"\r
+ },\r
+\r
+ "result_body": {\r
+ "province": [\r
+ {\r
+ "id": "1",\r
+ "name": "北京",\r
+ "city": [\r
+ {\r
+ "id": "101",\r
+ "name": "北京市",\r
+ "county": [\r
+ {\r
+ "id": "1001",\r
+ "name": "海淀区",\r
+ "street": [\r
+ {\r
+ "id": "100101",\r
+ "name": "万寿路街道"\r
+ },\r
+ {\r
+ "id": "100102",\r
+ "name": "中关村街道"\r
+ },\r
+ {\r
+ "id": "100103",\r
+ "name": "海淀街道"\r
+ },\r
+ {\r
+ "id": "100104",\r
+ "name": "西三旗街道"\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "id": "1002",\r
+ "name": "西城区",\r
+ "street": [\r
+ {\r
+ "id": "100201",\r
+ "name": "广安门内街道"\r
+ },\r
+ {\r
+ "id": "100202",\r
+ "name": "广安门外街道"\r
+ },\r
+ {\r
+ "id": "100203",\r
+ "name": "西长安街街道"\r
+ },\r
+ {\r
+ "id": "100204",\r
+ "name": "金融街街道"\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "id": "1003",\r
+ "name": "昌平区",\r
+ "street": [\r
+ {\r
+ "id": "100301",\r
+ "name": "城北街道"\r
+ },\r
+ {\r
+ "id": "100302",\r
+ "name": "城南街道"\r
+ },\r
+ {\r
+ "id": "100303",\r
+ "name": "天通苑北街道"\r
+ },\r
+ {\r
+ "id": "100304",\r
+ "name": "天通苑南街道"\r
+ }\r
+ ]\r
+ }\r
+ ]\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "id": "2",\r
+ "name": "上海",\r
+ "city": [{\r
+ "id": "201",\r
+ "name": "上海市",\r
+ "county": [{\r
+ "id": "2001",\r
+ "name": "浦东新区",\r
+ "street": [\r
+ {\r
+ "id": "200101",\r
+ "name": "陆家嘴街道"\r
+ },\r
+ {\r
+ "id": "200102",\r
+ "name": "周家渡街道"\r
+ },\r
+ {\r
+ "id": "200103",\r
+ "name": "塘桥街道"\r
+ },\r
+ {\r
+ "id": "200104",\r
+ "name": "南码头路街道"\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "id": "2002",\r
+ "name": "静安区",\r
+ "street": [\r
+ {\r
+ "id": "200201",\r
+ "name": "江宁路街道"\r
+ },\r
+ {\r
+ "id": "200202",\r
+ "name": "静安寺街道"\r
+ },\r
+ {\r
+ "id": "200203",\r
+ "name": "南京西路街道"\r
+ },\r
+ {\r
+ "id": "200204",\r
+ "name": "曹家渡街道"\r
+ }\r
+ ]\r
+ }\r
+ ]\r
+ }]\r
+ }\r
+ ]\r
+ }\r
+}
\ No newline at end of file