summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts4
-rw-r--r--usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/constants.ts196
-rw-r--r--usecaseui-portal/src/constants/constants.ts197
3 files changed, 198 insertions, 199 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts
index 9e31c705..ef7971fd 100644
--- a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts
+++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts
@@ -1,5 +1,5 @@
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
-import {COMMUNICATION_FORM_ITEMS, COMMUNICATION_FORM_ADDRESS} from "../../../../../../constants/constants";
+import {COMMUNICATION_FORM_ITEMS, COMMUNICATION_FORM_ADDRESS} from "./constants";
import { Util } from '../../../../../shared/utils/utils';
import {SlicingTaskServices} from "../../../../../core/services/slicingTaskServices";
import {NzMessageService} from "ng-zorro-antd";
@@ -174,7 +174,7 @@ export class BusinessOrderComponent implements OnInit {
const coverage_list: string[] = [];
let coverageAreaNumber = null;
let coverageAreas;
-
+
COMMUNICATION_FORM_ITEMS.forEach((item, index) => {
if (item.key !== 'resourceSharingLevel' && item.key !== 'uEMobilityLevel' && item.key !== 'coverageArea' && item.key !== 'coverageAreaNumber') {
this.Util.validator(item.title,item.key, this.slicing_order_info[item.key], index, this.rulesText, this.validateRulesShow)
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/constants.ts b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/constants.ts
new file mode 100644
index 00000000..4a42b957
--- /dev/null
+++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/constants.ts
@@ -0,0 +1,196 @@
+export const COMMUNICATION_FORM_ITEMS = [
+ {
+ title: 'Communication Service Name',
+ key: 'name'
+ },
+ {
+ title: 'Max Number of UEs',
+ key: 'maxNumberofUEs'
+ },
+ {
+ title: 'Data Rate Downlink (Mbps)',
+ key: 'expDataRateDL'
+ },
+ {
+ title: 'Latency',
+ key: 'latency'
+ },
+ {
+ title: 'Data Rate Uplink (Mbps)',
+ key: 'expDataRateUL'
+ },
+ {
+ title: 'Resource Sharing Level',
+ key: 'resourceSharingLevel',
+ options: [
+ {
+ title: 'Shared',
+ key: 'shared'
+ },
+ {
+ title: 'Non-shared',
+ key: 'non-shared'
+ }
+ ]
+ },
+ {
+ title: 'Mobility',
+ key: 'uEMobilityLevel',
+ options: [
+ {
+ title: 'Stationary',
+ key: 'stationary'
+ },
+ {
+ title: 'Nomadic',
+ key: 'nomadic'
+ },
+ {
+ title: 'Spatially Restricted Mobility',
+ key: 'spatially restricted mobility'
+ },
+ {
+ title: 'Fully Mobility',
+ key: 'fully mobility'
+ }
+ ]
+ },
+ {
+ title: 'Area',
+ key: 'coverageArea'
+ },
+ {
+ title: 'Coverage Area Number',
+ key: 'coverageAreaNumber'
+ }
+]
+
+export const COMMUNICATION_FORM_ADDRESS = [
+ {
+ "id": "1",
+ "name": "Beijing",
+ "city": [
+ {
+ "id": "101",
+ "name": "Beijing",
+ "county": [
+ {
+ "id": "1001",
+ "name": "Haiding District",
+ "street": [
+ {
+ "id": "100101",
+ "name": "Wanshoulu Street"
+ },
+ {
+ "id": "100102",
+ "name": "Zhongguancun Street"
+ },
+ {
+ "id": "100103",
+ "name": "Haidian Street"
+ },
+ {
+ "id": "100104",
+ "name": "Xisanqi Street"
+ }
+ ]
+ },
+ {
+ "id": "1002",
+ "name": "Xicheng District",
+ "street": [
+ {
+ "id": "100201",
+ "name": "Guang'anmenwai Street"
+ },
+ {
+ "id": "100202",
+ "name": "Xuanwumen Street"
+ },
+ {
+ "id": "100203",
+ "name": "West Changan Street"
+ },
+ {
+ "id": "100204",
+ "name": "Financial Street"
+ }
+ ]
+ },
+ {
+ "id": "1003",
+ "name": "Changping District",
+ "street": [
+ {
+ "id": "100301",
+ "name": "Chengbei Street"
+ },
+ {
+ "id": "100302",
+ "name": "Chengnan Street"
+ },
+ {
+ "id": "100303",
+ "name": "Tiantongyuan North Street"
+ },
+ {
+ "id": "100304",
+ "name": "Tiantongyuan South Street"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "id": "2",
+ "name": "Shanghai",
+ "city": [{
+ "id": "201",
+ "name": "Shanghai City",
+ "county": [{
+ "id": "2001",
+ "name": "udongxin District",
+ "street": [
+ {
+ "id": "200101",
+ "name": "Lujiazui Street"
+ },
+ {
+ "id": "200102",
+ "name": "Zhoujiadu Street"
+ },
+ {
+ "id": "200103",
+ "name": "Tangqiao Street"
+ },
+ {
+ "id": "200104",
+ "name": "Nanquanlu Street"
+ }
+ ]
+ },
+ {
+ "id": "2002",
+ "name": "Jingan District",
+ "street": [
+ {
+ "id": "200201",
+ "name": "Jiangning Lu Street"
+ },
+ {
+ "id": "200202",
+ "name": "Jing'an Temple Street"
+ },
+ {
+ "id": "200203",
+ "name": "Nanjing West Road Street"
+ }
+ ]
+ }
+ ]
+ }]
+ }
+] \ No newline at end of file
diff --git a/usecaseui-portal/src/constants/constants.ts b/usecaseui-portal/src/constants/constants.ts
index f5954d00..e974a851 100644
--- a/usecaseui-portal/src/constants/constants.ts
+++ b/usecaseui-portal/src/constants/constants.ts
@@ -493,200 +493,3 @@ export const NexthopInfo_Options = [
export const BUSINESS_STATUS = [
"All", "Activated", "Deactivated"
]
-
-export const COMMUNICATION_FORM_ITEMS = [
- {
- title: 'Communication Service Name',
- key: 'name'
- },
- {
- title: 'Max Number of UEs',
- key: 'maxNumberofUEs'
- },
- {
- title: 'Data Rate Downlink (Mbps)',
- key: 'expDataRateDL'
- },
- {
- title: 'Latency',
- key: 'latency'
- },
- {
- title: 'Data Rate Uplink (Mbps)',
- key: 'expDataRateUL'
- },
- {
- title: 'Resource Sharing Level',
- key: 'resourceSharingLevel',
- options: [
- {
- title: 'Shared',
- key: 'shared'
- },
- {
- title: 'Non-shared',
- key: 'non-shared'
- }
- ]
- },
- {
- title: 'Mobility',
- key: 'uEMobilityLevel',
- options: [
- {
- title: 'Stationary',
- key: 'stationary'
- },
- {
- title: 'Nomadic',
- key: 'nomadic'
- },
- {
- title: 'Spatially Restricted Mobility',
- key: 'spatially restricted mobility'
- },
- {
- title: 'Fully Mobility',
- key: 'fully mobility'
- }
- ]
- },
- {
- title: 'Area',
- key: 'coverageArea'
- },
- {
- title: 'Coverage Area Number',
- key: 'coverageAreaNumber'
- }
-]
-
-export const COMMUNICATION_FORM_ADDRESS = [
- {
- "id": "1",
- "name": "Beijing",
- "city": [
- {
- "id": "101",
- "name": "Beijing",
- "county": [
- {
- "id": "1001",
- "name": "Haiding District",
- "street": [
- {
- "id": "100101",
- "name": "Wanshoulu Street"
- },
- {
- "id": "100102",
- "name": "Zhongguancun Street"
- },
- {
- "id": "100103",
- "name": "Haidian Street"
- },
- {
- "id": "100104",
- "name": "Xisanqi Street"
- }
- ]
- },
- {
- "id": "1002",
- "name": "Xicheng District",
- "street": [
- {
- "id": "100201",
- "name": "Guang'anmenwai Street"
- },
- {
- "id": "100202",
- "name": "Xuanwumen Street"
- },
- {
- "id": "100203",
- "name": "West Changan Street"
- },
- {
- "id": "100204",
- "name": "Financial Street"
- }
- ]
- },
- {
- "id": "1003",
- "name": "Changping District",
- "street": [
- {
- "id": "100301",
- "name": "Chengbei Street"
- },
- {
- "id": "100302",
- "name": "Chengnan Street"
- },
- {
- "id": "100303",
- "name": "Tiantongyuan North Street"
- },
- {
- "id": "100304",
- "name": "Tiantongyuan South Street"
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "id": "2",
- "name": "Shanghai",
- "city": [{
- "id": "201",
- "name": "Shanghai City",
- "county": [{
- "id": "2001",
- "name": "udongxin District",
- "street": [
- {
- "id": "200101",
- "name": "Lujiazui Street"
- },
- {
- "id": "200102",
- "name": "Zhoujiadu Street"
- },
- {
- "id": "200103",
- "name": "Tangqiao Street"
- },
- {
- "id": "200104",
- "name": "Nanquanlu Street"
- }
- ]
- },
- {
- "id": "2002",
- "name": "Jingan District",
- "street": [
- {
- "id": "200201",
- "name": "Jiangning Lu Street"
- },
- {
- "id": "200202",
- "name": "Jing'an Temple Street"
- },
- {
- "id": "200203",
- "name": "Nanjing West Road Street"
- }
- ]
- }
- ]
- }]
- }
-] \ No newline at end of file