diff options
author | 2020-12-07 19:18:44 +0800 | |
---|---|---|
committer | 2020-12-07 19:20:19 +0800 | |
commit | 0c91d09baac3c4749f4aad4ec40f278240a11bf1 (patch) | |
tree | bfc63f681bd8e79b916496260446262ee0306c78 /usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts | |
parent | d8f2792db89ec0e20751be2bf6be04a2f8382b1a (diff) |
fix the bug of create-model
Signed-off-by: wangyuerg <wangyuerg@chinamobile.com>
Change-Id: Ic74397429fa99ed477b9ccdfe154f0453cb7d743
Issue-ID: USECASEUI-505
Diffstat (limited to 'usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts b/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts index 48b2061c..9d0dd610 100644 --- a/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts +++ b/usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.ts @@ -145,7 +145,12 @@ export class CreateModelComponent implements OnInit { this.http.getTemplateParameters(types, chosedtemplates) .subscribe((data) => { this.loadingAnimateShow = false; - if (data.status == "FAILED") { + if (!data || !data.status) { + this.temParametersTips = true; + this.isVisible = true; + this.msg.error('Back end data format error') + } + else if (data.status == "FAILED") { this.temParametersTips = true; this.isVisible = true; } else { |