|
@@ -62,33 +62,33 @@
|
|
|
<tr>
|
|
|
<th [nzChecked]="query.checked" [nzIndeterminate]="query.indeterminate"
|
|
|
(nzCheckedChange)="onTableAllChecked($event)"></th>
|
|
|
- <th nzAlign="center">{{ 'mxk.organizations.code' | i18n }}</th>
|
|
|
- <th nzAlign="center">{{ 'mxk.organizations.name' | i18n }}</th>
|
|
|
- <th nzAlign="center">{{ 'mxk.organizations.type' | i18n }}</th>
|
|
|
- <th nzAlign="center">{{ 'mxk.text.sortIndex' | i18n }}</th>
|
|
|
- <th nzAlign="center">{{ 'mxk.text.status' | i18n }}</th>
|
|
|
- <th nzAlign="center"><a>{{ 'mxk.text.action' | i18n }}</a></th>
|
|
|
+ <th nzAlign="center" style="width: 20%;">{{ 'mxk.organizations.code' | i18n }}</th>
|
|
|
+ <th nzAlign="center" style="width: 30%;">{{ 'mxk.organizations.name' | i18n }}</th>
|
|
|
+ <th nzAlign="center" style="width: 10%;">{{ 'mxk.organizations.type' | i18n }}</th>
|
|
|
+ <th nzAlign="center" style="width: 10%;">{{ 'mxk.text.sortIndex' | i18n }}</th>
|
|
|
+ <th nzAlign="center" style="width: 10%;">{{ 'mxk.text.status' | i18n }}</th>
|
|
|
+ <th nzAlign="center" style="width: 20%;"><a>{{ 'mxk.text.action' | i18n }}</a></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<tr *ngFor="let data of query.results.rows">
|
|
|
<td [nzChecked]="query.tableCheckedId.has(data.id)" [nzDisabled]="data.disabled"
|
|
|
(nzCheckedChange)="onTableItemChecked(data.id, $event)"></td>
|
|
|
- <td nzAlign="left">
|
|
|
- <span>{{ data.id }}</span>
|
|
|
+ <td nzAlign="center">
|
|
|
+ <span>{{ data.orgCode }}</span>
|
|
|
</td>
|
|
|
- <td nzAlign="left"> {{ data.orgName }}</td>
|
|
|
- <td nzAlign="left" *ngIf="data.type == 'company'"> {{ 'mxk.organizations.type.company' | i18n }}</td>
|
|
|
- <td nzAlign="left" *ngIf="data.type == 'division'"> {{ 'mxk.organizations.type.division' | i18n }}</td>
|
|
|
- <td nzAlign="left" *ngIf="data.type == 'department'"> {{ 'mxk.organizations.type.department' | i18n }}</td>
|
|
|
- <td nzAlign="left" *ngIf="data.type == 'entity'"> {{ 'mxk.organizations.type.entity' | i18n }}</td>
|
|
|
- <td nzAlign="left" *ngIf="data.type == 'virtual'"> {{ 'mxk.organizations.type.virtual' | i18n }}</td>
|
|
|
+ <td nzAlign="center"> {{ data.orgName }}</td>
|
|
|
+ <td nzAlign="center" *ngIf="data.type == 'company'"> {{ 'mxk.organizations.type.company' | i18n }}</td>
|
|
|
+ <td nzAlign="center" *ngIf="data.type == 'division'"> {{ 'mxk.organizations.type.division' | i18n }}</td>
|
|
|
+ <td nzAlign="center" *ngIf="data.type == 'department'"> {{ 'mxk.organizations.type.department' | i18n }}</td>
|
|
|
+ <td nzAlign="center" *ngIf="data.type == 'entity'"> {{ 'mxk.organizations.type.entity' | i18n }}</td>
|
|
|
+ <td nzAlign="center" *ngIf="data.type == 'virtual'"> {{ 'mxk.organizations.type.virtual' | i18n }}</td>
|
|
|
<td nzAlign="center"> {{ data.sortIndex }}</td>
|
|
|
<td nzAlign="center"> <i *ngIf="data.status == 1" nz-icon nzType="check-circle" nzTheme="fill"
|
|
|
style="color: green"></i></td>
|
|
|
- <td nzAlign="left" nzBreakWord="false">
|
|
|
+ <td nzAlign="center" nzBreakWord="false">
|
|
|
<div nz-col>
|
|
|
- <button nz-button type="button" (click)="onEdit($event, data.id)" style="float: left">
|
|
|
+ <button nz-button type="button" (click)="onEdit($event, data.id)">
|
|
|
{{ 'mxk.text.edit' | i18n }}
|
|
|
</button>
|
|
|
<button
|
|
@@ -102,4 +102,4 @@
|
|
|
</nz-table>
|
|
|
</div>
|
|
|
</div>
|
|
|
-</nz-card>
|
|
|
+</nz-card>
|