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
9bb52a79
Commit
9bb52a79
authored
Feb 18, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xlsx
parent
cf016f49
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
22 additions
and
21 deletions
+22
-21
analysis-deal.component.ts
...s/operation-work/analysis-deal/analysis-deal.component.ts
+1
-1
analysis-event.component.ts
...operation-work/analysis-event/analysis-event.component.ts
+1
-1
analysis-status.component.ts
...eration-work/analysis-status/analysis-status.component.ts
+1
-1
resource-alarm.component.ts
...p/app/analysis/resource-alarm/resource-alarm.component.ts
+2
-2
resource-usabil.component.ts
...app/analysis/resource-usabil/resource-usabil.component.ts
+1
-1
group.component.ts
src/main/webapp/app/system/group/group.component.ts
+1
-1
asset-part.component.ts
src/main/webapp/app/work/asset-part/asset-part.component.ts
+1
-1
child-assets.component.ts
...pp/work/asset-part/child-assets/child-assets.component.ts
+2
-2
look-plan.component.ts
...in/webapp/app/work/modal/look-plan/look-plan.component.ts
+1
-1
event.component.html
...in/webapp/app/work/work-handle/Event/event.component.html
+3
-3
event.component.ts
...main/webapp/app/work/work-handle/Event/event.component.ts
+2
-2
handle-detail.component.ts
...work/work-handle/handle-detail/handle-detail.component.ts
+1
-1
handle-event.component.ts
...p/work/work-handle/handle-event/handle-event.component.ts
+1
-1
global.css
src/main/webapp/content/css/global.css
+3
-0
backimg.png
src/main/webapp/content/images/backimg.png
+0
-0
jtopo-editor.js
src/main/webapp/content/javascript/jtopo/js/jtopo-editor.js
+1
-3
No files found.
src/main/webapp/app/analysis/operation-work/analysis-deal/analysis-deal.component.ts
View file @
9bb52a79
...
...
@@ -141,7 +141,7 @@ export class AnalysisDealComponent implements OnInit {
this
.
analysisSer
.
exportByuser
(
data
).
subscribe
(
(
data
)
=>
{
this
.
isDownload
=
false
;
this
.
commonSer
.
downloadFile
(
'处理人统计.xls'
,
data
);
this
.
commonSer
.
downloadFile
(
'处理人统计.xls
x
'
,
data
);
}
);
}
...
...
src/main/webapp/app/analysis/operation-work/analysis-event/analysis-event.component.ts
View file @
9bb52a79
...
...
@@ -142,7 +142,7 @@ export class AnalysisEventComponent implements OnInit {
this
.
analysisSer
.
exportByType
(
data
).
subscribe
(
(
data
)
=>
{
this
.
isDownload
=
false
;
this
.
commonSer
.
downloadFile
(
'事件分类统计.xls'
,
data
);
this
.
commonSer
.
downloadFile
(
'事件分类统计.xls
x
'
,
data
);
}
);
}
...
...
src/main/webapp/app/analysis/operation-work/analysis-status/analysis-status.component.ts
View file @
9bb52a79
...
...
@@ -140,7 +140,7 @@ export class AnalysisStatusComponent implements OnInit {
this
.
analysisSer
.
exportByStatus
(
data
).
subscribe
(
(
data
)
=>
{
this
.
isDownload
=
false
;
this
.
commonSer
.
downloadFile
(
'解决状态.xls'
,
data
);
this
.
commonSer
.
downloadFile
(
'解决状态.xls
x
'
,
data
);
}
);
}
...
...
src/main/webapp/app/analysis/resource-alarm/resource-alarm.component.ts
View file @
9bb52a79
...
...
@@ -391,7 +391,7 @@ export class ResourceAlarmComponent implements OnInit {
this
.
workSer
.
downloadTemplate
(
'commonProblemTop'
,
res
.
data
).
subscribe
(
(
data
)
=>
{
this
.
isDownload1
=
false
;
this
.
commonSer
.
downloadFile
(
'常见问题top10.xls'
,
data
)
this
.
commonSer
.
downloadFile
(
'常见问题top10.xls
x
'
,
data
)
}
)
}
else
{
...
...
@@ -421,7 +421,7 @@ export class ResourceAlarmComponent implements OnInit {
this
.
workSer
.
downloadTemplate
(
'statisticalReport'
,
res
.
data
).
subscribe
(
(
data
)
=>
{
this
.
isDownload2
=
false
;
this
.
commonSer
.
downloadFile
(
'统计报告.xls'
,
data
)
this
.
commonSer
.
downloadFile
(
'统计报告.xls
x
'
,
data
)
}
)
}
else
{
...
...
src/main/webapp/app/analysis/resource-usabil/resource-usabil.component.ts
View file @
9bb52a79
...
...
@@ -252,7 +252,7 @@ export class ResourceUsabilComponent implements OnInit {
this
.
workSer
.
downloadTemplate
(
'failureRate'
,
res
.
data
).
subscribe
(
(
data
)
=>
{
this
.
isDownload
=
false
;
this
.
commonSer
.
downloadFile
(
'资源可用性统计.xls'
,
data
)
this
.
commonSer
.
downloadFile
(
'资源可用性统计.xls
x
'
,
data
)
}
)
}
else
{
...
...
src/main/webapp/app/system/group/group.component.ts
View file @
9bb52a79
...
...
@@ -283,7 +283,7 @@ export class GroupComponent implements OnInit {
downLoad
(){
this
.
systemSer
.
downloadTemplate
(
""
,
SERVER_API_URL_COMS
+
"/user/downloadTemplate/"
).
subscribe
(
data
=>
{
this
.
commonSer
.
downloadFile
(
"模版.xls"
,
data
)
this
.
commonSer
.
downloadFile
(
"模版.xls
x
"
,
data
)
}
);
}
...
...
src/main/webapp/app/work/asset-part/asset-part.component.ts
View file @
9bb52a79
...
...
@@ -174,7 +174,7 @@ export class AssetPartComponent implements OnInit {
downLoad
(){
this
.
systemSer
.
downloadTemplate
(
"inventory"
,
SERVER_API_URL
+
"/api/template/download/"
).
subscribe
(
(
data
)
=>
{
this
.
commonSer
.
downloadFile
(
"资产模版.xls"
,
data
);
this
.
commonSer
.
downloadFile
(
"资产模版.xls
x
"
,
data
);
}
)
}
...
...
src/main/webapp/app/work/asset-part/child-assets/child-assets.component.ts
View file @
9bb52a79
...
...
@@ -151,7 +151,7 @@ export class ChildAssetsComponent implements OnInit {
downLoad
(){
this
.
systemSer
.
downloadTemplate
(
"inventory"
,
SERVER_API_URL
+
"/api/template/download/"
).
subscribe
(
(
data
)
=>
{
this
.
commonSer
.
downloadFile
(
"资产模版.xls"
,
data
);
this
.
commonSer
.
downloadFile
(
"资产模版.xls
x
"
,
data
);
}
)
}
...
...
@@ -172,7 +172,7 @@ export class ChildAssetsComponent implements OnInit {
(
res
)
=>
{
this
.
workSer
.
downloadTemplate
(
"inventory"
,
res
.
data
).
subscribe
(
(
data
)
=>
{
this
.
commonSer
.
downloadFile
(
"文件.xls"
,
data
)
this
.
commonSer
.
downloadFile
(
"文件.xls
x
"
,
data
)
}
)
}
...
...
src/main/webapp/app/work/modal/look-plan/look-plan.component.ts
View file @
9bb52a79
...
...
@@ -40,7 +40,7 @@ export class LookPlanComponent implements OnInit {
downLoad
()
{
this
.
workSer
.
downloadTemplate
(
'plan'
,
this
.
planId
).
subscribe
(
(
data
)
=>
{
this
.
commonSer
.
downloadFile
(
this
.
plan
.
fileName
+
".xls"
,
data
);
this
.
commonSer
.
downloadFile
(
this
.
plan
.
fileName
+
".xls
x
"
,
data
);
}
);
}
...
...
src/main/webapp/app/work/work-handle/Event/event.component.html
View file @
9bb52a79
...
...
@@ -9,7 +9,7 @@
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzRequired
nzFor=
"title"
>
事件标题
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<input
id=
"title"
nz-input
placeholder=
"事件标题"
name=
"title"
formControlName=
"title"
>
<nz-form-explain
*
ngIf=
"validateForm.get('title').dirty && validateForm.get('title').errors"
>
请输入事件标题
</nz-form-explain>
<nz-form-explain
*
ngIf=
"validateForm.get('title').dirty && validateForm.get('title').errors"
>
最多输入20个字
</nz-form-explain>
</nz-form-control>
</nz-form-item>
</div>
...
...
@@ -37,7 +37,7 @@
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzRequired
nzFor=
"requester"
>
请求人
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<input
id=
"requester"
nz-input
placeholder=
"请求人"
name=
"requester"
formControlName=
"requester"
>
<nz-form-explain
*
ngIf=
"validateForm.get('requester').dirty && validateForm.get('requester').errors"
>
请输入请求人
</nz-form-explain>
<nz-form-explain
*
ngIf=
"validateForm.get('requester').dirty && validateForm.get('requester').errors"
>
最多输入10个字
</nz-form-explain>
</nz-form-control>
</nz-form-item>
...
...
@@ -49,7 +49,7 @@
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<input
id=
"requesterPhone"
nz-input
placeholder=
"联系电话"
name=
"requesterPhone"
formControlName=
"requesterPhone"
>
<nz-form-explain
*
ngIf=
"validateForm.get('requesterPhone').dirty && validateForm.get('requesterPhone').errors"
>
请输入联系电话
</nz-form-explain>
<nz-form-explain
*
ngIf=
"validateForm.get('requesterPhone').dirty && validateForm.get('requesterPhone').errors"
>
请输入
13位
联系电话
</nz-form-explain>
</nz-form-control>
</nz-form-item>
...
...
src/main/webapp/app/work/work-handle/Event/event.component.ts
View file @
9bb52a79
...
...
@@ -36,8 +36,8 @@ export class EventComponent implements OnInit {
title
:
[
null
,
[
Validators
.
required
,
Validators
.
maxLength
(
20
)]],
description
:
[
null
,
Validators
.
maxLength
(
300
)],
type
:
[
null
,
[
Validators
.
required
]],
requester
:
[
null
,
[
Validators
.
required
]],
requesterPhone
:
[
null
,
[
Validators
.
required
]],
requester
:
[
null
,
[
Validators
.
required
,
Validators
.
maxLength
(
10
)
]],
requesterPhone
:
[
null
,
[
Validators
.
required
,
Validators
.
maxLength
(
13
)
]],
operators
:
[
null
],
}
);
...
...
src/main/webapp/app/work/work-handle/handle-detail/handle-detail.component.ts
View file @
9bb52a79
...
...
@@ -53,7 +53,7 @@ export class HandleDetailComponent implements OnInit {
downLoad
(){
this
.
workSer
.
downloadTemplate
(
"event"
,
this
.
eventId
).
subscribe
(
(
data
)
=>
{
this
.
commonSer
.
downloadFile
(
this
.
event
.
fileName
+
".xls"
,
data
)
this
.
commonSer
.
downloadFile
(
this
.
event
.
fileName
+
".xls
x
"
,
data
)
}
)
}
...
...
src/main/webapp/app/work/work-handle/handle-event/handle-event.component.ts
View file @
9bb52a79
...
...
@@ -139,7 +139,7 @@ export class HandleEventComponent implements OnInit {
downLoad
(){
this
.
workSer
.
downloadTemplate
(
"event"
,
this
.
eventId
).
subscribe
(
(
data
)
=>
{
this
.
commonSer
.
downloadFile
(
this
.
event
.
fileName
+
".xls"
,
data
)
this
.
commonSer
.
downloadFile
(
this
.
event
.
fileName
+
".xls
x
"
,
data
)
}
)
}
...
...
src/main/webapp/content/css/global.css
View file @
9bb52a79
...
...
@@ -351,3 +351,6 @@ ui bootstrap tweaks
font-weight
:
400
!important
;
color
:
#6097b7
;
}
.ant-menu-inline
.ant-menu-item
,
.ant-menu-inline
.ant-menu-submenu-title
{
width
:
auto
;
}
src/main/webapp/content/images/backimg.png
0 → 100755
View file @
9bb52a79
127 Bytes
src/main/webapp/content/javascript/jtopo/js/jtopo-editor.js
View file @
9bb52a79
...
...
@@ -29,7 +29,6 @@ TopologyPanel.prototype.saveTopology = function (url) {
}
// 获取json
var
topologyJSON
=
editor
.
stage
.
toJson
();
console
.
log
(
topologyJSON
);
return
topologyJSON
;
// 保存拓扑图数据
}
...
...
@@ -775,7 +774,6 @@ TopologyEditor.prototype.init = function (topologyGuid, backImg, topologyJson,ca
self
.
link
.
lineWidth
=
self
.
config
.
linkDefaultWidth
self
.
link
.
shadow
=
self
.
config
.
linkShadow
self
.
link
.
strokeColor
=
JTopo
.
util
.
randomColor
()
console
.
log
(
self
.
link
);
this
.
add
(
self
.
link
)
self
.
tempNodeA
.
setLocation
(
event
.
x
,
event
.
y
)
self
.
tempNodeZ
.
setLocation
(
event
.
x
,
event
.
y
)
...
...
@@ -1080,7 +1078,7 @@ editor.utils = {
var
node
=
new
JTopo
.
Node
()
node
.
fontColor
=
editor
.
config
.
nodeFontColor
// 节点坐标
node
.
setBound
(
320
,
-
2
00
,
50
,
50
);
node
.
setBound
(
-
800
,
-
5
00
,
50
,
50
);
// 默认节点图片
node
.
setImage
(
img
);
...
...
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