Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
smart
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
smart
Commits
f2c7316e
Commit
f2c7316e
authored
Jan 13, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
cfb94508
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
10 deletions
+27
-10
strategy.component.html
src/main/webapp/app/modal/strategy/strategy.component.html
+2
-2
strategy.component.ts
src/main/webapp/app/modal/strategy/strategy.component.ts
+14
-2
discovery-list.component.html
...All/template/discovery-list/discovery-list.component.html
+7
-4
template.component.html
src/main/webapp/app/overAll/template/template.component.html
+4
-2
No files found.
src/main/webapp/app/modal/strategy/strategy.component.html
View file @
f2c7316e
...
...
@@ -80,7 +80,7 @@
<input
nz-input
[(
ngModel
)]="
item
.
value
"
>
</nz-form-control>
<nz-form-control
nz-col
[
nzSpan
]="
3
"
>
<span
(
click
)="
deleteMacro1
(
i
)"
>
移除
</span>
<span
class=
"main-color cursor"
(
click
)="
deleteMacro1
(
i
)"
>
移除
</span>
</nz-form-control>
</div>
<div
nz-row
[
nzGutter
]="
24
"
>
...
...
@@ -128,7 +128,7 @@
<span>
"public"
</span>
</div>
<div
nz-col
[
nzSpan
]="
2
"
>
<span
class=
"cursor"
(
click
)="
deleteMacro2
(
i
)"
>
移除
</span>
<span
class=
"cursor
main-color
"
(
click
)="
deleteMacro2
(
i
)"
>
移除
</span>
</div>
</div>
<button
nz-button
(
click
)="
addMacro2
()"
nzType=
"default"
>
添加
</button>
...
...
src/main/webapp/app/modal/strategy/strategy.component.ts
View file @
f2c7316e
...
...
@@ -42,6 +42,7 @@ export class StrategyComponent implements OnInit {
}
initForm
()
{
this
.
tabNum
=
0
;
this
.
templateList
.
forEach
(
e
=>
{
e
.
checked
=
false
;
});
...
...
@@ -124,6 +125,18 @@ export class StrategyComponent implements OnInit {
this
.
validateForm
.
templates
=
tempArr
;
this
.
templatesResoure
=
tempArr
;
}
if
(
data
.
macros
){
//宏回显
let
macroArr
=
[];
macroArr
=
data
.
macros
.
map
(
e
=>
{
const
d
=
{
macro
:
e
.
macro
,
value
:
e
.
value
,
};
return
d
;
})
this
.
macroList1
=
macroArr
;
}
}
);
}
...
...
@@ -133,8 +146,7 @@ export class StrategyComponent implements OnInit {
if
(
han
.
test
(
this
.
validateForm
.
host
))
{
this
.
message
.
error
(
'模版真实名称不能输入中文'
);
return
false
;
}
;
};
return
true
;
}
...
...
src/main/webapp/app/overAll/template/discovery-list/discovery-list.component.html
View file @
f2c7316e
...
...
@@ -52,10 +52,13 @@
<td
class=
"cursor main-color"
>
<span
(
click
)="
goToTrigger
(
data
)"
>
{{data.triggersCount}}
</span>
</td>
<td>
{{data.stock}}
</td>
<td>
{{data.usedcount}}
</td>
<td>
{{data.lendcount}}
</td>
<td>
{{data.repaircount}}
</td>
<td>
{{data.key_}}
</td>
<td>
{{data.delay}}
</td>
<td>
{{data.type}}
</td>
<td>
<span
*
ngIf=
"data.status == 0"
>
启用
</span>
<span
*
ngIf=
"data.status == 1"
>
禁用
</span>
</td>
<td
class=
"main-color cursor"
>
<span
(
click
)="
showEditModal
(
data
)"
>
编辑
</span>
<span
(
click
)="
deleteDiscovery
(
data
)"
>
删除
</span>
...
...
src/main/webapp/app/overAll/template/template.component.html
View file @
f2c7316e
...
...
@@ -43,7 +43,7 @@
<th>
描述
</th>
<th>
自动发现
</th>
<th>
监控项
</th>
<th>
触发器
</th>
<th>
阈值
</th>
<th>
操作
</th>
</tr>
</thead>
...
...
@@ -77,7 +77,7 @@
<td
class=
"main-color cursor"
>
<span
(
click
)="
goToDiscovery
(
item
)"
>
{{item.discoveriesCount}}
</span>
</td>
<td>
{{item.itemCount}}
</td>
<td>
{{item.item
s
Count}}
</td>
<td>
{{item.triggersCount}}
</td>
</ng-container>
...
...
@@ -110,6 +110,8 @@
<span
>
{{item.name}}
</span>
</td>
<td>
{{item.description}}
</td>
<td>
{{item.itemsCount}}
</td>
<td>
{{item.triggersCount}}
</td>
<td
class=
"main-color cursor"
>
<span
(
click
)="
goToDiscovery
(
item
)"
>
{{item.discoveriesCount}}
</span>
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment