Explorar el Código

报修类型展示

seimin hace 4 meses
padre
commit
fbd261b64f

+ 1 - 1
src/app/components/incidentManagement/incident-ser-visit/incident-ser-visit.component.html

@@ -7,7 +7,7 @@
7 7
         <div class="items" *ngFor="let item of visitList">
8 8
           <div class="row">
9 9
             <div class="col"><span [ngClass]="priorityColor(item.priorityId)">{{item.priorityDTO?.name}}</span> {{item.incidentsign}}</div>
10
-            <div class="col">{{item.hosName}} {{item.department?.dept}}</div>
10
+            <div class="col">{{item.hosName}} <ng-container *ngIf="item.repairIncidentType.value === 'public'">{{ item.repairIncidentType.name }}</ng-container><ng-container *ngIf="item.repairIncidentType.value === 'dept'">{{ item.department?.dept }}</ng-container></div>
11 11
           </div>
12 12
           <div class="row">
13 13
             <div class="col">故障描述:{{item.description}}</div>

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 3 - 3
src/app/views/fuwutai/fuwutai.component.html


+ 6 - 1
src/app/views/incident-management/incident-management.component.html

@@ -96,7 +96,12 @@
96 96
             </td>
97 97
             <td class="text_align_left">
98 98
               {{ data.hosName || '无' }}<br>
99
-              {{ data.department?.dept || '无' }}<br>
99
+              <ng-container *ngIf="data.repairIncidentType.value === 'public'">
100
+                {{ data.repairIncidentType.name }}<br>
101
+              </ng-container>
102
+              <ng-container *ngIf="data.repairIncidentType.value === 'dept'">
103
+                {{ data.department?.dept || '无' }}<br>
104
+              </ng-container>
100 105
               {{ data.place ? data.place.building.buildingName : '' }}{{ data.place ? data.place.floorName + '层' : '' }}{{ data.houseNumber }}
101 106
             </td>
102 107
             <td class="text_align_left">