Parcourir la source

检查项目列表增加字段展示

seimin il y a 2 mois
Parent
commit
57a266558e

+ 9 - 5
src/app/components/configurationCenter/configuration-inspect/configuration-inspect-inspects/configuration-inspect-inspects.component.html

@@ -44,11 +44,13 @@
44 44
             [nzLoading]="loading1" [nzScroll]="{ y: tableWechatHeight + 'px' }">
45 45
             <thead>
46 46
               <tr class="thead">
47
-                <th nzWidth="20%">排序号</th>
48
-                <th nzWidth="20%">检查项目标识</th>
49
-                <th nzWidth="20%">检查项目名称</th>
50
-                <th nzWidth="20%">检查类型</th>
51
-                <th nzWidth="20%">操作</th>
47
+                <th nzWidth="7%">排序号</th>
48
+                <th nzWidth="12%">检查项目标识</th>
49
+                <th nzWidth="12%">检查项目名称</th>
50
+                <th nzWidth="12%">检查类型</th>
51
+                <th nzWidth="12%">默认检查科室</th>
52
+                <th nzWidth="30%">检查科室</th>
53
+                <th nzWidth="15%">操作</th>
52 54
               </tr>
53 55
             </thead>
54 56
             <tbody>
@@ -57,6 +59,8 @@
57 59
                 <td>{{data.extra6}}</td>
58 60
                 <td>{{data.name}}</td>
59 61
                 <td>{{data.extra5DTO?.name}}</td>
62
+                <td>{{data.extra4DTO?.dept}}</td>
63
+                <td>{{data.deptList | multipleName: 'dept'}}</td>
60 64
                 <td>
61 65
                   <div class="coop">
62 66
                     <span (click)="showDelModal(data,'您确认要删除吗?','删除','del')">删除</span>

+ 17 - 0
src/app/pipes/multiple-name.pipe.ts

@@ -0,0 +1,17 @@
1
+import { Pipe, PipeTransform } from '@angular/core';
2
+
3
+@Pipe({
4
+  name: 'multipleName'
5
+})
6
+export class MultipleNamePipe implements PipeTransform {
7
+
8
+  transform(value: any[], ...args: any[]): any {
9
+    if(value){
10
+      return value.map(v => v[args[0]]).toString();
11
+    }else{
12
+      return '';
13
+    }
14
+
15
+  }
16
+
17
+}

+ 3 - 0
src/app/share/share.module.ts

@@ -35,6 +35,7 @@ import { BatchOrdersComponent } from './batch-orders/batch-orders.component';
35 35
 import { CollapseComponent } from './collapse/collapse.component';
36 36
 import { CollapsePanelComponent } from './collapse-panel/collapse-panel.component';
37 37
 import { HtmlTransformPipe } from '../pipes/html-transform.pipe';
38
+import { MultipleNamePipe } from '../pipes/multiple-name.pipe';
38 39
 import { BxPromptModalComponent } from './bx-prompt-modal/bx-prompt-modal.component';
39 40
 import { ExcelExportComponent } from './excel-export/excel-export.component';
40 41
 import { ExcelImportComponent } from './excel-import/excel-import.component';
@@ -118,6 +119,7 @@ import { AddInspectThreeModalComponent } from './add-inspect-three-modal/add-ins
118 119
     CollapseComponent,
119 120
     CollapsePanelComponent,
120 121
     HtmlTransformPipe,
122
+    MultipleNamePipe,
121 123
     StripHtmlPipe,
122 124
     FilterSelfPipe,
123 125
     ExcelExportComponent,
@@ -206,6 +208,7 @@ import { AddInspectThreeModalComponent } from './add-inspect-three-modal/add-ins
206 208
     CollapseComponent,
207 209
     CollapsePanelComponent,
208 210
     HtmlTransformPipe,
211
+    MultipleNamePipe,
209 212
     StripHtmlPipe,
210 213
     FilterSelfPipe,
211 214
     ExcelExportComponent,