summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/maas/build/application-detail/application-detail.component.ts
diff options
context:
space:
mode:
authorkaixiliu <liukaixi@chinamobile.com>2024-11-29 17:32:22 +0800
committerkaixiliu <liukaixi@chinamobile.com>2024-11-29 17:32:27 +0800
commite5de10348e38a4cac9f70da856ab7c6941bfc347 (patch)
tree4aa7bc3808b54653f4a8f068a1903094b38d574b /usecaseui-portal/src/app/views/maas/build/application-detail/application-detail.component.ts
parent35d38716bfb367497f563bc4081109f6053c43af (diff)
add maas knowledge base, Knowledge Assistant, application and update link
Issue-ID: USECASEUI-844 Change-Id: I1dc2b4bc12f364d017b24b2752acfef63e27ad94 Signed-off-by: kaixiliu <liukaixi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/maas/build/application-detail/application-detail.component.ts')
-rw-r--r--usecaseui-portal/src/app/views/maas/build/application-detail/application-detail.component.ts74
1 files changed, 74 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/views/maas/build/application-detail/application-detail.component.ts b/usecaseui-portal/src/app/views/maas/build/application-detail/application-detail.component.ts
new file mode 100644
index 00000000..f9e16435
--- /dev/null
+++ b/usecaseui-portal/src/app/views/maas/build/application-detail/application-detail.component.ts
@@ -0,0 +1,74 @@
+import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
+
+@Component({
+ selector: 'app-application-detail',
+ templateUrl: './application-detail.component.html',
+ styleUrls: ['./application-detail.component.less']
+})
+export class ApplicationDetailComponent implements OnInit {
+
+ constructor() { }
+
+ @Input() showModel: boolean;
+ _applicationDetail;
+ data: Array<{ label: string, value: string }> = [];
+ @Input()
+ set applicationDetail(v: any) {
+ if (!v) {
+ return;
+ }
+ this.data = [
+ {
+ label: 'Application Name', value: v.applicationName
+ },
+ {
+ label: 'Application Description', value: v.applicationDescription
+ },
+ {
+ label: 'Application Type', value: v.applicationType
+ },
+ {
+ label: 'Operator', value: v.operatorName
+ },
+ {
+ label: 'MaaS', value: v.maaSPlatformName
+ },
+ {
+ label: 'Large Model', value: v.largeModelName
+ },
+ {
+ label: 'Knowledge Base', value: v.knowledgeBaseName
+ },
+ {
+ label: 'Prompt', value: v.prompt
+ },
+ {
+ label: 'Temperature', value: v.temperature
+ },
+ {
+ label: 'Top_p', value: v.top_p
+ },
+ {
+ label: 'Opening Remarks', value: v.openingRemarks
+ }
+ ]
+ this._applicationDetail = v;
+ };
+ get applicationDetail() {
+ return this._applicationDetail;
+ }
+ @Output() modalOpreation = new EventEmitter();
+
+ ngOnInit() {}
+
+ handleCancel(): void {
+ this.showModel = false;
+ this.modalOpreation.emit();
+ }
+
+ handleOk(): void {
+ this.showModel = false;
+ this.modalOpreation.emit();
+ }
+
+} \ No newline at end of file