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
c3eee9c4
Commit
c3eee9c4
authored
Jan 15, 2020
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug update
parent
251786ab
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
4 deletions
+20
-4
basic.component.ts
src/main/webapp/app/overAll/basic/basic.component.ts
+1
-1
inspect-plan.component.html
.../webapp/app/work/inspect-plan/inspect-plan.component.html
+7
-0
inspect-plan.component.ts
...in/webapp/app/work/inspect-plan/inspect-plan.component.ts
+11
-2
tsconfig.json
tsconfig.json
+1
-1
No files found.
src/main/webapp/app/overAll/basic/basic.component.ts
View file @
c3eee9c4
...
@@ -547,7 +547,7 @@ export class BasicComponent implements OnInit {
...
@@ -547,7 +547,7 @@ export class BasicComponent implements OnInit {
}
else
{
}
else
{
type
=
'server'
;
type
=
'server'
;
}
}
this
.
router
.
navigate
([
type
],
{
this
.
router
.
navigate
([
`app/main/
${
type
}
`
],
{
queryParams
:
{
queryParams
:
{
hostId
:
item
.
hostid
,
hostId
:
item
.
hostid
,
equipmentType
:
item
.
equipmentType
equipmentType
:
item
.
equipmentType
...
...
src/main/webapp/app/work/inspect-plan/inspect-plan.component.html
View file @
c3eee9c4
...
@@ -106,6 +106,13 @@
...
@@ -106,6 +106,13 @@
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
7
"
nzRequired
nzFor=
"name"
>
完成时间
</nz-form-label>
<nz-form-control
[
nzSpan
]="
15
"
>
<nz-date-picker
[(
ngModel
)]="
modal
.
date
"
nzFormat=
"yyyy-MM-dd"
[
ngModelOptions
]="{
standalone:
true
}"
></nz-date-picker>
<nz-time-picker
[(
ngModel
)]="
modal
.
time
"
[
ngModelOptions
]="{
standalone:
true
}"
></nz-time-picker>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
7
"
nzRequired
nzFor=
"name"
>
处理情况
</nz-form-label>
<nz-form-label
[
nzSpan
]="
7
"
nzRequired
nzFor=
"name"
>
处理情况
</nz-form-label>
<nz-form-control
[
nzSpan
]="
12
"
>
<nz-form-control
[
nzSpan
]="
12
"
>
<textarea
[(
ngModel
)]="
modal
.
processRemark
"
[
ngModelOptions
]="{
standalone:
true
}"
row=
"4"
nz-input
></textarea>
<textarea
[(
ngModel
)]="
modal
.
processRemark
"
[
ngModelOptions
]="{
standalone:
true
}"
row=
"4"
nz-input
></textarea>
...
...
src/main/webapp/app/work/inspect-plan/inspect-plan.component.ts
View file @
c3eee9c4
...
@@ -5,6 +5,7 @@ import {NzMessageService, NzModalService} from 'ng-zorro-antd';
...
@@ -5,6 +5,7 @@ import {NzMessageService, NzModalService} from 'ng-zorro-antd';
import
{
PlanModalComponent
}
from
'../modal/plan-modal/plan-modal.component'
;
import
{
PlanModalComponent
}
from
'../modal/plan-modal/plan-modal.component'
;
import
{
LookPlanComponent
}
from
'../modal/look-plan/look-plan.component'
;
import
{
LookPlanComponent
}
from
'../modal/look-plan/look-plan.component'
;
import
{
CommonService
}
from
'../../shared/common/common.service'
;
import
{
CommonService
}
from
'../../shared/common/common.service'
;
import
{
DatePipe
}
from
'@angular/common'
;
@
Component
({
@
Component
({
selector
:
'smart-inspect-plan'
,
selector
:
'smart-inspect-plan'
,
...
@@ -39,10 +40,13 @@ export class InspectPlanComponent implements OnInit {
...
@@ -39,10 +40,13 @@ export class InspectPlanComponent implements OnInit {
isOkLoading
:
false
,
isOkLoading
:
false
,
planId
:
''
,
planId
:
''
,
processResult
:
'0'
,
processResult
:
'0'
,
date
:
null
,
time
:
null
,
processRemark
:
''
processRemark
:
''
};
};
constructor
(
private
workSer
:
WorkService
,
private
message
:
NzMessageService
,
constructor
(
private
workSer
:
WorkService
,
private
message
:
NzMessageService
,
private
datePipe
:
DatePipe
,
private
commonSer
:
CommonService
,
private
commonSer
:
CommonService
,
private
modalSer
:
NzModalService
)
{
private
modalSer
:
NzModalService
)
{
}
}
...
@@ -154,14 +158,19 @@ export class InspectPlanComponent implements OnInit {
...
@@ -154,14 +158,19 @@ export class InspectPlanComponent implements OnInit {
//确定
//确定
handleOk
()
{
handleOk
()
{
if
(
!
this
.
modal
.
date
||
!
this
.
modal
.
time
)
{
this
.
message
.
error
(
'请选择完成时间'
);
return
false
;
}
if
(
!
this
.
modal
.
processRemark
)
{
if
(
!
this
.
modal
.
processRemark
)
{
this
.
message
.
error
(
'请输入
必填项
'
);
this
.
message
.
error
(
'请输入
处理情况
'
);
return
return
;
}
}
const
data
=
{
const
data
=
{
planId
:
this
.
modal
.
planId
,
planId
:
this
.
modal
.
planId
,
processResult
:
this
.
modal
.
processResult
,
processResult
:
this
.
modal
.
processResult
,
processRemark
:
this
.
modal
.
processRemark
,
processRemark
:
this
.
modal
.
processRemark
,
completeTime
:
new
Date
(
this
.
datePipe
.
transform
(
this
.
modal
.
date
,
'yyyy-MM-dd'
)
+
' '
+
this
.
datePipe
.
transform
(
this
.
modal
.
time
,
'HH:mm:ss'
)).
getTime
()
};
};
this
.
modal
.
isOkLoading
=
true
;
this
.
modal
.
isOkLoading
=
true
;
this
.
workSer
.
processPlan
(
data
).
subscribe
(
this
.
workSer
.
processPlan
(
data
).
subscribe
(
...
...
tsconfig.json
View file @
c3eee9c4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
"noImplicitAny"
:
false
,
"noImplicitAny"
:
false
,
"skipLibCheck"
:
true
,
"skipLibCheck"
:
true
,
"suppressImplicitAnyIndexErrors"
:
true
,
"suppressImplicitAnyIndexErrors"
:
true
,
"outDir"
:
"build/
www
/app"
,
"outDir"
:
"build/
master
/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