Commit 9fa16e7b authored by wangqinghua's avatar wangqinghua

单位

parent 28a369ef
...@@ -7,7 +7,7 @@ export const DEBUG_INFO_ENABLED: boolean = !!process.env.DEBUG_INFO_ENABLED; ...@@ -7,7 +7,7 @@ export const DEBUG_INFO_ENABLED: boolean = !!process.env.DEBUG_INFO_ENABLED;
export const SERVER_API_URL_COMS = '/coms'; export const SERVER_API_URL_COMS = '/coms';
export const SERVER_API_URL = '/zabbixBox'; export const SERVER_API_URL = '/zabbixBox';
export const BUILD_TIMESTAMP = process.env.BUILD_TIMESTAMP; export const BUILD_TIMESTAMP = process.env.BUILD_TIMESTAMP;
export const pageSize = 25; export const pageSize = 10;
export const color = { export const color = {
green:'#58ca13', green:'#58ca13',
yellow:'#ffc029', yellow:'#ffc029',
......
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
<nz-tag *ngIf="data.priority == 4 || data.priority == 5" [nzColor]="color.red"></nz-tag> <nz-tag *ngIf="data.priority == 4 || data.priority == 5" [nzColor]="color.red"></nz-tag>
<nz-tag *ngIf="data.priority == 2 || data.priority == 3" [nzColor]="color.yellow"></nz-tag> <nz-tag *ngIf="data.priority == 2 || data.priority == 3" [nzColor]="color.yellow"></nz-tag>
</td> </td>
<td>{{data.hostname}}</td> <td class="cursor main-color">{{data.hostname}}</td>
<td>{{data.description}}</td> <td>{{data.description}}</td>
<td>{{data.continuedTime}}</td> <td>{{data.continuedTime}}</td>
</tr> </tr>
......
...@@ -195,9 +195,9 @@ ...@@ -195,9 +195,9 @@
<span *ngIf="data.triggerCount == 0" (click)="showAddThresholdModal(data)">添加阈值</span> <span *ngIf="data.triggerCount == 0" (click)="showAddThresholdModal(data)">添加阈值</span>
<span *ngIf="data.triggerCount > 0" (click)="showEditThresholdModal(data)">编辑阈值</span> <span *ngIf="data.triggerCount > 0" (click)="showEditThresholdModal(data)">编辑阈值</span>
</ng-container> </ng-container>
<span *ngIf="data.status == 0 && data.state==0" (click)="updateItem(data.itemid,1)" style="color: red">启用</span> <span *ngIf="data.status == 0 && data.state==0" (click)="updateItem(data.itemid,1)" style="color: green" >启用</span>
<span *ngIf="data.status == 0 && data.state==1" (click)="updateItem(data.itemid,1)" style="color: red">不支持的</span> <span *ngIf="data.status == 0 && data.state==1" (click)="updateItem(data.itemid,1)" style="color: red">不支持的</span>
<span *ngIf="data.status == 1 && data.state==0" (click)="updateItem(data.itemid,0)" style="color: green">停止</span> <span *ngIf="data.status == 1 && data.state==0" (click)="updateItem(data.itemid,0)" style="color: red" >停止</span>
<span *ngIf="data.status == 1 && data.state==1" (click)="updateItem(data.itemid,0)" style="color: green">停止</span> <span *ngIf="data.status == 1 && data.state==1" (click)="updateItem(data.itemid,0)" style="color: green">停止</span>
</td> </td>
<td>{{data.error}}</td> <td>{{data.error}}</td>
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
<!--父级--> <!--父级-->
<ng-container *ngIf="!item.level"> <ng-container *ngIf="!item.level">
<td></td> <td></td>
<td class="cursor" [nzIndentSize]="item.level*20" nzShowExpand [nzExpand]='item.expand' <td [nzIndentSize]="item.level*20" nzShowExpand [nzExpand]='item.expand'
(nzExpandChange)="getChildrenType(item)"> (nzExpandChange)="getChildrenType(item)">
<span>{{item.equipmentType}}</span> <span>{{item.equipmentType}}</span>
</td> </td>
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
<!--父级--> <!--父级-->
<ng-container *ngIf="!item.level"> <ng-container *ngIf="!item.level">
<td></td> <td></td>
<td class="cursor" [nzIndentSize]="item.level*20" nzShowExpand [nzExpand]='item.expand' <td [nzIndentSize]="item.level*20" nzShowExpand [nzExpand]='item.expand'
(nzExpandChange)="getChildren(item)"> (nzExpandChange)="getChildren(item)">
<span>{{item.name}}</span> <span>{{item.name}}</span>
</td> </td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment