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
06fd5604
Commit
06fd5604
authored
Jan 17, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
bf05fdca
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
101 additions
and
16 deletions
+101
-16
analysis.service.ts
src/main/webapp/app/analysis/analysis.service.ts
+10
-0
resource-alarm.component.html
...app/analysis/resource-alarm/resource-alarm.component.html
+22
-2
resource-alarm.component.ts
...p/app/analysis/resource-alarm/resource-alarm.component.ts
+54
-2
app.constants.ts
src/main/webapp/app/app.constants.ts
+4
-2
app.module.ts
src/main/webapp/app/app.module.ts
+1
-1
basi-check.component.html
...ain/webapp/app/modal/basi-check/basi-check.component.html
+2
-2
discovery.component.html
src/main/webapp/app/modal/discovery/discovery.component.html
+2
-2
check-prototype.component.html
...late/modal/check-prototype/check-prototype.component.html
+2
-2
login.component.html
src/main/webapp/app/shared/login/login.component.html
+1
-1
logo-hongqiao.png
src/main/webapp/content/images/logo-hongqiao.png
+0
-0
util.js
src/main/webapp/content/javascript/jtopo/js/util.js
+3
-2
No files found.
src/main/webapp/app/analysis/analysis.service.ts
View file @
06fd5604
...
...
@@ -85,4 +85,14 @@ export class AnalysisService {
return
this
.
http
.
post
(
SERVER_API_URL
+
'/trigger/find'
,
data
);
}
//导出 常见问题top 10
commonProblemTopImport
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/statistics/commonProblemTop/getImport'
,
data
);
}
//导出 统计报告
statisticalReportImport
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/statistics/statisticalReport/getImport'
,
data
);
}
}
src/main/webapp/app/analysis/resource-alarm/resource-alarm.component.html
View file @
06fd5604
...
...
@@ -84,7 +84,16 @@
</div>
</div>
</nz-spin>
<h3
style=
"margin-top: 20px"
>
常见问题TOP10
</h3>
<div
nz-row
nzGutter=
"4"
style=
"margin: 20px 0"
>
<div
nz-col
nzSpan=
"19"
>
<h3>
常见问题TOP10
</h3>
</div>
<div
nz-col
nzSpan=
"3"
class=
"text-center"
>
<nz-spin
[
nzIndicator
]="
indicatorTemplate
"
nzTip=
'下载中...'
[
nzSpinning
]="
isDownload1
"
>
<button
(
click
)="
downLoadCommon
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-download"
></i>
下载
</button>
</nz-spin>
</div>
</div>
<nz-table
#
nzTable
[
nzData
]="
commonList
"
>
<thead>
<tr>
...
...
@@ -107,7 +116,16 @@
</ng-container>
</tbody>
</nz-table>
<h3
style=
"margin-top: 20px"
>
统计报告
</h3>
<div
nz-row
nzGutter=
"4"
style=
"margin: 20px 0"
>
<div
nz-col
nzSpan=
"19"
>
<h3>
统计报告
</h3>
</div>
<div
nz-col
nzSpan=
"3"
class=
"text-center"
>
<nz-spin
[
nzIndicator
]="
indicatorTemplate
"
nzTip=
'下载中...'
[
nzSpinning
]="
isDownload2
"
>
<button
(
click
)="
downLoadReport
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-download"
></i>
下载
</button>
</nz-spin>
</div>
</div>
<nz-table
#
nzTable1
[
nzData
]="
reportList
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
totalNum
"
[
nzPageIndex
]="
pageNum
"
[
nzPageSize
]="
pageCount
"
(
nzPageIndexChange
)="
change
($
event
)"
>
<thead>
<tr>
...
...
@@ -132,6 +150,8 @@
</ng-container>
</tbody>
</nz-table>
<ng-template
#
indicatorTemplate
><i
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 24px;"
></i>
</ng-template>
<nz-modal
[(
nzVisible
)]="
isVisiable
"
nzWidth=
"780"
[
nzTitle
]="
title
"
[
nzFooter
]="
null
"
(
nzOnCancel
)="
handleCancel
()"
>
<nz-table
#
nzTable
[
nzData
]="
modalList
"
[
nzFrontPagination
]="
true
"
>
<thead>
...
...
src/main/webapp/app/analysis/resource-alarm/resource-alarm.component.ts
View file @
06fd5604
...
...
@@ -4,6 +4,8 @@ import {NzMessageService} from 'ng-zorro-antd';
import
{
DatePipe
}
from
'@angular/common'
;
import
{
color
,
pageSize
}
from
'../../app.constants'
;
import
{
OverAllService
}
from
'../../overAll/overAll.service'
;
import
{
WorkService
}
from
'../../work/work.service'
;
import
{
CommonService
}
from
'../../shared/common/common.service'
;
@
Component
({
selector
:
'smart-resource-alarm'
,
...
...
@@ -51,8 +53,12 @@ export class ResourceAlarmComponent implements OnInit {
modalList
=
[];
constructor
(
private
analysisSer
:
AnalysisService
,
private
message
:
NzMessageService
,
private
datePipe
:
DatePipe
,
private
overAllSer
:
OverAllService
)
{
//下载
isDownload1
=
false
;
isDownload2
=
false
;
constructor
(
private
analysisSer
:
AnalysisService
,
private
message
:
NzMessageService
,
private
commonSer
:
CommonService
,
private
datePipe
:
DatePipe
,
private
overAllSer
:
OverAllService
,
private
workSer
:
WorkService
)
{
}
ngOnInit
()
{
...
...
@@ -369,4 +375,50 @@ export class ResourceAlarmComponent implements OnInit {
this
.
modalList
=
[];
this
.
isVisiable
=
false
;
}
//导出 常见问题top 10
downLoadCommon
(){
this
.
isDownload1
=
true
;
const
data
=
{
groupid
:
this
.
obj
.
groupid
,
startTime
:
this
.
obj
.
startTime
,
endTime
:
this
.
obj
.
endTime
,
priorityName
:
this
.
obj
.
priorityName
,
};
this
.
analysisSer
.
commonProblemTopImport
(
data
).
subscribe
(
(
res
)
=>
{
this
.
workSer
.
downloadTemplate
(
'commonProblemTop'
,
res
.
data
).
subscribe
(
(
data
)
=>
{
this
.
isDownload1
=
false
;
this
.
commonSer
.
downloadFile
(
'常见问题top10'
,
data
)
}
)
}
)
}
// 导出 统计报告
downLoadReport
(){
this
.
isDownload2
=
true
;
const
data
=
{
pageCount
:
this
.
pageCount
,
pageNum
:
this
.
pageNum
,
obj
:
{
startTime
:
this
.
obj
.
startTime
,
endTime
:
this
.
obj
.
endTime
,
priorityName
:
this
.
obj
.
priorityName
,
groupid
:
this
.
obj
.
groupid
,
}
};
this
.
analysisSer
.
statisticalReportImport
(
data
).
subscribe
(
(
res
)
=>
{
this
.
workSer
.
downloadTemplate
(
'statisticalReport'
,
res
.
data
).
subscribe
(
(
data
)
=>
{
this
.
isDownload2
=
false
;
this
.
commonSer
.
downloadFile
(
'统计报告'
,
data
)
}
)
}
)
}
}
src/main/webapp/app/app.constants.ts
View file @
06fd5604
...
...
@@ -16,5 +16,7 @@ export const color = {
black
:
'#6064'
};
//图片地址
export
const
imgUrl
=
"http://10.10.38.99:8282/file/icon/"
;
export
const
fileUrl
=
"http://10.10.38.99:8282/file/"
;
export
const
path
=
window
.
document
.
location
.
href
.
slice
();
export
const
imgUrl
=
path
+
"/file/icon/"
;
// export const fileUrl = "http://10.10.38.99:8282/file/";
export
const
fileUrl
=
path
+
"/file/"
;
src/main/webapp/app/app.module.ts
View file @
06fd5604
...
...
@@ -45,7 +45,7 @@ import {AppMainModule} from './app.main.module';
CommonModule
,
FormsModule
,
ReactiveFormsModule
,
RouterModule
.
forRoot
(
route
,
{
useHash
:
true
}
)
RouterModule
.
forRoot
(
route
)
],
declarations
:
[
ErrorComponent
,
...
...
src/main/webapp/app/modal/basi-check/basi-check.component.html
View file @
06fd5604
...
...
@@ -105,9 +105,9 @@
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
6
"
nzRequired
nzFor=
"delay"
>
数据更新间隔
</nz-form-label>
<nz-form-label
[
nzSpan
]="
6
"
nzRequired
nzFor=
"delay"
>
数据更新间隔
(秒)
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<input
id=
"delay"
name=
"delay"
type=
"text"
placeholder=
"输入数据更新间隔"
nz-input
<input
id=
"delay"
name=
"delay"
type=
"text"
placeholder=
"输入数据更新间隔
(秒)
"
nz-input
formControlName=
"delay"
>
<nz-form-explain
*
ngIf=
"validateForm.get('delay').dirty && validateForm.get('delay').errors"
>
请输入数据更新间隔!
</nz-form-explain>
</nz-form-control>
...
...
src/main/webapp/app/modal/discovery/discovery.component.html
View file @
06fd5604
...
...
@@ -75,9 +75,9 @@
</nz-form-item>
</ng-container>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
6
"
nzRequired
nzFor=
"delay"
>
更新间隔
</nz-form-label>
<nz-form-label
[
nzSpan
]="
6
"
nzRequired
nzFor=
"delay"
>
更新间隔
(秒)
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<input
name=
"delay"
type=
"text"
placeholder=
"输入数据更新间隔"
nz-input
formControlName=
"delay"
>
<input
name=
"delay"
type=
"text"
placeholder=
"输入数据更新间隔
(秒)
"
nz-input
formControlName=
"delay"
>
<nz-form-explain
*
ngIf=
"validateForm.get('delay').dirty && validateForm.get('delay').errors"
>
请输入更新间隔!
</nz-form-explain>
</nz-form-control>
</nz-form-item>
...
...
src/main/webapp/app/overAll/template/modal/check-prototype/check-prototype.component.html
View file @
06fd5604
...
...
@@ -94,9 +94,9 @@
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
6
"
nzRequired
nzFor=
"delay"
>
数据更新间隔
</nz-form-label>
<nz-form-label
[
nzSpan
]="
6
"
nzRequired
nzFor=
"delay"
>
数据更新间隔
(秒)
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<input
id=
"delay"
name=
"delay"
type=
"text"
placeholder=
"输入数据更新间隔"
nz-input
<input
id=
"delay"
name=
"delay"
type=
"text"
placeholder=
"输入数据更新间隔
(秒)
"
nz-input
formControlName=
"delay"
>
<nz-form-explain
*
ngIf=
"validateForm.get('delay').dirty && validateForm.get('delay').errors"
>
请输入数据更新间隔!
...
...
src/main/webapp/app/shared/login/login.component.html
View file @
06fd5604
<div
class=
"background"
>
<div
class=
"login-center"
>
<div
class=
"login-logo"
>
<img
src=
"../../../content/images/logo
.png"
alt=
"智能监控平台
"
>
<img
src=
"../../../content/images/logo
-hongqiao.png"
alt=
"运维管理系统
"
>
</div>
<form
nz-form
[
formGroup
]="
validateForm
"
class=
"login-form"
(
ngSubmit
)="
submitForm
()"
>
<nz-form-item>
...
...
src/main/webapp/content/images/logo-hongqiao.png
0 → 100644
View file @
06fd5604
13 KB
src/main/webapp/content/javascript/jtopo/js/util.js
View file @
06fd5604
...
...
@@ -17,9 +17,10 @@ var SysUtil = {
}
}
// url根路径
var
rootPath
=
SysUtil
.
getRootPath
();
// var rootPath = "http://10.10.38.99:8282";
var
rootPath
=
window
.
document
.
location
.
href
;
// var topoImgPath = 'javascript/jtopo/img/';
var
topoImgPath
=
'http://10.10.38.99:8282
/file/icon/'
;
var
topoImgPath
=
rootPath
+
'
/file/icon/'
;
/*
* 生成uuid算法,碰撞率低于1/2^^122
...
...
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