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
c1f098bd
Commit
c1f098bd
authored
Feb 11, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
录屏优化
parent
669b566d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
39 deletions
+49
-39
src/app/my/application-process/employee-basic-info/employee-basic-info.component.scss
+3
-4
src/app/my/application-process/signature/signature.component.ts
+20
-17
src/app/my/e-notice-sign/e-notice-sign.component.ts
+12
-9
src/app/my/e-notice/e-notice.component.ts
+13
-9
src/index.html
+1
-0
No files found.
src/app/my/application-process/employee-basic-info/employee-basic-info.component.scss
View file @
c1f098bd
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
font-size
:
18px
;
font-size
:
18px
;
}
}
select
.form-control
{
select
.form-control
{
direction
:
rtl
;
direction
:
rtl
;
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
// background-color: transparent;
// background-color: transparent;
// color: #999;
// color: #999;
// }
// }
}
}
.contentDetail.employ
.contentItem
{
.contentDetail.employ
.contentItem
{
padding
:
10px
0
;
padding
:
10px
0
;
...
@@ -110,4 +110,4 @@
...
@@ -110,4 +110,4 @@
height
:
56px
;
height
:
56px
;
line-height
:
56px
;
line-height
:
56px
;
}
}
}
}
\ No newline at end of file
src/app/my/application-process/signature/signature.component.ts
View file @
c1f098bd
...
@@ -3,7 +3,7 @@ import { MyService } from '../../my.service';
...
@@ -3,7 +3,7 @@ import { MyService } from '../../my.service';
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
import
{
LifeCommonService
}
from
"../../../common/life-common.service"
;
import
{
LifeCommonService
}
from
"../../../common/life-common.service"
;
import
{
SignaturePad
}
from
'angular2-signaturepad'
;
import
{
SignaturePad
}
from
'angular2-signaturepad'
;
declare
var
rrweb
Record
:
any
;
declare
var
rrweb
:
any
;
@
Component
({
@
Component
({
selector
:
'ydlife-signature'
,
selector
:
'ydlife-signature'
,
templateUrl
:
'./signature.component.html'
,
templateUrl
:
'./signature.component.html'
,
...
@@ -36,15 +36,26 @@ export class SignatureComponent implements OnInit {
...
@@ -36,15 +36,26 @@ export class SignatureComponent implements OnInit {
}
}
ngOnDestroy
():
void
{
ngOnDestroy
():
void
{
clearInterval
(
this
.
timerId
)
clearInterval
(
this
.
timerId
)
}
}
saveRecord
(){
creatRecord
(){
this
.
myService
.
rrwebInfo
(
this
.
events
,
this
.
pageInfo
).
subscribe
(
res
=>
{
let
_this
=
this
;
// console.log(res);
_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
()
})
}
ngOnInit
()
{
ngOnInit
()
{
this
.
type
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
type
?
this
.
activatedRoute
.
snapshot
.
queryParams
.
type
:
null
;
this
.
type
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
type
?
this
.
activatedRoute
.
snapshot
.
queryParams
.
type
:
null
;
this
.
signaturePadOptions
=
{
this
.
signaturePadOptions
=
{
...
@@ -64,15 +75,7 @@ export class SignatureComponent implements OnInit {
...
@@ -64,15 +75,7 @@ export class SignatureComponent implements OnInit {
this
.
queryWholeInfo
(
this
.
hiringBasicInfoId
)
this
.
queryWholeInfo
(
this
.
hiringBasicInfoId
)
this
.
viewApprovalInfo
=
sessionStorage
.
getItem
(
'viewApprovalInfo'
);
this
.
viewApprovalInfo
=
sessionStorage
.
getItem
(
'viewApprovalInfo'
);
}
}
let
_this
=
this
;
this
.
creatRecord
();
_this
.
events
=
[];
rrwebRecord
({
emit
(
event
){
// 将evene存入events数组中
_this
.
events
.
push
(
event
);
},
recordCanvas
:
true
});
this
.
timerId
=
setInterval
(()
=>
{
this
.
saveRecord
()},
10
*
1000
);
this
.
timerId
=
setInterval
(()
=>
{
this
.
saveRecord
()},
10
*
1000
);
}
}
...
...
src/app/my/e-notice-sign/e-notice-sign.component.ts
View file @
c1f098bd
import
{
Component
,
OnDestroy
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnDestroy
,
OnInit
}
from
'@angular/core'
;
import
{
Router
}
from
'@angular/router'
;
import
{
Router
}
from
'@angular/router'
;
import
{
MyService
}
from
'../my.service'
;
import
{
MyService
}
from
'../my.service'
;
declare
var
rrweb
Record
:
any
;
declare
var
rrweb
:
any
;
@
Component
({
@
Component
({
selector
:
'ydlife-e-notice-sign'
,
selector
:
'ydlife-e-notice-sign'
,
...
@@ -18,23 +18,26 @@ export class ENoticeSignComponent implements OnInit,OnDestroy {
...
@@ -18,23 +18,26 @@ export class ENoticeSignComponent implements OnInit,OnDestroy {
constructor
(
private
router
:
Router
,
private
myService
:
MyService
)
{
}
constructor
(
private
router
:
Router
,
private
myService
:
MyService
)
{
}
ngOnInit
()
{
ngOnInit
()
{
this
.
creatRecord
();
this
.
timerId
=
setInterval
(()
=>
{
this
.
saveRecord
()},
10
*
1000
);}
ngOnDestroy
():
void
{
clearInterval
(
this
.
timerId
)
}
creatRecord
(){
let
_this
=
this
;
let
_this
=
this
;
_this
.
events
=
[];
_this
.
events
=
[];
rrweb
R
ecord
({
rrweb
.
r
ecord
({
emit
(
event
){
emit
(
event
){
// 将evene存入events数组中
// 将evene存入events数组中
_this
.
events
.
push
(
event
);
_this
.
events
.
push
(
event
);
}
},
recordCanvas
:
true
});
});
this
.
timerId
=
setInterval
(()
=>
{
this
.
saveRecord
()},
10
*
1000
)
}
}
ngOnDestroy
():
void
{
clearInterval
(
this
.
timerId
)
}
saveRecord
(){
saveRecord
(){
this
.
myService
.
rrwebInfo
(
this
.
events
,
this
.
pageInfo
).
subscribe
(
res
=>
{
this
.
myService
.
rrwebInfo
(
this
.
events
,
this
.
pageInfo
).
subscribe
(
res
=>
{
// console.log(res);
this
.
creatRecord
()
})
})
}
}
agree
(){
agree
(){
...
...
src/app/my/e-notice/e-notice.component.ts
View file @
c1f098bd
...
@@ -2,7 +2,7 @@ import { Component, OnDestroy, OnInit } from '@angular/core';
...
@@ -2,7 +2,7 @@ import { Component, OnDestroy, OnInit } from '@angular/core';
import
{
ActivatedRoute
}
from
"@angular/router"
;
import
{
ActivatedRoute
}
from
"@angular/router"
;
import
{
Router
}
from
'@angular/router'
;
import
{
Router
}
from
'@angular/router'
;
import
{
MyService
}
from
'../my.service'
;
import
{
MyService
}
from
'../my.service'
;
declare
var
rrweb
Record
:
any
;
declare
var
rrweb
:
any
;
@
Component
({
@
Component
({
selector
:
'ydlife-e-notice'
,
selector
:
'ydlife-e-notice'
,
...
@@ -23,23 +23,27 @@ export class ENoticeComponent implements OnInit,OnDestroy {
...
@@ -23,23 +23,27 @@ export class ENoticeComponent implements OnInit,OnDestroy {
ngOnInit
()
{
ngOnInit
()
{
this
.
pageType
=
this
.
activatedRoute
.
url
[
'value'
][
0
][
'path'
];
this
.
pageType
=
this
.
activatedRoute
.
url
[
'value'
][
0
][
'path'
];
this
.
creatRecord
();
this
.
timerId
=
setInterval
(()
=>
{
this
.
saveRecord
()},
10
*
1000
);
}
ngOnDestroy
():
void
{
clearInterval
(
this
.
timerId
)
}
creatRecord
(){
let
_this
=
this
;
let
_this
=
this
;
_this
.
events
=
[];
_this
.
events
=
[];
rrweb
R
ecord
({
rrweb
.
r
ecord
({
emit
(
event
){
emit
(
event
){
// 将evene存入events数组中
// 将evene存入events数组中
_this
.
events
.
push
(
event
);
_this
.
events
.
push
(
event
);
}
},
recordCanvas
:
true
});
});
this
.
timerId
=
setInterval
(()
=>
{
this
.
saveRecord
()},
10
*
1000
)
}
}
ngOnDestroy
():
void
{
clearInterval
(
this
.
timerId
)
}
saveRecord
(){
saveRecord
(){
this
.
myService
.
rrwebInfo
(
this
.
events
,
this
.
pageInfo
).
subscribe
(
res
=>
{
this
.
myService
.
rrwebInfo
(
this
.
events
,
this
.
pageInfo
).
subscribe
(
res
=>
{
// console.log(res);
this
.
creatRecord
()
})
})
}
}
agree
(){
agree
(){
...
...
src/index.html
View file @
c1f098bd
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
<script
src=
"./assets/js/qrcode.js"
></script>
<script
src=
"./assets/js/qrcode.js"
></script>
<!--<script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>-->
<!--<script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>-->
<script
src=
"https://cdn.jsdelivr.net/npm/rrweb@latest/dist/record/rrweb-record.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/rrweb@latest/dist/record/rrweb-record.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.js"
></script>
<script
src=
"https://res2.wx.qq.com/open/js/jweixin-1.4.0.js"
></script>
<script
src=
"https://res2.wx.qq.com/open/js/jweixin-1.4.0.js"
></script>
<script
src=
"./assets/LCalendar/LCalendar.js"
></script>
<script
src=
"./assets/LCalendar/LCalendar.js"
></script>
<script
src=
"./assets/laydate/laydate.js"
></script>
<script
src=
"./assets/laydate/laydate.js"
></script>
...
...
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