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
6c625898
Commit
6c625898
authored
Jan 19, 2020
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug update
parent
dd985e2e
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
83 additions
and
57 deletions
+83
-57
b-count.component.ts
src/main/webapp/app/analysis/b-count/b-count.component.ts
+1
-0
warnging-rule.component.html
...-warning/modal/warnging-rule/warnging-rule.component.html
+17
-3
warnging-rule.component.ts
...ly-warning/modal/warnging-rule/warnging-rule.component.ts
+34
-5
alarm-modal.component.html
...n/webapp/app/modal/alarm-modal/alarm-modal.component.html
+2
-2
basic-edit.component.html
...ain/webapp/app/modal/basic-edit/basic-edit.component.html
+1
-1
basic-edit.component.ts
src/main/webapp/app/modal/basic-edit/basic-edit.component.ts
+2
-2
modify-password.component.html
.../app/modal/modify-password/modify-password.component.html
+2
-2
modify-password.component.ts
...pp/app/modal/modify-password/modify-password.component.ts
+3
-2
basic.component.html
src/main/webapp/app/overAll/basic/basic.component.html
+1
-1
basic.component.ts
src/main/webapp/app/overAll/basic/basic.component.ts
+3
-2
create-track-info.component.html
.../modal/create-track-info/create-track-info.component.html
+0
-8
create-track-info.component.ts
...er/modal/create-track-info/create-track-info.component.ts
+0
-2
track-info.component.ts
.../project-manager/modal/track-info/track-info.component.ts
+9
-7
login.component.ts
src/main/webapp/app/shared/login/login.component.ts
+1
-4
change-manage.component.html
.../system-change/change-manage/change-manage.component.html
+1
-1
change-create.component.ts
...tem-change/modal/change-create/change-create.component.ts
+4
-4
change-verity.component.ts
...tem-change/modal/change-verity/change-verity.component.ts
+1
-1
power.component.html
src/main/webapp/app/system/power/power.component.html
+1
-10
No files found.
src/main/webapp/app/analysis/b-count/b-count.component.ts
View file @
6c625898
...
...
@@ -100,6 +100,7 @@ export class BCountComponent implements OnInit {
changeService
()
{
this
.
isLoading
=
true
;
this
.
getInfo
();
this
.
getRunTime
();
}
//系统可用性, 监测点, 用户统计
...
...
src/main/webapp/app/early-warning/modal/warnging-rule/warnging-rule.component.html
View file @
6c625898
...
...
@@ -54,10 +54,24 @@
<nz-form-item
nzFlex
>
<nz-form-label
[
nzSpan
]="
6
"
>
检测对象
</nz-form-label>
<nz-form-control
[
nzSpan
]="
18
"
>
<nz-select
style=
"width:
20
0px;"
formControlName=
"resourceGroupType"
>
<nz-form-control
[
nzSpan
]="
9
"
>
<nz-select
style=
"width:
15
0px;"
formControlName=
"resourceGroupType"
>
<nz-option
nzLabel=
"按资源分组"
nzValue=
"1"
></nz-option>
<nz-option
nzLabel=
"按设备类型分组"
nzValue=
"2"
></nz-option>
<nz-option
nzLabel=
"按设备类别"
nzValue=
"2"
></nz-option>
</nz-select>
</nz-form-control>
<nz-form-control
*
ngIf=
"validateForm.value.resourceGroupType == '1'"
[
nzSpan
]="
9
"
>
<nz-select
style=
"width: 150px;"
formControlName=
"resourceGroupValue"
nzPlaceHolder=
"资源分组"
>
<ng-container
*
ngFor=
"let item of groupList"
>
<nz-option
[
nzLabel
]="
item
.
name
"
[
nzValue
]="
item
.
groupid
"
></nz-option>
</ng-container>
</nz-select>
</nz-form-control>
<nz-form-control
*
ngIf=
"validateForm.value.resourceGroupType == '2'"
[
nzSpan
]="
9
"
>
<nz-select
style=
"width: 150px;"
formControlName=
"resourceGroupValue"
nzPlaceHolder=
"设备类型"
>
<ng-container
*
ngFor=
"let item of equipmentList"
>
<nz-option
[
nzLabel
]="
item
.
equipmentType
"
[
nzValue
]="
item
.
equipmentTypeId
"
></nz-option>
</ng-container>
</nz-select>
</nz-form-control>
</nz-form-item>
...
...
src/main/webapp/app/early-warning/modal/warnging-rule/warnging-rule.component.ts
View file @
6c625898
...
...
@@ -3,6 +3,7 @@ import {EarlyWarningService} from '../../earlyWarning.service';
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
FormBuilder
,
FormGroup
,
Validators
}
from
'@angular/forms'
;
import
{
warning_type
}
from
'../../early.constants'
;
import
{
OverAllService
}
from
'../../../overAll/overAll.service'
;
@
Component
({
selector
:
'smart-warnging-rule'
,
...
...
@@ -24,12 +25,18 @@ export class WarngingRuleComponent implements OnInit {
newestRemark
;
validateForm
:
FormGroup
;
groupList
=
[];
equipmentList
=
[];
constructor
(
private
earlySer
:
EarlyWarningService
,
private
message
:
NzMessageService
,
private
overAllSer
:
OverAllService
,
private
fb
:
FormBuilder
,)
{
}
ngOnInit
()
{
this
.
initForm
();
this
.
getGroup
();
this
.
getType
();
}
initForm
()
{
...
...
@@ -39,15 +46,37 @@ export class WarngingRuleComponent implements OnInit {
cycle
:
[
'1'
],
content
:
[
null
],
fileId
:
[
null
],
resourceGroupType
:
[
'1'
],
resourceGroupValue
:
[
null
],
resourceWarningLevel
:
[
'1'
],
resourceDays
:
[
null
],
resourceSymbol
:
[
null
],
resourceDays
:
[
null
],
resourceSymbol
:
[
'1'
],
resourceWarningTims
:
[
null
],
businessDataType
:
[
null
],
businessDays
:
[
null
],
businessWarningSymbol
:
[
null
],
businessWarningValue
:
[
null
],
businessThresholdSymbol
:
[
null
],
businessThresholdValue
:
[
null
],
jobDataType
:
[
null
],
jobUntreatedSymbol
:
[
null
],
jobUntreatedDays
:
[
null
],
businessDays
:
[
null
],
businessWarningSymbol
:
[
'1'
],
businessWarningValue
:
[
null
],
businessThresholdSymbol
:
[
'1'
],
businessThresholdValue
:
[
null
],
jobDataType
:
[
'1'
],
jobUntreatedSymbol
:
[
'1'
],
jobUntreatedDays
:
[
null
],
});
}
//获取资源分组
getGroup
()
{
this
.
overAllSer
.
getEditGroups
(
0
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
groupList
=
res
.
data
;
}
}
);
}
//获取设备类型
getType
()
{
this
.
overAllSer
.
findType
().
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
equipmentList
=
res
.
data
;
}
}
);
}
//新增
showAddModal
(
title
)
{
this
.
modal
.
isVisible
=
true
;
...
...
src/main/webapp/app/modal/alarm-modal/alarm-modal.component.html
View file @
6c625898
...
...
@@ -25,8 +25,8 @@
<ng-template
#
nzTreeTemplate
let-node
>
<span
class=
"custom-node"
draggable=
"true"
aria-grabbed=
"true"
[
class
.
active
]="
node
.
isSelected
"
>
<label
[(
ngModel
)]="
node
.
isChecked
"
nz-checkbox
*
ngIf=
"node.level == 0"
(
click
)="
selectCheckTreeGroup
(
node
)"
>
{{node.title}}
</label>
<label
[(
ngModel
)]="
node
.
isChecked
"
*
ngIf=
"node.level == 0"
>
{{node.title}}
</label>
<label
[(
ngModel
)]="
node
.
isChecked
"
[
nzDisabled
]="
node
.
origin
.
disabled
"
(
click
)="
selectCheckTree
(
node
)"
*
ngIf=
"node.level == 1"
nz-checkbox
>
{{node.title}}
</label>
...
...
src/main/webapp/app/modal/basic-edit/basic-edit.component.html
View file @
6c625898
...
...
@@ -28,7 +28,7 @@
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzRequired
nzFor=
"showName"
>
显示名
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<input
type=
"text"
nz-input
name=
"showName"
placeholder=
"显示名"
[(
ngModel
)]="
validateForm
.
name
"
>
<input
type=
"text"
maxlength=
"100"
nz-input
name=
"showName"
placeholder=
"显示名"
[(
ngModel
)]="
validateForm
.
name
"
>
</nz-form-control>
</nz-form-item>
...
...
src/main/webapp/app/modal/basic-edit/basic-edit.component.ts
View file @
6c625898
...
...
@@ -212,8 +212,8 @@ export class BasicEditComponent implements OnInit {
this
.
message
.
info
(
'请选择二级类型'
);
return
false
;
}
if
(
!
this
.
validateForm
.
name
)
{
this
.
message
.
info
(
'请输入显示名'
);
if
(
!
this
.
validateForm
.
name
||
this
.
validateForm
.
name
.
length
>
100
)
{
this
.
message
.
info
(
'请输入显示名
,且不超过100个字符
'
);
return
false
;
}
if
(
!
this
.
validateForm
.
host
)
{
...
...
src/main/webapp/app/modal/modify-password/modify-password.component.html
View file @
6c625898
...
...
@@ -16,7 +16,7 @@
<input
type=
"password"
nz-input
formControlName=
"newPassword"
placeholder=
"密码"
>
<nz-form-explain
*
ngIf=
"validateForm.get('newPassword').dirty && validateForm.get('newPassword').errors"
>
新密码必须包含数字、英文字母,长度8-20位
新密码必须
英文字母开头,
包含数字、英文字母,长度8-20位
</nz-form-explain>
</nz-form-control>
</nz-form-item>
...
...
@@ -26,7 +26,7 @@
<input
type=
"password"
nz-input
formControlName=
"realPassword"
placeholder=
"确认密码"
>
<nz-form-explain
*
ngIf=
"validateForm.get('realPassword').dirty && validateForm.get('realPassword').errors"
>
新密码必须包含数字、英文字母,长度8-20位
新密码必须
英文字母开头,
包含数字、英文字母,长度8-20位
</nz-form-explain>
</nz-form-control>
</nz-form-item>
...
...
src/main/webapp/app/modal/modify-password/modify-password.component.ts
View file @
6c625898
...
...
@@ -47,6 +47,7 @@ export class ModifyPasswordComponent implements OnInit {
this
.
message
.
error
(
'两次输入密码不一致'
);
return
false
;
}
this
.
isOkLoading
=
true
;
this
.
getOldEncodepassword
();
}
...
...
@@ -107,8 +108,8 @@ export class ModifyPasswordComponent implements OnInit {
initForm
()
{
this
.
validateForm
=
this
.
fb
.
group
({
oldPassword
:
[
null
,
[
Validators
.
required
]],
newPassword
:
[
null
,
[
Validators
.
required
,
Validators
.
minLength
(
8
),
Validators
.
maxLength
(
20
)]],
realPassword
:
[
null
,
[
Validators
.
required
,
Validators
.
minLength
(
8
),
Validators
.
maxLength
(
20
)]],
newPassword
:
[
null
,
[
Validators
.
required
,
Validators
.
pattern
(
/^
(?=[
a-zA-Z
]
+
\d
+
)\w{8,20}
$/
)]],
realPassword
:
[
null
,
[
Validators
.
required
,
Validators
.
pattern
(
/^
(?=[
a-zA-Z
]
+
\d
+
)\w{8,20}
$/
)]],
});
}
}
src/main/webapp/app/overAll/basic/basic.component.html
View file @
6c625898
...
...
@@ -29,7 +29,7 @@
<nz-select
*
ngIf=
"selectedValue == 'type'"
style=
"width: 200px;"
nzPlaceHolder=
"所有设备类型"
nzShowSearch
nzAllowClear
(
ngModelChange
)="
changeEquiment
($
event
)"
[(
ngModel
)]="
equipmentTypeid
"
>
<nz-option
nzLabel=
"全部"
[
nzValue
]="
null
"
></nz-option>
<ng-container
*
ngFor=
"let item of
group
List"
>
<ng-container
*
ngFor=
"let item of
equipment
List"
>
<nz-option
[
nzLabel
]="
item
.
equipmentType
"
[
nzValue
]="
item
.
equipmentTypeId
"
></nz-option>
</ng-container>
</nz-select>
...
...
src/main/webapp/app/overAll/basic/basic.component.ts
View file @
6c625898
...
...
@@ -86,6 +86,7 @@ export class BasicComponent implements OnInit {
selectedValue
=
'group'
;
groupList
=
[];
//分组列表
equipmentList
=
[];
//设备列表
groupid
=
null
;
equipmentTypeid
=
null
;
...
...
@@ -189,7 +190,7 @@ export class BasicComponent implements OnInit {
(
res
)
=>
{
this
.
loading
=
false
;
if
(
res
.
errCode
==
10000
)
{
this
.
group
List
=
res
.
data
;
this
.
equipment
List
=
res
.
data
;
this
.
search
();
}
}
...
...
@@ -473,7 +474,7 @@ export class BasicComponent implements OnInit {
let
opr
=
item
.
status
==
1
?
'开启'
:
'停止'
;
this
.
modalService
.
confirm
({
nzTitle
:
'监控'
,
nzContent
:
`确定
${
opr
}
监控设备
${
item
.
name
}
`
,
nzContent
:
`确定
${
opr
}
该监控?
`
,
nzOkText
:
'确定'
,
nzCancelText
:
'取消'
,
nzOnOk
:
()
=>
{
...
...
src/main/webapp/app/project-manager/modal/create-track-info/create-track-info.component.html
View file @
6c625898
<nz-modal
[
nzMaskClosable
]="
false
"
[
nzWidth
]="
480
"
[(
nzVisible
)]="
isVisible
"
[
nzTitle
]="
title
"
(
nzOnOk
)="
handleOk
()"
(
nzOnCancel
)="
handleCancel
()"
[
nzOkLoading
]="
isOkLoading
"
>
<form
[
formGroup
]="
validateForm
"
nz-form
>
<nz-form-item
*
ngIf=
"!title.includes('跟踪信息')"
>
<nz-form-label
[
nzSm
]="
6
"
[
nzXs
]="
24
"
nzRequired
nzFor=
"createUserName"
>
操作人
</nz-form-label>
<nz-form-control
[
nzSm
]="
14
"
[
nzXs
]="
24
"
>
<input
disabled
nz-input
formControlName=
"createUserName"
style=
"width: 70%;display: inline-block"
id=
"createUserName"
placeholder=
"操作人"
>
<button
nz-button
nzType=
"primary"
(
click
)="
showPeoplemodal
()"
>
选择
</button>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSm
]="
6
"
[
nzXs
]="
24
"
nzRequired
nzFor=
"msg"
>
跟踪内容
</nz-form-label>
<nz-form-control
[
nzSm
]="
14
"
[
nzXs
]="
24
"
>
...
...
src/main/webapp/app/project-manager/modal/create-track-info/create-track-info.component.ts
View file @
6c625898
...
...
@@ -38,8 +38,6 @@ export class CreateTrackInfoComponent implements OnInit {
initForm
()
{
this
.
validateForm
=
this
.
fb
.
group
({
createUserId
:
[
null
],
createUserName
:
[
null
],
msg
:
[
null
,
[
Validators
.
required
]],
componentId
:
[
null
],
maintainType
:
[
null
],
...
...
src/main/webapp/app/project-manager/modal/track-info/track-info.component.ts
View file @
6c625898
...
...
@@ -15,7 +15,7 @@ import {CreateTrackInfoComponent} from '../create-track-info/create-track-info.c
})
export
class
TrackInfoComponent
implements
OnInit
{
@
Input
()
maintainType
;
@
Input
()
sysChangeId
;
@
Input
()
sysChangeId
;
ååå
@
Input
()
componentId
;
@
Input
()
title
;
@
ViewChild
(
'smartCreateTrackInfo'
)
smartCreateTrackInfo
:
CreateTrackInfoComponent
;
...
...
@@ -54,7 +54,10 @@ export class TrackInfoComponent implements OnInit {
this
.
componentId
=
id
;
this
.
getInvoList
();
}
if
(
this
.
title
.
includes
(
'变更跟踪信息'
))
this
.
getChangeList
();
if
(
this
.
title
.
includes
(
'变更跟踪信息'
)){
this
.
sysChangeId
=
id
;
this
.
getChangeList
();
}
}
//跟踪信息
...
...
@@ -109,11 +112,10 @@ export class TrackInfoComponent implements OnInit {
this
.
page
.
loading
=
true
;
this
.
systemSer
.
findMsg
(
this
.
sysChangeId
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
data
)
{
this
.
warnList
=
res
.
data
;
// this.page.totalNum = res.data.totalNum;
}
if
(
res
.
errCode
==
10000
&&
res
.
data
)
{
this
.
warnList
=
res
.
data
;
console
.
log
(
this
.
warnList
);
// this.page.totalNum = res.data.totalNum;
}
this
.
page
.
loading
=
false
;
}
...
...
src/main/webapp/app/shared/login/login.component.ts
View file @
6c625898
...
...
@@ -118,10 +118,6 @@ export class JhiLoginModalComponent implements OnInit {
//登录
login
()
{
if
(
this
.
validateForm
.
value
.
loginName
==
'monitor'
)
{
window
.
location
.
href
=
'http://pm.sdx.sh.cn/operation/teach-task!screen'
;
return
;
}
this
.
loginService
.
login
(
this
.
validateForm
.
value
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
getUserInfo
();
...
...
@@ -146,6 +142,7 @@ export class JhiLoginModalComponent implements OnInit {
this
.
userInfo
.
userId
=
res
.
data
.
id
;
this
.
userInfo
.
gender
=
res
.
data
.
gender
;
this
.
userInfo
.
roles
=
res
.
data
.
roles
;
this
.
userInfo
.
isAdmin
=
res
.
data
.
isAdmin
;
this
.
getOrgInfo
();
}
);
...
...
src/main/webapp/app/system-change/change-manage/change-manage.component.html
View file @
6c625898
...
...
@@ -113,7 +113,7 @@
<span
(
click
)="
handleEditModal
(
data
)"
*
ngIf=
"data.status == 4 || data.status == 1"
>
编辑
</span>
<span
(
click
)="
showChangeModal
(
data
)"
*
ngIf=
"(data.status == 2 && userInfo.userId == data.verifyUserId)"
>
审核
</span>
<span
(
click
)="
showChangeModal
(
data
)"
*
ngIf=
"data.status == 6"
>
处理
</span>
<span
*
ngIf=
"data.status
!= 2
"
class=
"handle-delete"
(
click
)="
deleteChange
(
data
)"
<span
*
ngIf=
"data.status
== 1
"
class=
"handle-delete"
(
click
)="
deleteChange
(
data
)"
>
删除
</span>
</td>
</tr>
...
...
src/main/webapp/app/system-change/modal/change-create/change-create.component.ts
View file @
6c625898
...
...
@@ -62,12 +62,12 @@ export class ChangeCreateComponent implements OnInit {
classifyId
:
[
null
,
[
Validators
.
required
]],
status
:
[
'1'
],
title
:
[
'变更'
],
changeTime
:
[
null
],
changeTime
:
[
null
,
[
Validators
.
required
]
],
projectId
:
[
null
],
projectName
:
[
null
],
verifyUserId
:
[
null
],
verifyUserName
:
[
null
],
description
:
[
null
,[
Validators
.
required
]],
verifyUserId
:
[
null
,
[
Validators
.
required
]
],
verifyUserName
:
[
null
,
[
Validators
.
required
]
],
description
:
[
null
,
[
Validators
.
required
]],
});
}
...
...
src/main/webapp/app/system-change/modal/change-verity/change-verity.component.ts
View file @
6c625898
...
...
@@ -77,7 +77,7 @@ export class ChangeVerityComponent implements OnInit {
this
.
id
=
id
;
this
.
modal
.
isVisible
=
true
;
this
.
getDetail
();
this
.
getMsg
(
);
this
.
smartTrackInfo
.
diffResource
(
this
.
id
);
}
//查询变更详情
...
...
src/main/webapp/app/system/power/power.component.html
View file @
6c625898
...
...
@@ -34,8 +34,6 @@
<tr>
<th>
角色名称
</th>
<th>
说明
</th>
<!--<th>权限模块</th>-->
<!--<th>资源权限</th>-->
<th>
操作
</th>
</tr>
</thead>
...
...
@@ -43,18 +41,11 @@
<tr
*
ngFor=
"let data of basicTable.data"
>
<td>
{{data.name}}
</td>
<td>
{{data.comment}}
</td>
<!--<td>{{data.key3}}</td>-->
<!--<td>{{data.key4}}</td>-->
<!--<td>-->
<!--<ng-container *ngIf="data.status == 0">-->
<!--<i class="anticon anticon-check"></i>-->
<!--</ng-container>-->
<!--</td>-->
<td
class=
"handle main-color"
>
<span
(
click
)="
grantUser
(
data
)"
>
授予用户
</span>
<!--<span (click)="lookRole(data)">查看</span>-->
<span
(
click
)="
showEditModal
(
data
)"
>
编辑
</span>
<span
class=
"handle-delete"
(
click
)="
deleteRole
(
data
)"
>
删除
</span>
<span
*
ngIf=
"isAdmin == 1"
class=
"handle-delete"
(
click
)="
deleteRole
(
data
)"
>
删除
</span>
</td>
</tr>
</tbody>
...
...
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