419bb6b31fedd4ba87e2b4124959628bf14d6189
[usecase-ui.git] /
1 <!--
2     Copyright (C) 2019 CMCC, Inc. and others. All rights reserved.
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8             http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15 -->
16 <nz-modal [(nzVisible)]="showModal" nzTitle="Knowledge Base Detail" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()"
17     nzWidth="56%" nzHeight="800px" class="intent-management-modal">
18     <app-descriptions *ngIf="knowledgeBaseDetail else LoadingTmp">
19         <app-descriptions-item nzTitle="Knowledge Base Name">{{knowledgeBaseDetail.knowledgeBaseName}}
20         </app-descriptions-item>
21         <app-descriptions-item nzTitle="Operator Name">{{knowledgeBaseDetail.operatorName}}
22         </app-descriptions-item>
23         <app-descriptions-item nzTitle="MaaS Platform Name">{{knowledgeBaseDetail.maaSPlatformName}}
24         </app-descriptions-item>
25         <app-descriptions-item nzTitle="Update Time">
26             {{knowledgeBaseDetail.updateTime}}
27         </app-descriptions-item>
28         <app-descriptions-item [nzSpan]="3"
29             nzTitle="Knowledge Base Description">{{knowledgeBaseDetail.knowledgeBaseDescription}}
30         </app-descriptions-item>
31         <app-descriptions-item [nzSpan]="3" nzTitle="Files Name">
32             <div class="upload-file">
33                 <nz-upload [nzAction]="url" [(nzFileList)]="fileList"  (nzChange)="handleChange($event)" nzName="files" [nzData]="nzdata">
34                     <button nz-button>
35                         <i class="anticon anticon-upload"></i>
36                         <span>Select File</span> 
37                     </button>
38                 </nz-upload>
39                 <div *ngFor="let file of displayFiles"
40                     class="ant-upload-list-item ant-upload-list-item- ng-trigger ng-trigger-itemState ng-star-inserted" [ngClass]="{'ant-upload-list-item-error': file.status === 'error'}">
41                     <div class="ant-upload-list-item-info">
42                         <span class="ng-tns-c15-6 ng-star-inserted">
43                             <i class="anticon anticon-paper-clip ng-star-inserted"></i>
44                             <span class="ant-upload-list-item-name ng-tns-c15-6 ng-star-inserted"
45                                 title="fastgpt_README.md">{{file.fileName}}</span>
46                         </span>
47                     </div>
48                     <i class="anticon anticon-cross ng-tns-c15-6 ng-star-inserted" title="Remove file"
49                         (click)="removedFile(file)"></i>
50                 </div>
51             </div>
52         </app-descriptions-item>
53     </app-descriptions>
54     <ng-template #LoadingTmp>
55         <div class="loading">
56             <nz-spin class="upload-loading" [nzSize]="'large'"></nz-spin>
57         </div>
58     </ng-template>
59 </nz-modal>