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
97bd3c9b
Commit
97bd3c9b
authored
Jan 02, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7bd5a457
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
103 additions
and
27 deletions
+103
-27
analysis-deal.component.html
...operation-work/analysis-deal/analysis-deal.component.html
+1
-1
analysis-status.component.html
...ation-work/analysis-status/analysis-status.component.html
+1
-1
alarm-modal.component.html
...n/webapp/app/modal/alarm-modal/alarm-modal.component.html
+1
-1
alarm-modal.component.ts
...ain/webapp/app/modal/alarm-modal/alarm-modal.component.ts
+1
-0
basic-edit.component.html
...ain/webapp/app/modal/basic-edit/basic-edit.component.html
+1
-1
modify-password.component.html
.../app/modal/modify-password/modify-password.component.html
+10
-3
modify-password.component.ts
...pp/app/modal/modify-password/modify-password.component.ts
+6
-4
website.component.html
src/main/webapp/app/modal/website/website.component.html
+1
-1
basic-detail.component.html
...pp/overAll/basic/basic-detail/basic-detail.component.html
+1
-1
assets-detail.component.html
...ork/asset-part/assets-detail/assets-detail.component.html
+15
-3
assets-detail.component.ts
.../work/asset-part/assets-detail/assets-detail.component.ts
+30
-2
child-assets.component.ts
...pp/work/asset-part/child-assets/child-assets.component.ts
+1
-1
assets.component.ts
src/main/webapp/app/work/modal/assets/assets.component.ts
+24
-4
handle-event.component.html
...work/work-handle/handle-event/handle-event.component.html
+5
-4
work.service.ts
src/main/webapp/app/work/work.service.ts
+5
-0
No files found.
src/main/webapp/app/analysis/operation-work/analysis-deal/analysis-deal.component.html
View file @
97bd3c9b
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<tbody>
<tbody>
<ng-container
*
ngFor=
"let data of dealList"
>
<ng-container
*
ngFor=
"let data of dealList"
>
<tr>
<tr>
<td>
{{data.
typeN
ame}}
</td>
<td>
{{data.
usern
ame}}
</td>
<td>
{{data.num}}
</td>
<td>
{{data.num}}
</td>
<td>
未解决 {{data.unsolved}} 部分解决 {{data.solveLittle}} 解决 {{data.solved}}
</td>
<td>
未解决 {{data.unsolved}} 部分解决 {{data.solveLittle}} 解决 {{data.solved}}
</td>
<td>
<td>
...
...
src/main/webapp/app/analysis/operation-work/analysis-status/analysis-status.component.html
View file @
97bd3c9b
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</ng-container>
</ng-container>
</td>
</td>
<td>
<td>
<ng-container
*
ngFor=
"let item of data.eventType
S
"
>
<ng-container
*
ngFor=
"let item of data.eventType
s
"
>
<span>
{{item.typeName}} {{item.num}}
</span>
<span>
{{item.typeName}} {{item.num}}
</span>
</ng-container>
</ng-container>
</td>
</td>
...
...
src/main/webapp/app/modal/alarm-modal/alarm-modal.component.html
View file @
97bd3c9b
<!--添加资源-->
<!--添加资源-->
<nz-modal
[
nzWidth
]="
1080
"
[
nzFooter
]="
null
"
[(
nzVisible
)]="
isShow
"
[
nzTitle
]="
title
"
<nz-modal
[
nzWidth
]="
1080
"
[
nzFooter
]="
null
"
[(
nzVisible
)]="
isShow
"
[
nzTitle
]="
title
"
(
nzOnCancel
)="
handleEditCancel
()"
(
nzOnOk
)="
handEditleOk
()"
>
(
nzOnCancel
)="
handleEditCancel
()"
(
nzOnOk
)="
handEditleOk
()"
>
<nz-tabset
[
nzSelectedIndex
]="
tabNum
"
style=
"padding-bottom: 25px;min-height: 500px"
>
<nz-tabset
[
nzSelectedIndex
]="
tabNum
"
(
nzSelectedIndexChange
)="
tabsChange
($
event
)"
style=
"padding-bottom: 25px;min-height: 500px"
>
<nz-tab
nzTitle=
"选定告警目标"
>
<nz-tab
nzTitle=
"选定告警目标"
>
<div
nz-form
class=
"ant-advanced-search-form form-select"
>
<div
nz-form
class=
"ant-advanced-search-form form-select"
>
<nz-form-item>
<nz-form-item>
...
...
src/main/webapp/app/modal/alarm-modal/alarm-modal.component.ts
View file @
97bd3c9b
...
@@ -208,6 +208,7 @@ export class AlarmModalComponent implements OnInit {
...
@@ -208,6 +208,7 @@ export class AlarmModalComponent implements OnInit {
//tab切换
//tab切换
tabsChange
(
index
)
{
tabsChange
(
index
)
{
console
.
log
(
this
.
tabNum
);
this
.
tabNum
=
index
;
this
.
tabNum
=
index
;
}
}
...
...
src/main/webapp/app/modal/basic-edit/basic-edit.component.html
View file @
97bd3c9b
<!--添加资源-->
<!--添加资源-->
<nz-modal
[
nzWidth
]="
1080
"
[
nzFooter
]="
null
"
[(
nzVisible
)]="
isBasicEdit
"
nzTitle=
"{{modalTitle}}"
<nz-modal
[
nzWidth
]="
1080
"
[
nzFooter
]="
null
"
[(
nzVisible
)]="
isBasicEdit
"
nzTitle=
"{{modalTitle}}"
(
nzOnCancel
)="
handleEditCancel
()"
(
nzOnOk
)="
handEditleOk
()"
>
(
nzOnCancel
)="
handleEditCancel
()"
(
nzOnOk
)="
handEditleOk
()"
>
<nz-tabset
[
nzSelectedIndex
]="
tabNum
"
style=
"padding-bottom: 25px;min-height: 500px"
>
<nz-tabset
[
nzSelectedIndex
]="
tabNum
"
(
nzSelectedIndexChange
)="
tabsChange
($
event
)"
style=
"padding-bottom: 25px;min-height: 500px"
>
<nz-tab
nzTitle=
"资源信息"
>
<nz-tab
nzTitle=
"资源信息"
>
<div
nz-form
class=
"ant-advanced-search-form form-select"
>
<div
nz-form
class=
"ant-advanced-search-form form-select"
>
<div
nz-row
[
nzGutter
]="
24
"
>
<div
nz-row
[
nzGutter
]="
24
"
>
...
...
src/main/webapp/app/modal/modify-password/modify-password.component.html
View file @
97bd3c9b
<nz-modal
[(
nzVisible
)]="
isVisible
"
[
nzTitle
]="
title
"
(
nzOnCancel
)="
handleCancel
()"
(
nzOnOk
)="
handleOk
()"
>
<nz-modal
[(
nzVisible
)]="
isVisible
"
[
nzTitle
]="
title
"
(
nzOnCancel
)="
handleCancel
()"
(
nzOnOk
)="
handleOk
()"
>
<form
nz-form
[
formGroup
]="
validateForm
"
>
<form
nz-form
[
formGroup
]="
validateForm
"
>
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
7
"
nzRequired
nzFor=
"
password"
>
密码
</nz-form-label>
<nz-form-label
[
nzSpan
]="
7
"
nzRequired
nzFor=
"
oldPassword"
>
旧
密码
</nz-form-label>
<nz-form-control
[
nzSpan
]="
12
"
>
<nz-form-control
[
nzSpan
]="
12
"
>
<input
type=
"password"
nz-input
formControlName=
"password"
placeholder=
"密码"
>
<input
type=
"password"
nz-input
formControlName=
"oldPassword"
placeholder=
"密码"
>
<nz-form-explain
*
ngIf=
"validateForm.get('password').dirty && validateForm.get('password').errors"
>
请输入密码
</nz-form-explain>
<nz-form-explain
*
ngIf=
"validateForm.get('oldPassword').dirty && validateForm.get('oldPassword').errors"
>
请输入密码
</nz-form-explain>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
7
"
nzRequired
nzFor=
"newPassword"
>
新密码
</nz-form-label>
<nz-form-control
[
nzSpan
]="
12
"
>
<input
type=
"password"
nz-input
formControlName=
"newPassword"
placeholder=
"密码"
>
<nz-form-explain
*
ngIf=
"validateForm.get('newPassword').dirty && validateForm.get('newPassword').errors"
>
请输入密码
</nz-form-explain>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
<nz-form-item>
<nz-form-item>
...
...
src/main/webapp/app/modal/modify-password/modify-password.component.ts
View file @
97bd3c9b
...
@@ -37,7 +37,7 @@ export class ModifyPasswordComponent implements OnInit {
...
@@ -37,7 +37,7 @@ export class ModifyPasswordComponent implements OnInit {
if
(
this
.
validateForm
.
invalid
)
{
if
(
this
.
validateForm
.
invalid
)
{
return
false
;
return
false
;
}
}
if
(
this
.
validateForm
.
value
.
p
assword
!=
this
.
validateForm
.
value
.
realPassword
){
if
(
this
.
validateForm
.
value
.
newP
assword
!=
this
.
validateForm
.
value
.
realPassword
){
this
.
message
.
error
(
"两次输入密码不一致"
);
this
.
message
.
error
(
"两次输入密码不一致"
);
return
false
;
return
false
;
}
}
...
@@ -46,7 +46,8 @@ export class ModifyPasswordComponent implements OnInit {
...
@@ -46,7 +46,8 @@ export class ModifyPasswordComponent implements OnInit {
update
()
{
update
()
{
let
formData
=
new
FormData
();
let
formData
=
new
FormData
();
formData
.
append
(
'password'
,
this
.
validateForm
.
value
.
password
);
formData
.
append
(
'newPassword'
,
this
.
validateForm
.
value
.
realPassword
);
formData
.
append
(
'oldPassword'
,
this
.
validateForm
.
value
.
oldPassword
);
this
.
layoutSer
.
modifyPassword
(
formData
).
subscribe
(
this
.
layoutSer
.
modifyPassword
(
formData
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
...
@@ -69,8 +70,9 @@ export class ModifyPasswordComponent implements OnInit {
...
@@ -69,8 +70,9 @@ export class ModifyPasswordComponent implements OnInit {
//初始化
//初始化
initForm
()
{
initForm
()
{
this
.
validateForm
=
this
.
fb
.
group
({
this
.
validateForm
=
this
.
fb
.
group
({
password
:
[
null
,
[
Validators
.
required
]],
oldPassword
:
[
null
,
[
Validators
.
required
]],
realPassword
:
[
null
,
[
Validators
.
required
]],
newPassword
:
[
null
,
[
Validators
.
required
,
Validators
.
minLength
(
6
),
Validators
.
maxLength
(
12
)]],
realPassword
:
[
null
,
[
Validators
.
required
,
Validators
.
minLength
(
6
),
Validators
.
maxLength
(
12
)]],
});
});
}
}
}
}
src/main/webapp/app/modal/website/website.component.html
View file @
97bd3c9b
<nz-modal
[
nzWidth
]="
1080
"
[(
nzVisible
)]="
isVisible
"
nzTitle=
"{{title}}"
[
nzFooter
]="
null
"
(
nzOnCancel
)="
handleCancel
()"
<nz-modal
[
nzWidth
]="
1080
"
[(
nzVisible
)]="
isVisible
"
nzTitle=
"{{title}}"
[
nzFooter
]="
null
"
(
nzOnCancel
)="
handleCancel
()"
(
nzOnOk
)="
handleOk
()"
>
(
nzOnOk
)="
handleOk
()"
>
<nz-tabset
[
nzSelectedIndex
]="
tabNum
"
style=
"padding-bottom: 25px;min-height: 500px"
>
<nz-tabset
[
nzSelectedIndex
]="
tabNum
"
(
nzSelectedIndexChange
)="
tabsChange
($
event
)"
style=
"padding-bottom: 25px;min-height: 500px"
>
<nz-tab
nzTitle=
"1.场景"
>
<nz-tab
nzTitle=
"1.场景"
>
<div
nz-form
class=
"ant-advanced-search-form form-select"
>
<div
nz-form
class=
"ant-advanced-search-form form-select"
>
<form
nz-form
class=
"ant-advanced-search-form"
>
<form
nz-form
class=
"ant-advanced-search-form"
>
...
...
src/main/webapp/app/overAll/basic/basic-detail/basic-detail.component.html
View file @
97bd3c9b
...
@@ -191,7 +191,7 @@
...
@@ -191,7 +191,7 @@
</nz-tab>
</nz-tab>
</nz-tabset>
</nz-tabset>
</div>
</div>
</div>
</div>
</nz-spin>
</nz-spin>
<!--添加监测点-->
<!--添加监测点-->
...
...
src/main/webapp/app/work/asset-part/assets-detail/assets-detail.component.html
View file @
97bd3c9b
...
@@ -24,7 +24,12 @@
...
@@ -24,7 +24,12 @@
</div>
</div>
</div>
</div>
<nz-tabset
class=
"tabs-smart "
>
<div
class=
"tabset"
>
<div
class=
"tabset-btn"
>
<button
(
click
)="
showEditModal
()"
nz-button
nzType=
"default"
>
编辑
</button>
<button
(
click
)="
deleteModal
()"
nz-button
nzType=
"default"
>
删除
</button>
</div>
<nz-tabset
class=
"tabs-smart "
>
<nz-tab
#
thirdTabs
nzTitle=
"资产信息"
>
<nz-tab
#
thirdTabs
nzTitle=
"资产信息"
>
<div
nz-form
class=
"ant-advanced-search-form form-select"
>
<div
nz-form
class=
"ant-advanced-search-form form-select"
>
...
@@ -35,7 +40,9 @@
...
@@ -35,7 +40,9 @@
</nz-form-label>
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
{{inventoryExtend?.inventoryNo}}
{{inventoryExtend?.inventoryNo}}
<button
(
click
)="
linkThen
()"
nz-button
nzType=
"primary"
>
关联
</button>
<ng-container
*
ngIf=
"!inventoryExtend?.hostid"
>
<button
nzSize=
"small"
(
click
)="
linkThen
()"
nz-button
nzType=
"primary"
>
关联
</button>
</ng-container>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
</div>
</div>
...
@@ -248,8 +255,12 @@
...
@@ -248,8 +255,12 @@
</nz-table>
</nz-table>
</nz-tab>
</nz-tab>
</nz-tabset>
</nz-tabset>
</div>
<!--选择资源-->
<!--选择资源-->
<smart-select-group
#
smartSelectGroup
(
done
)="
setLink
($
event
)"
></smart-select-group>
<smart-select-group
#
smartSelectGroup
(
done
)="
setLink
($
event
)"
></smart-select-group>
<!--资产-->
<smart-assets
#
smartAssets
(
done
)="
getDetail
()"
></smart-assets>
\ No newline at end of file
src/main/webapp/app/work/asset-part/assets-detail/assets-detail.component.ts
View file @
97bd3c9b
...
@@ -4,6 +4,9 @@ import {WorkService} from '../../work.service';
...
@@ -4,6 +4,9 @@ import {WorkService} from '../../work.service';
import
{
pageSize
}
from
'../../../app.constants'
;
import
{
pageSize
}
from
'../../../app.constants'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
SelectGroupComponent
}
from
'../../../modal/select-group/select-group.component'
;
import
{
SelectGroupComponent
}
from
'../../../modal/select-group/select-group.component'
;
import
{
CommonService
}
from
'../../../shared/common/common.service'
;
import
{
Location
}
from
'@angular/common'
;
import
{
AssetsComponent
}
from
'../../modal/assets/assets.component'
;
@
Component
({
@
Component
({
selector
:
'smart-assets-detail'
,
selector
:
'smart-assets-detail'
,
...
@@ -12,6 +15,7 @@ import {SelectGroupComponent} from '../../../modal/select-group/select-group.com
...
@@ -12,6 +15,7 @@ import {SelectGroupComponent} from '../../../modal/select-group/select-group.com
})
})
export
class
AssetsDetailComponent
implements
OnInit
{
export
class
AssetsDetailComponent
implements
OnInit
{
@
ViewChild
(
'smartSelectGroup'
)
smartSelectGroup
:
SelectGroupComponent
;
@
ViewChild
(
'smartSelectGroup'
)
smartSelectGroup
:
SelectGroupComponent
;
@
ViewChild
(
'smartAssets'
)
smartAssets
:
AssetsComponent
;
invertoryId
;
invertoryId
;
inventoryExtend
;
inventoryExtend
;
...
@@ -21,8 +25,8 @@ export class AssetsDetailComponent implements OnInit {
...
@@ -21,8 +25,8 @@ export class AssetsDetailComponent implements OnInit {
pageCount
=
pageSize
;
pageCount
=
pageSize
;
loading
=
false
;
loading
=
false
;
thingList
;
thingList
;
constructor
(
private
routerInfo
:
ActivatedRoute
,
private
workSer
:
WorkService
,
constructor
(
private
routerInfo
:
ActivatedRoute
,
private
workSer
:
WorkService
,
private
commonSer
:
CommonService
,
private
message
:
NzMessageService
,
private
router
:
Router
)
{
private
message
:
NzMessageService
,
private
router
:
Router
,
private
localSer
:
Location
)
{
this
.
routerInfo
.
queryParams
.
subscribe
(
this
.
routerInfo
.
queryParams
.
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
invertoryId
=
res
.
invertoryId
;
this
.
invertoryId
=
res
.
invertoryId
;
...
@@ -76,6 +80,30 @@ export class AssetsDetailComponent implements OnInit {
...
@@ -76,6 +80,30 @@ export class AssetsDetailComponent implements OnInit {
});
});
}
}
//删除
deleteModal
(){
const
data
=
{
inventoryIds
:
[
this
.
invertoryId
]
};
this
.
commonSer
.
confirmThing
(
"删除"
,
"确定删除该资产?"
,()
=>
{
this
.
workSer
.
deleteInventory
(
data
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
){
this
.
localSer
.
back
();
this
.
message
.
success
(
"删除资产成功"
);
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
}
}
)
})
}
//编辑
showEditModal
(){
this
.
smartAssets
.
showEditModal
(
"编辑资产"
,
this
.
invertoryId
);
}
// 打开添加关联modal
// 打开添加关联modal
linkThen
(){
linkThen
(){
this
.
smartSelectGroup
.
showAddModal
(
"选择资源"
);
this
.
smartSelectGroup
.
showAddModal
(
"选择资源"
);
...
...
src/main/webapp/app/work/asset-part/child-assets/child-assets.component.ts
View file @
97bd3c9b
...
@@ -130,7 +130,7 @@ export class ChildAssetsComponent implements OnInit {
...
@@ -130,7 +130,7 @@ export class ChildAssetsComponent implements OnInit {
//编辑资产
//编辑资产
showEditModal
(
id
){
showEditModal
(
id
){
this
.
smartAssets
.
showEditModal
(
"编辑资产"
);
this
.
smartAssets
.
showEditModal
(
"编辑资产"
,
id
);
}
}
//查看详情
//查看详情
...
...
src/main/webapp/app/work/modal/assets/assets.component.ts
View file @
97bd3c9b
...
@@ -2,6 +2,7 @@ import {Component, EventEmitter, OnInit, Output} from '@angular/core';
...
@@ -2,6 +2,7 @@ import {Component, EventEmitter, OnInit, Output} from '@angular/core';
import
{
FormBuilder
,
FormGroup
,
Validators
}
from
'@angular/forms'
;
import
{
FormBuilder
,
FormGroup
,
Validators
}
from
'@angular/forms'
;
import
{
WorkService
}
from
'../../work.service'
;
import
{
WorkService
}
from
'../../work.service'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
DatePipe
}
from
'@angular/common'
;
@
Component
({
@
Component
({
selector
:
'smart-assets'
,
selector
:
'smart-assets'
,
...
@@ -19,7 +20,9 @@ export class AssetsComponent implements OnInit {
...
@@ -19,7 +20,9 @@ export class AssetsComponent implements OnInit {
parentTypeList
;
parentTypeList
;
typeList
;
typeList
;
constructor
(
private
workSer
:
WorkService
,
private
fb
:
FormBuilder
,
invertoryId
//资产Id
constructor
(
private
workSer
:
WorkService
,
private
fb
:
FormBuilder
,
private
datePipe
:
DatePipe
,
private
message
:
NzMessageService
)
{
private
message
:
NzMessageService
)
{
}
}
...
@@ -48,7 +51,6 @@ export class AssetsComponent implements OnInit {
...
@@ -48,7 +51,6 @@ export class AssetsComponent implements OnInit {
storageLocation
:[
null
],
storageLocation
:[
null
],
groupid
:[
null
],
groupid
:[
null
],
inventoryTypeid
:[
null
,[
Validators
.
required
]],
inventoryTypeid
:[
null
,[
Validators
.
required
]],
});
});
}
}
...
@@ -77,10 +79,16 @@ export class AssetsComponent implements OnInit {
...
@@ -77,10 +79,16 @@ export class AssetsComponent implements OnInit {
this
.
getParentType
();
this
.
getParentType
();
}
}
showEditModal
(
title
)
{
showEditModal
(
title
,
id
)
{
this
.
title
=
title
;
this
.
title
=
title
;
this
.
invertoryId
=
id
;
this
.
isVisible
=
true
;
this
.
isVisible
=
true
;
this
.
getParentType
();
this
.
getParentType
();
this
.
workSer
.
selectByPrimaryKey
(
this
.
invertoryId
).
subscribe
(
(
res
)
=>
{
this
.
validateForm
.
patchValue
(
res
.
data
);
}
)
}
}
handEditleOk
()
{
handEditleOk
()
{
...
@@ -114,7 +122,19 @@ export class AssetsComponent implements OnInit {
...
@@ -114,7 +122,19 @@ export class AssetsComponent implements OnInit {
}
}
update
(){
update
(){
this
.
validateForm
.
value
.
id
=
this
.
invertoryId
;
this
.
validateForm
.
value
.
maintenanceExpiration
=
this
.
datePipe
.
transform
(
this
.
validateForm
.
value
.
maintenanceExpiration
,
"yyyy-MM-dd HH:mm:ss"
);
this
.
workSer
.
updateInventory
(
this
.
validateForm
.
value
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
){
this
.
message
.
success
(
"编辑资产成功"
);
this
.
isVisible
=
false
;
this
.
done
.
emit
();
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
}
}
)
}
}
handleEditCancel
()
{
handleEditCancel
()
{
...
...
src/main/webapp/app/work/work-handle/handle-event/handle-event.component.html
View file @
97bd3c9b
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
事件处置
事件处置
</nz-breadcrumb-item>
</nz-breadcrumb-item>
<nz-breadcrumb-item>
<nz-breadcrumb-item>
事件编号:
123456
事件编号:
{{event?.id}}
</nz-breadcrumb-item>
</nz-breadcrumb-item>
</nz-breadcrumb>
</nz-breadcrumb>
</div>
</div>
...
@@ -27,14 +27,15 @@
...
@@ -27,14 +27,15 @@
<div
nz-row
>
<div
nz-row
>
<div
nz-col
nzSpan=
"4"
>
事件编号
</div>
<div
nz-col
nzSpan=
"4"
>
事件编号
</div>
<div
nz-col
nzSpan=
"1"
></div>
<div
nz-col
nzSpan=
"1"
></div>
<div
nz-col
nzSpan=
"7"
></div>
<div
nz-col
nzSpan=
"7"
>
{{event?.id}}
</div>
<div
nz-col
nzSpan=
"4"
>
提交时间
</div>
<div
nz-col
nzSpan=
"4"
>
提交时间
</div>
<div
nz-col
nzSpan=
"7"
>
{{event?.createTime | date:"yyyy-MM-dd HH:mm:ss"}}
</div>
<div
nz-col
nzSpan=
"7"
>
{{event?.createTime | date:"yyyy-MM-dd HH:mm:ss"}}
</div>
</div>
</div>
<div
nz-row
>
<div
nz-row
>
<div
nz-col
nzSpan=
"4"
>
请求人
</div>
<div
nz-col
nzSpan=
"4"
>
请求人
</div>
<div
nz-col
nzSpan=
"1"
></div>
<div
nz-col
nzSpan=
"1"
></div>
<div
nz-col
nzSpan=
"4"
>
{{event?.requester}}
</div>
<div
nz-col
nzSpan=
"7"
>
{{event?.requester}}
</div>
<div
nz-col
nzSpan=
"4"
></div>
<div
nz-col
nzSpan=
"7"
>
{{event?.requesterPhone}}
</div>
<div
nz-col
nzSpan=
"7"
>
{{event?.requesterPhone}}
</div>
</div>
</div>
<div
nz-row
>
<div
nz-row
>
...
@@ -53,7 +54,7 @@
...
@@ -53,7 +54,7 @@
<div
nz-row
>
<div
nz-row
>
<div
nz-col
nzSpan=
"4"
>
附件
</div>
<div
nz-col
nzSpan=
"4"
>
附件
</div>
<div
nz-col
nzSpan=
"1"
></div>
<div
nz-col
nzSpan=
"1"
></div>
<div
nz-col
nzSpan=
"7"
>
{{event?.file}}
</div>
<div
nz-col
nzSpan=
"7"
>
{{event?.file
Name
}}
</div>
</div>
</div>
<h2>
流转记录
</h2>
<h2>
流转记录
</h2>
...
...
src/main/webapp/app/work/work.service.ts
View file @
97bd3c9b
...
@@ -124,6 +124,11 @@ export class WorkService {
...
@@ -124,6 +124,11 @@ export class WorkService {
return
this
.
http
.
post
(
SERVER_API_URL
+
'/inventory/createInventory'
,
data
);
return
this
.
http
.
post
(
SERVER_API_URL
+
'/inventory/createInventory'
,
data
);
}
}
//修改资产
updateInventory
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/inventory/updateInventory'
,
data
);
}
//根据资产类型id查询资产
//根据资产类型id查询资产
findInventory
(
params
):
Observable
<
any
>
{
findInventory
(
params
):
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/inventory/findInventory/'
+
params
);
return
this
.
http
.
get
(
SERVER_API_URL
+
'/inventory/findInventory/'
+
params
);
...
...
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