diff options
author | cyuamber <xuranyjy@chinamobile.com> | 2021-01-26 16:37:24 +0800 |
---|---|---|
committer | cyuamber <xuranyjy@chinamobile.com> | 2021-01-26 16:41:29 +0800 |
commit | 78f3d26b3dc21b3c5ba89e88c40d301932c68cbf (patch) | |
tree | ba2284da2ae9508c6d71664a01252d69b6a665b8 /usecaseui-portal/src | |
parent | 9ec32a0245141bb1bd93ff34cfae4a7d1a5b8f80 (diff) |
feat: separate csmf creation form constant data
Change-Id: Ieec164b3531b48d08ecb79cb32afa741bd0fc8ec
Issue-ID: USECASEUI-531
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src')
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 |