summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/shared/utils
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2021-01-26 19:22:38 +0800
committerxu ran <xuranyjy@chinamobile.com>2021-01-27 01:50:04 +0000
commitdb0ce30f2215a7983d43a86855d0a36bf0b12bc0 (patch)
tree86ade403626834da01c790de1ee8a70730d39074 /usecaseui-portal/src/app/shared/utils
parent78f3d26b3dc21b3c5ba89e88c40d301932c68cbf (diff)
feat: change the ui struc of csmf creating model
Change-Id: I5963b93d6ca0ef21556da2728e39e15b8b72f260 Issue-ID: USECASEUI-531 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/shared/utils')
-rw-r--r--usecaseui-portal/src/app/shared/utils/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/shared/utils/utils.ts b/usecaseui-portal/src/app/shared/utils/utils.ts
index 6864d60d..63e19075 100644
--- a/usecaseui-portal/src/app/shared/utils/utils.ts
+++ b/usecaseui-portal/src/app/shared/utils/utils.ts
@@ -35,7 +35,7 @@ export class Util {
getRulesText(words: string, title: string, index: number, rulesText: any[]){
return rulesText[index] = words + title
};
- validator(title: string, key: string, val: any, index: number, rulesText: any[], validateRulesShow: any[]) {
+ validator(title: string="", key: string="", val: any="", index: number=0, rulesText: any[]=[], validateRulesShow: any[]=[]) {
let maxNumberReg = /^([1-9]\d{0,4}|100000)$/, // Check integer between 1 ~ 100000
expDataRateReg = /^([1-9]\d{2}|[1-3]\d{3}|3000)$/, // Check integer between 100 ~ 3000
latencyReg = /^1[0-9]$|^[2-9]\d$|^1\d{2}$|^200$/; // Check integers between 10 and 200