Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
9dae69dc
Commit
9dae69dc
authored
Feb 04, 2021
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加按钮控制工作单位职位必填
parent
6655c1ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
src/app/my/application-process/work-experience/work-experience.component.html
+1
-1
src/app/my/application-process/work-experience/work-experience.component.ts
+13
-1
No files found.
src/app/my/application-process/work-experience/work-experience.component.html
View file @
9dae69dc
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
</li>
</li>
<li>
<li>
<span>
任职结束时间
</span>
<span>
任职结束时间
</span>
<span>
{{experienceItem.workingEnd}}
</span>
<span>
{{experienceItem.workingEnd
?experienceItem.workingEnd:'至今'
}}
</span>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
...
src/app/my/application-process/work-experience/work-experience.component.ts
View file @
9dae69dc
...
@@ -66,8 +66,20 @@ export class WorkExperienceComponent implements OnInit {
...
@@ -66,8 +66,20 @@ export class WorkExperienceComponent implements OnInit {
}
}
addExperienceList
()
{
addExperienceList
()
{
if
(
!
this
.
addExperience
.
workingCompany
){
this
.
openPopInfo
(
'请输入工作单位!'
)
return
;
}
if
(
!
this
.
addExperience
.
position
){
this
.
openPopInfo
(
'请输入职位!'
)
return
;
}
if
(
!
this
.
addExperience
.
workingStart
){
this
.
openPopInfo
(
'请输入选择任职起始时间!'
)
return
;
}
//先push进去list在清空
//先push进去list在清空
if
(
this
.
addExperience
.
workingCompany
||
this
.
addExperience
.
position
||
this
.
addExperience
.
workingStart
||
this
.
addExperience
.
workingEnd
){
if
(
this
.
addExperience
.
workingCompany
&&
this
.
addExperience
.
position
&&
this
.
addExperience
.
workingStart
){
this
.
experienceList
.
push
(
this
.
addExperience
)
this
.
experienceList
.
push
(
this
.
addExperience
)
this
.
showworkingStart
=
null
;
this
.
showworkingStart
=
null
;
this
.
showworkingEnd
=
null
;
this
.
showworkingEnd
=
null
;
...
...
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