Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<div nz-row class="breadcrumbs" >
<div nz-col nzSpan="16">
<nz-breadcrumb class="padding-8-0">
<nz-breadcrumb-item>
首页
</nz-breadcrumb-item>
<nz-breadcrumb-item>
<a>综合监控</a>
</nz-breadcrumb-item>
<nz-breadcrumb-item>
基础资源监控
</nz-breadcrumb-item>
</nz-breadcrumb>
</div>
<div nz-col nzSpan="8" class="text-right">
<button nz-button nzType="primary"><i class="anticon anticon-search"></i></button>
<button nz-button nzType="primary"><i class="anticon anticon-sync"></i></button>
<button nz-button nzType="primary"><i class="anticon anticon-arrows-alt"></i></button>
</div>
</div>
<div nz-row class="search-form">
<div nz-col nzSpan="16">
<span>监控设备数:120</span>
<span>设备状态:
<span> <nz-tag [nzColor]="'#64ad58'"></nz-tag>110 </span>
<span> <nz-tag [nzColor]="'#ed9e2e'"></nz-tag>120 </span>
<span> <nz-tag [nzColor]="'#dd4127'"></nz-tag>119 </span>
<span> <nz-tag [nzColor]="'#aaaaaa'"></nz-tag>112 </span>
</span>
<nz-select style="width: 200px;" nzShowSearch nzAllowClear nzPlaceHolder="按组分开">
<nz-option nzLabel="A" nzValue="A"></nz-option>
<nz-option nzLabel="B" nzValue="B"></nz-option>
<nz-option nzLabel="C" nzValue="C"></nz-option>
</nz-select>
</div>
<div nz-col nzSpan="8" class="text-right">
<button nz-button nzType="default"><i class="anticon anticon-pause-circle-o"></i>关闭监控</button>
<button nz-button nzType="default"><i class="anticon anticon-play-circle-o"></i>开启监控</button>
<button nz-button nzType="default"><i class="anticon anticon-close-circle"></i>删除资源</button>
</div>
</div>
<nz-table #nzTable [nzData]="data" nzSingleSort>
<thead>
<tr>
<th nzShowCheckbox></th>
<th nzShowSort>名称</th>
<th nzShowSort nzWidth="20%">状态</th>
<th nzShowSort>类型</th>
<th nzShowSort>监控点</th>
<th nzShowSort>CPU利用率</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<ng-template ngFor let-data [ngForOf]="nzTable.data">
<ng-template ngFor let-item [ngForOf]="expandDataCache[data.key]">
<tr *ngIf="(item.parent&&item.parent.expand)||!(item.parent)">
<td nzShowCheckbox [(nzChecked)]="data.checked" (nzCheckedChange)="refreshStatus($event)"></td>
<td [nzIndentSize]="item.level*20" [nzShowExpand]="!!item.children" [(nzExpand)]="item.expand" (nzExpandChange)="collapse(expandDataCache[data.key],item,$event)">
{{item.key1}}
</td>
<td>{{item.key2}}</td>
<td>{{item.key3}}</td>
<td>{{item.key4}}</td>
<td>{{item.key5}}</td>
<td>
<span *ngIf="!item.level">
<span (click)="showBasicEditModal()">添加资源</span>
<span>编辑</span>
<span>删除</span>
</span>
<span *ngIf="item.level">
<span>添加检测点</span>
<span>编辑</span>
<span>删除</span>
<span class="table-operation">
<nz-dropdown>
<a nz-dropdown class="operation">
更多 <i class="anticon anticon-down"></i>
</a>
<ul nz-menu>
<li nz-menu-item>
<a>Action 1</a>
</li>
<li nz-menu-item>
<a>Action 2</a>
</li>
</ul>
</nz-dropdown>
</span>
</span>
</td>
</tr>
</ng-template>
</ng-template>
</tbody>
</nz-table>
<nz-modal [nzWidth]="780" [(nzVisible)]="isBasicEdit" nzTitle="添加检测点" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()">
<form nz-form [nzLayout]="'vertical'" [formGroup]="validateForm" (ngSubmit)="submitForm()">
<div>
基本属性
<label nz-checkbox></label>
<div nz-row>
<div nz-col [nzSpan]="12">
<nz-form-item [nzFlex]="true">
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="email1">监测点名称</nz-form-label>
<nz-form-control [nzSm]="16" [nzXs]="24">
<input nz-input >
<!--<nz-form-explain *ngIf="validateForm.get('email').dirty && validateForm.get('email').errors">The input is not valid E-mail!</nz-form-explain>-->
</nz-form-control>
</nz-form-item>
</div>
<div nz-col [nzSpan]="12">
<nz-form-item [nzFlex]="true">
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="email1">类型</nz-form-label>
<nz-form-control [nzSm]="16" [nzXs]="24">
<nz-select name="select-error">
<nz-option nzValue="number" nzLabel="数字"></nz-option>
<nz-option nzValue="Option 2" nzLabel="Option 2"></nz-option>
</nz-select>
<!--<nz-form-explain *ngIf="validateForm.get('email').dirty && validateForm.get('email').errors">The input is not valid E-mail!</nz-form-explain>-->
</nz-form-control>
</nz-form-item>
</div>
</div>
<div nz-row>
<div nz-col [nzSpan]="12">
<nz-form-item [nzFlex]="true">
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="email2">信息类型</nz-form-label>
<nz-form-control [nzSm]="16" [nzXs]="24">
<nz-select name="select-error">
<nz-option nzValue="number" nzLabel="数字"></nz-option>
<nz-option nzValue="Option 2" nzLabel="Option 2"></nz-option>
</nz-select>
<!--<nz-form-explain *ngIf="validateForm.get('email').dirty && validateForm.get('email').errors">The input is not valid E-mail!</nz-form-explain>-->
</nz-form-control>
</nz-form-item>
</div>
<div nz-col [nzSpan]="12">
<nz-form-item [nzFlex]="true">
<nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="email3">单位</nz-form-label>
<nz-form-control [nzSm]="16" [nzXs]="24">
<input nz-input >
<!--<nz-form-explain *ngIf="validateForm.get('email').dirty && validateForm.get('email').errors">The input is not valid E-mail!</nz-form-explain>-->
</nz-form-control>
</nz-form-item>
</div>
</div>
</div>
<div>
阀值设置
<label nz-checkbox></label>
</div>
</form>
</nz-modal>