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
15e05341
Commit
15e05341
authored
Dec 28, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9f998d12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
plan-modal.component.html
...ebapp/app/work/modal/plan-modal/plan-modal.component.html
+2
-2
plan-modal.component.ts
.../webapp/app/work/modal/plan-modal/plan-modal.component.ts
+12
-3
No files found.
src/main/webapp/app/work/modal/plan-modal/plan-modal.component.html
View file @
15e05341
...
...
@@ -155,7 +155,7 @@
<div
nz-row
[
nzGutter
]="
24
"
>
<div
nz-col
[
nzSpan
]="
12
"
>
<nz-form-item
nzFlex
>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nz
Required
nz
For=
"description"
>
计划描述
</nz-form-label>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzFor=
"description"
>
计划描述
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<textarea
nz-input
id=
"description"
name=
"description"
formControlName=
"description"
placeholder=
"计划描述"
[
nzAutosize
]="{
minRows:
2
,
maxRows:
6
}"
></textarea>
</nz-form-control>
...
...
@@ -166,7 +166,7 @@
<div
nz-row
[
nzGutter
]="
24
"
>
<div
nz-col
[
nzSpan
]="
12
"
>
<nz-form-item
nzFlex
>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nz
Required
nz
For=
"file"
>
附件
</nz-form-label>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzFor=
"file"
>
附件
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-upload
[
nzBeforeUpload
]="
beforeUpload
"
...
...
src/main/webapp/app/work/modal/plan-modal/plan-modal.component.ts
View file @
15e05341
...
...
@@ -18,7 +18,8 @@ export class PlanModalComponent implements OnInit {
title
;
isVisiable
=
false
;
validateForm
:
FormGroup
;
fileList
:
UploadFile
[]
=
[];
fileList
=
[];
modalTitle
;
participantsList
=
[];
//参与人
...
...
@@ -69,7 +70,7 @@ export class PlanModalComponent implements OnInit {
if
(
!
isLt5M
)
{
this
.
message
.
error
(
' 文件必须小于5M!'
);
}
else
{
this
.
fileList
.
push
(
file
)
;
this
.
fileList
[
0
]
=
file
;
}
return
false
;
};
...
...
@@ -85,6 +86,14 @@ export class PlanModalComponent implements OnInit {
this
.
isVisiable
=
true
;
this
.
workSer
.
findPlan
(
id
).
subscribe
(
(
res
)
=>
{
res
.
data
.
number
+=
""
;
this
.
participantsList
=
res
.
data
.
participants
;
this
.
principalsList
=
res
.
data
.
principals
;
this
.
fileList
=
[
{
name
:
res
.
data
.
file
,
}
]
this
.
validateForm
.
patchValue
(
res
.
data
);
}
)
...
...
@@ -145,8 +154,8 @@ export class PlanModalComponent implements OnInit {
this
.
fileList
.
forEach
((
file
:
any
)
=>
{
formData
.
append
(
'file'
,
file
);
});
this
.
validateForm
.
value
.
id
=
this
.
planId
;
formData
.
append
(
'json'
,
JSON
.
stringify
(
this
.
validateForm
.
value
));
formData
.
append
(
'id'
,
this
.
planId
);
this
.
workSer
.
updatePlan
(
formData
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
...
...
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