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
0d1891db
Commit
0d1891db
authored
Jun 10, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新拓扑图字体
parent
5974dc75
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
7 additions
and
114 deletions
+7
-114
app.component.ts
src/main/webapp/app/app.component.ts
+2
-3
home.component.ts
src/main/webapp/app/home/home.component.ts
+1
-1
warn-list.component.html
src/main/webapp/app/modal/warn-list/warn-list.component.html
+0
-4
ne-topology.component.ts
...bapp/app/netTopology/ne-topology/ne-topology.component.ts
+2
-2
index.ts
src/main/webapp/app/shared/index.ts
+0
-3
shared.module.ts
src/main/webapp/app/shared/shared.module.ts
+0
-2
account.model.ts
src/main/webapp/app/shared/user/account.model.ts
+0
-12
user.model.ts
src/main/webapp/app/shared/user/user.model.ts
+0
-45
user.service.ts
src/main/webapp/app/shared/user/user.service.ts
+0
-40
index.html
src/main/webapp/index.html
+1
-1
tsconfig.json
tsconfig.json
+1
-1
No files found.
src/main/webapp/app/app.component.ts
View file @
0d1891db
...
@@ -12,8 +12,7 @@ export class AppComponent {
...
@@ -12,8 +12,7 @@ export class AppComponent {
document
.
body
.
ondrop
=
(
event
)
=>
{
document
.
body
.
ondrop
=
(
event
)
=>
{
event
.
preventDefault
();
event
.
preventDefault
();
event
.
stopPropagation
();
event
.
stopPropagation
();
}
};
console
.
log
(
"智能运行监管平台:v2.0.1 update By 2019-04-01"
)
console
.
log
(
"智能运行监管平台:v2.0.7 update By 2019-06-10"
)
}
}
}
}
src/main/webapp/app/home/home.component.ts
View file @
0d1891db
import
{
AfterViewInit
,
Component
,
ElementRef
,
OnInit
,
Renderer2
,
ViewChild
}
from
'@angular/core'
;
import
{
AfterViewInit
,
Component
,
ElementRef
,
OnInit
,
Renderer2
,
ViewChild
}
from
'@angular/core'
;
import
{
JhiEventManager
}
from
'ng-jhipster'
;
import
{
JhiEventManager
}
from
'ng-jhipster'
;
import
{
Account
,
Principal
}
from
'../shared'
;
import
{
Principal
}
from
'../shared'
;
import
{
OverAllService
}
from
'../overAll/overAll.service'
;
import
{
OverAllService
}
from
'../overAll/overAll.service'
;
import
{
color
,
pageSize
}
from
'../app.constants'
;
import
{
color
,
pageSize
}
from
'../app.constants'
;
import
{
AlarmService
}
from
'../alarm/alarm.service'
;
import
{
AlarmService
}
from
'../alarm/alarm.service'
;
...
...
src/main/webapp/app/modal/warn-list/warn-list.component.html
View file @
0d1891db
...
@@ -5,10 +5,8 @@
...
@@ -5,10 +5,8 @@
<th>
级别
</th>
<th>
级别
</th>
<th>
名称
</th>
<th>
名称
</th>
<th
nzWidth=
"15%"
>
告警信息
</th>
<th
nzWidth=
"15%"
>
告警信息
</th>
<th>
类别
</th>
<th>
资源分组
</th>
<th>
资源分组
</th>
<th>
持续时间
</th>
<th>
持续时间
</th>
<!--<th>产生事件</th>-->
<th>
状态
</th>
<th>
状态
</th>
<th
style=
"text-align: center"
>
发送记录
</th>
<th
style=
"text-align: center"
>
发送记录
</th>
</tr>
</tr>
...
@@ -24,10 +22,8 @@
...
@@ -24,10 +22,8 @@
</td>
</td>
<td>
{{data.hostname}}
</td>
<td>
{{data.hostname}}
</td>
<td>
{{data.description}}
</td>
<td>
{{data.description}}
</td>
<td>
{{data.equipmentType}}
</td>
<td>
{{data.groupname}}
</td>
<td>
{{data.groupname}}
</td>
<td>
{{data.continuedTime}}
</td>
<td>
{{data.continuedTime}}
</td>
<!--<td>{{data.eventid}}</td>-->
<td>
<td>
<ng-container
*
ngIf=
"data.r_clock"
><span
class=
"color-green"
><i
class=
"anticon anticon-check-square-o"
></i></span>
</ng-container>
<ng-container
*
ngIf=
"data.r_clock"
><span
class=
"color-green"
><i
class=
"anticon anticon-check-square-o"
></i></span>
</ng-container>
<ng-container
*
ngIf=
"!data.r_clock"
><span
class=
"color-red"
>
<i
class=
"anticon anticon-warning"
></i></span></ng-container>
<ng-container
*
ngIf=
"!data.r_clock"
><span
class=
"color-red"
>
<i
class=
"anticon anticon-warning"
></i></span></ng-container>
...
...
src/main/webapp/app/netTopology/ne-topology/ne-topology.component.ts
View file @
0d1891db
...
@@ -398,13 +398,13 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
...
@@ -398,13 +398,13 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
// }
// }
if
(
e1
.
status
==
1
){
if
(
e1
.
status
==
1
){
e2
.
alarm
=
"危险"
;
e2
.
alarm
=
"危险"
;
e2
.
fontColor
=
'0,0,0'
;
//
e2.fontColor='0,0,0';
e2
.
alarmColor
=
'255,153,18'
;
e2
.
alarmColor
=
'255,153,18'
;
e2
.
alarmAlpha
=
0.9
;
e2
.
alarmAlpha
=
0.9
;
}
}
if
(
e1
.
status
==
2
){
if
(
e1
.
status
==
2
){
e2
.
alarm
=
"故障"
;
e2
.
alarm
=
"故障"
;
e2
.
fontColor
=
'0,0,0'
;
//
e2.fontColor='0,0,0';
e2
.
alarmAlpha
=
0.9
;
e2
.
alarmAlpha
=
0.9
;
}
}
}
}
...
...
src/main/webapp/app/shared/index.ts
View file @
0d1891db
...
@@ -11,9 +11,6 @@ export * from './auth/has-any-authority.directive';
...
@@ -11,9 +11,6 @@ export * from './auth/has-any-authority.directive';
export
*
from
'./auth/user-route-access-service'
;
export
*
from
'./auth/user-route-access-service'
;
export
*
from
'./login/login.component'
;
export
*
from
'./login/login.component'
;
export
*
from
'./login/login.service'
;
export
*
from
'./login/login.service'
;
export
*
from
'./user/account.model'
;
export
*
from
'./user/user.model'
;
export
*
from
'./user/user.service'
;
export
*
from
'./model/request-util'
;
export
*
from
'./model/request-util'
;
export
*
from
'./model/base-entity'
;
export
*
from
'./model/base-entity'
;
export
*
from
'./shared-libs.module'
;
export
*
from
'./shared-libs.module'
;
...
...
src/main/webapp/app/shared/shared.module.ts
View file @
0d1891db
...
@@ -9,7 +9,6 @@ import {
...
@@ -9,7 +9,6 @@ import {
CSRFService
,
CSRFService
,
AuthServerProvider
,
AuthServerProvider
,
AccountService
,
AccountService
,
UserService
,
StateStorageService
,
StateStorageService
,
LoginService
,
LoginService
,
JhiLoginModalComponent
,
JhiLoginModalComponent
,
...
@@ -39,7 +38,6 @@ import {DisableControlDirective} from './common/disable-control.directive';
...
@@ -39,7 +38,6 @@ import {DisableControlDirective} from './common/disable-control.directive';
Principal
,
Principal
,
CSRFService
,
CSRFService
,
AuthServerProvider
,
AuthServerProvider
,
UserService
,
DatePipe
,
DatePipe
,
EmitService
,
EmitService
,
NgbActiveModal
,
NgbActiveModal
,
...
...
src/main/webapp/app/shared/user/account.model.ts
deleted
100644 → 0
View file @
5974dc75
export
class
Account
{
constructor
(
public
activated
:
boolean
,
public
authorities
:
string
[],
public
email
:
string
,
public
firstName
:
string
,
public
langKey
:
string
,
public
lastName
:
string
,
public
login
:
string
,
public
imageUrl
:
string
)
{
}
}
src/main/webapp/app/shared/user/user.model.ts
deleted
100644 → 0
View file @
5974dc75
export
class
User
{
public
id
?:
any
;
public
login
?:
string
;
public
firstName
?:
string
;
public
lastName
?:
string
;
public
email
?:
string
;
public
activated
?:
Boolean
;
public
langKey
?:
string
;
public
authorities
?:
any
[];
public
createdBy
?:
string
;
public
createdDate
?:
Date
;
public
lastModifiedBy
?:
string
;
public
lastModifiedDate
?:
Date
;
public
password
?:
string
;
constructor
(
id
?:
any
,
login
?:
string
,
firstName
?:
string
,
lastName
?:
string
,
email
?:
string
,
activated
?:
Boolean
,
langKey
?:
string
,
authorities
?:
any
[],
createdBy
?:
string
,
createdDate
?:
Date
,
lastModifiedBy
?:
string
,
lastModifiedDate
?:
Date
,
password
?:
string
)
{
this
.
id
=
id
?
id
:
null
;
this
.
login
=
login
?
login
:
null
;
this
.
firstName
=
firstName
?
firstName
:
null
;
this
.
lastName
=
lastName
?
lastName
:
null
;
this
.
email
=
email
?
email
:
null
;
this
.
activated
=
activated
?
activated
:
false
;
this
.
langKey
=
langKey
?
langKey
:
null
;
this
.
authorities
=
authorities
?
authorities
:
null
;
this
.
createdBy
=
createdBy
?
createdBy
:
null
;
this
.
createdDate
=
createdDate
?
createdDate
:
null
;
this
.
lastModifiedBy
=
lastModifiedBy
?
lastModifiedBy
:
null
;
this
.
lastModifiedDate
=
lastModifiedDate
?
lastModifiedDate
:
null
;
this
.
password
=
password
?
password
:
null
;
}
}
src/main/webapp/app/shared/user/user.service.ts
deleted
100644 → 0
View file @
5974dc75
import
{
Injectable
}
from
'@angular/core'
;
import
{
HttpClient
,
HttpResponse
}
from
'@angular/common/http'
;
import
{
Observable
}
from
'rxjs/Observable'
;
import
{
SERVER_API_URL
}
from
'../../app.constants'
;
import
{
User
}
from
'./user.model'
;
import
{
createRequestOption
}
from
'../model/request-util'
;
@
Injectable
()
export
class
UserService
{
private
resourceUrl
=
SERVER_API_URL
+
'api/users'
;
constructor
(
private
http
:
HttpClient
)
{
}
create
(
user
:
User
):
Observable
<
HttpResponse
<
User
>>
{
return
this
.
http
.
post
<
User
>
(
this
.
resourceUrl
,
user
,
{
observe
:
'response'
});
}
update
(
user
:
User
):
Observable
<
HttpResponse
<
User
>>
{
return
this
.
http
.
put
<
User
>
(
this
.
resourceUrl
,
user
,
{
observe
:
'response'
});
}
find
(
login
:
string
):
Observable
<
HttpResponse
<
User
>>
{
return
this
.
http
.
get
<
User
>
(
`
${
this
.
resourceUrl
}
/
${
login
}
`
,
{
observe
:
'response'
});
}
query
(
req
?:
any
):
Observable
<
HttpResponse
<
User
[]
>>
{
const
options
=
createRequestOption
(
req
);
return
this
.
http
.
get
<
User
[]
>
(
this
.
resourceUrl
,
{
params
:
options
,
observe
:
'response'
});
}
delete
(
login
:
string
):
Observable
<
HttpResponse
<
any
>>
{
return
this
.
http
.
delete
(
`
${
this
.
resourceUrl
}
/
${
login
}
`
,
{
observe
:
'response'
});
}
authorities
():
Observable
<
string
[]
>
{
return
this
.
http
.
get
<
string
[]
>
(
SERVER_API_URL
+
'api/users/authorities'
);
}
}
src/main/webapp/index.html
View file @
0d1891db
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<base
href=
"./"
/>
<base
href=
"./"
/>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title>
雁南
监狱智能运维管理系统
</title>
<title>
高淳
监狱智能运维管理系统
</title>
<meta
name=
"description"
content=
""
>
<meta
name=
"description"
content=
""
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"theme-color"
content=
"#000000"
>
<meta
name=
"theme-color"
content=
"#000000"
>
...
...
tsconfig.json
View file @
0d1891db
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
"noImplicitAny"
:
false
,
"noImplicitAny"
:
false
,
"skipLibCheck"
:
true
,
"skipLibCheck"
:
true
,
"suppressImplicitAnyIndexErrors"
:
true
,
"suppressImplicitAnyIndexErrors"
:
true
,
"outDir"
:
"build/w
ww
/app"
,
"outDir"
:
"build/w
x
/app"
,
"lib"
:
[
"es7"
,
"dom"
],
"lib"
:
[
"es7"
,
"dom"
],
"typeRoots"
:
[
"typeRoots"
:
[
"node_modules/@types"
"node_modules/@types"
...
...
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