summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail')
-rw-r--r--usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail/knowledge-base-detail.component.html21
-rw-r--r--usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail/knowledge-base-detail.component.less0
-rw-r--r--usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail/knowledge-base-detail.component.ts64
3 files changed, 85 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail/knowledge-base-detail.component.html b/usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail/knowledge-base-detail.component.html
new file mode 100644
index 00000000..9653f29f
--- /dev/null
+++ b/usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail/knowledge-base-detail.component.html
@@ -0,0 +1,21 @@
+<!--
+ Copyright (C) 2019 CMCC, Inc. and others. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<nz-modal [(nzVisible)]="showModel" nzTitle="Knowledge Base Detail" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()"
+ nzWidth="56%" nzHeight="800px" class="intent-management-modal">
+ <div>
+ <app-description-info [data]="data"></app-description-info>
+ </div>
+</nz-modal> \ No newline at end of file
diff --git a/usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail/knowledge-base-detail.component.less b/usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail/knowledge-base-detail.component.less
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail/knowledge-base-detail.component.less
diff --git a/usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail/knowledge-base-detail.component.ts b/usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail/knowledge-base-detail.component.ts
new file mode 100644
index 00000000..172e9d1d
--- /dev/null
+++ b/usecaseui-portal/src/app/views/maas/knowledge-base-management/knowledge-base-detail/knowledge-base-detail.component.ts
@@ -0,0 +1,64 @@
+import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
+import { knowledgeBase } from '../knowledge-base.type';
+import { KnowledgeBaseService } from '../knowledge-base.service';
+@Component({
+ selector: 'app-knowledge-base-detail',
+ templateUrl: './knowledge-base-detail.component.html',
+ styleUrls: ['./knowledge-base-detail.component.less']
+})
+export class KnowledgeBaseDetailComponent implements OnInit {
+
+ constructor(
+ private knowledgeBaseService: KnowledgeBaseService
+ ) { }
+ @Input() showModel: boolean;
+ _knowledgeBase: knowledgeBase;
+ data: Array<{ label: string, value: string }> = [];
+ @Input()
+
+ set knowledgeBaseDetail(v: any) {
+ if (!v) {
+ return;
+ }
+ this.data = [
+ {
+ label: 'Knowledge Base Name', value: v.knowledgeBaseName
+ },
+ {
+ label: 'Knowledge Base Description', value: v.knowledgeBaseDescription
+ },
+ {
+ label: 'Operator Name', value: v.operatorName
+ },
+ {
+ label: 'MaaS Platform Name', value: v.maaSPlatformName
+ },
+ {
+ label: 'Update Time', value: v.updateTime
+ },
+ {
+ label: 'Files Name', value: this.knowledgeBaseService.getFiles(v)
+ }
+ ]
+ this._knowledgeBase = v;
+ }
+
+ get knowledgeBaseDetail() {
+ return this._knowledgeBase;
+ };
+ @Output() modalOpreation = new EventEmitter();
+ files = '';
+
+ ngOnInit() {
+ }
+
+ handleCancel(): void {
+ this.showModel = false;
+ this.modalOpreation.emit({ "cancel": true });
+ }
+
+ handleOk(): void {
+ this.showModel = false;
+ this.modalOpreation.emit({ "cancel": true });
+ }
+} \ No newline at end of file