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
d8b227f5
Commit
d8b227f5
authored
Feb 14, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加提交成功的跟踪
parent
c1f098bd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
24 deletions
+64
-24
src/app/my/application-process/employee-submit/employee-submit.component.ts
+27
-1
src/app/my/application-process/personal-statement/personal-statement.component.ts
+19
-15
src/app/my/application-process/signature/signature.component.ts
+10
-3
src/app/my/recruiting-detail/recruiting-detail.component.scss
+4
-3
src/app/my/recruiting/recruiting.component.scss
+4
-2
No files found.
src/app/my/application-process/employee-submit/employee-submit.component.ts
View file @
d8b227f5
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
On
Destroy
,
On
Init
}
from
'@angular/core'
;
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
import
{
LifeCommonService
}
from
"../../../common/life-common.service"
;
import
{
MyService
}
from
'../../my.service'
;
declare
var
rrweb
:
any
;
@
Component
({
selector
:
'ydlife-employee-submit'
,
templateUrl
:
'./employee-submit.component.html'
,
...
...
@@ -14,6 +15,12 @@ export class EmployeeSubmitComponent implements OnInit {
dialogInfo
:
any
;
// 判断是哪个成功页面
type
:
string
;
timerId
:
any
;
events
:
Array
<
any
>
;
pageInfo
=
{
type
:
10
,
name
:
'提交成功页'
}
constructor
(
private
activatedRoute
:
ActivatedRoute
,
public
lifeCommonService
:
LifeCommonService
,
private
myService
:
MyService
)
{
}
...
...
@@ -30,8 +37,27 @@ export class EmployeeSubmitComponent implements OnInit {
this
.
hiringSubmit
();
}
}
this
.
creatRecord
();
}
creatRecord
(){
let
_this
=
this
;
_this
.
events
=
[];
rrweb
.
record
({
emit
(
event
){
// 将evene存入events数组中
_this
.
events
.
push
(
event
);
console
.
log
(
'@@@'
,
_this
.
events
)
},
recordCanvas
:
true
});
setTimeout
(()
=>
{
this
.
myService
.
rrwebInfo
(
this
.
events
,
this
.
pageInfo
).
subscribe
(
res
=>
{
})
},
5
*
1000
)
}
hiringSubmit
(){
this
.
myService
.
hiringSubmit
({
hiringBasicInfoId
:
this
.
hiringBasicInfoId
}).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
]){
...
...
src/app/my/application-process/personal-statement/personal-statement.component.ts
View file @
d8b227f5
...
...
@@ -9,7 +9,7 @@ import {
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
import
{
MyService
}
from
"../../my.service"
;
import
{
LifeCommonService
}
from
"../../../common/life-common.service"
;
declare
var
rrweb
Record
:
any
;
declare
var
rrweb
:
any
;
@
Component
({
selector
:
"ydlife-personal-statement"
,
...
...
@@ -71,15 +71,7 @@ export class PersonalStatementComponent implements OnInit,OnDestroy {
name
:
'报聘合同文档确认页'
}
}
let
_this
=
this
;
_this
.
events
=
[];
rrwebRecord
({
emit
(
event
){
// 将evene存入events数组中
_this
.
events
.
push
(
event
);
},
recordCanvas
:
true
});
this
.
creatRecord
();
this
.
timerId
=
setInterval
(()
=>
{
this
.
saveRecord
()},
10
*
1000
);
}
...
...
@@ -88,11 +80,22 @@ export class PersonalStatementComponent implements OnInit,OnDestroy {
clearInterval
(
this
.
timerId
)
}
saveRecord
(){
this
.
myService
.
rrwebInfo
(
this
.
events
,
this
.
pageInfo
).
subscribe
(
res
=>
{
// console.log(res);
})
}
creatRecord
(){
let
_this
=
this
;
_this
.
events
=
[];
rrweb
.
record
({
emit
(
event
){
// 将evene存入events数组中
_this
.
events
.
push
(
event
);
},
recordCanvas
:
true
});
}
saveRecord
(){
this
.
myService
.
rrwebInfo
(
this
.
events
,
this
.
pageInfo
).
subscribe
(
res
=>
{
this
.
creatRecord
()
})
}
next
()
{
if
(
this
.
type
==
"personal_statement"
)
{
this
.
savePersonalStatements
();
...
...
@@ -102,6 +105,7 @@ export class PersonalStatementComponent implements OnInit,OnDestroy {
return
;
}
this
.
saveContractTermsConfirms
();
this
.
saveRecord
();
this
.
router
.
navigate
([
"/signature"
],
{
queryParams
:
{
hiringBasicInfoId
:
this
.
hiringBasicInfoId
},
});
...
...
src/app/my/application-process/signature/signature.component.ts
View file @
d8b227f5
import
{
Component
,
OnInit
,
ViewChild
,
ElementRef
}
from
'@angular/core'
;
import
{
Component
,
OnInit
,
ViewChild
,
ElementRef
,
OnDestroy
}
from
'@angular/core'
;
import
{
MyService
}
from
'../../my.service'
;
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
import
{
LifeCommonService
}
from
"../../../common/life-common.service"
;
...
...
@@ -9,7 +9,7 @@ declare var rrweb:any;
templateUrl
:
'./signature.component.html'
,
styleUrls
:
[
'./signature.component.scss'
]
})
export
class
SignatureComponent
implements
OnInit
{
export
class
SignatureComponent
implements
OnInit
,
OnDestroy
{
hiringBasicInfoId
:
any
;
signatureImage
:
string
;
signaturePadOptions
:
any
;
...
...
@@ -24,7 +24,7 @@ export class SignatureComponent implements OnInit {
todayDate
:
Date
=
new
Date
();
@
ViewChild
(
SignaturePad
)
signaturePad
:
SignaturePad
;
timerId
:
any
;
events
:
Array
<
any
>
;
events
:
Array
<
any
>
=
[]
;
pageInfo
=
{
type
:
7
,
name
:
'签字页面'
...
...
@@ -57,6 +57,7 @@ export class SignatureComponent implements OnInit {
})
}
ngOnInit
()
{
console
.
log
(
'===='
);
this
.
type
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
type
?
this
.
activatedRoute
.
snapshot
.
queryParams
.
type
:
null
;
this
.
signaturePadOptions
=
{
minWidth
:
0.5
,
...
...
@@ -110,6 +111,7 @@ export class SignatureComponent implements OnInit {
this
.
myService
.
signInformedSheet
({
'id'
:
sessionStorage
.
getItem
(
'eNoticeId'
),
imgStr
:
this
.
imgStr
}).
subscribe
(
res
=>
{
if
(
res
[
'success'
]){
// 确认提交
this
.
saveRecord
();
this
.
router
.
navigate
([
'/eNotice_submit'
]);
}
else
{
this
.
openPopInfo
(
res
[
'message'
]);
...
...
@@ -129,6 +131,7 @@ export class SignatureComponent implements OnInit {
this
.
myService
.
signCommitment
(
param
).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
]){
// 确认提交
this
.
saveRecord
();
this
.
router
.
navigate
([
'/eNotice_submit'
]);
}
else
{
this
.
openPopInfo
(
res
[
'message'
]);
...
...
@@ -142,6 +145,7 @@ export class SignatureComponent implements OnInit {
this
.
myService
.
saveDigitalSignatures
(
param
).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
]){
this
.
queryWholeInfo
(
this
.
hiringBasicInfoId
);
this
.
saveRecord
();
this
.
router
.
navigate
([
'/employee_submit'
],{
queryParams
:{
hiringBasicInfoId
:
this
.
hiringBasicInfoId
,
status
:
this
.
approveStatus
}});
}
else
{
this
.
openPopInfo
(
res
[
'message'
]);
...
...
@@ -203,8 +207,10 @@ export class SignatureComponent implements OnInit {
viewNext
(){
if
(
this
.
viewApprovalInfo
==
0
){
this
.
saveRecord
();
this
.
router
.
navigate
([
'/approval_comments'
],{
queryParams
:
{
hiringBasicInfoId
:
this
.
hiringBasicInfoId
}
});
}
else
{
this
.
saveRecord
();
this
.
router
.
navigate
([
'/employee_submit'
],{
queryParams
:{
hiringBasicInfoId
:
this
.
hiringBasicInfoId
,
status
:
this
.
approveStatus
}});
}
}
...
...
@@ -214,6 +220,7 @@ export class SignatureComponent implements OnInit {
}
returnResult
(){
this
.
saveRecord
();
this
.
router
.
navigate
([
`/approval_result_list`
],{
queryParams
:{
hiringBasicInfoId
:
this
.
hiringBasicInfoId
}})
}
...
...
src/app/my/recruiting-detail/recruiting-detail.component.scss
View file @
d8b227f5
...
...
@@ -8,6 +8,9 @@
footer
{
width
:
100%
;
height
:
56px
;
min-width
:
320px
;
max-width
:
640px
;
margin
:
0
auto
;
background
:
#C81B1E
;
line-height
:
56px
;
position
:
fixed
;
...
...
@@ -80,7 +83,7 @@
display
:
flex
;
flex-wrap
:
wrap
;
font-size
:
16px
;
}
select
.form-control
{
direction
:
rtl
;
...
...
@@ -317,4 +320,3 @@
top
:
0
;
}
}
\ No newline at end of file
src/app/my/recruiting/recruiting.component.scss
View file @
d8b227f5
...
...
@@ -106,6 +106,9 @@
width
:
100%
;
height
:
50px
;
line-height
:
50px
;
min-width
:
320px
;
max-width
:
640px
;
margin
:
0
auto
;
background
:
#1b5b99
;
color
:
#fff
;
font-size
:
18px
;
...
...
@@ -113,4 +116,4 @@
bottom
:
0
;
text-align
:
center
;
}
}
\ No newline at end of file
}
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