Commit de877614 by Sweet Zhang

增加报聘页面个人声明和合同文档确认页面的录屏

parent 30bd9281
...@@ -4,17 +4,19 @@ import { ...@@ -4,17 +4,19 @@ import {
ViewChild, ViewChild,
ElementRef, ElementRef,
HostListener, HostListener,
OnDestroy,
} from "@angular/core"; } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router"; import { ActivatedRoute, Router } from "@angular/router";
import { MyService } from "../../my.service"; import { MyService } from "../../my.service";
import { LifeCommonService } from "../../../common/life-common.service"; import { LifeCommonService } from "../../../common/life-common.service";
declare var rrwebRecord:any;
@Component({ @Component({
selector: "ydlife-personal-statement", selector: "ydlife-personal-statement",
templateUrl: "./personal-statement.component.html", templateUrl: "./personal-statement.component.html",
styleUrls: ["./personal-statement.component.scss"], styleUrls: ["./personal-statement.component.scss"],
}) })
export class PersonalStatementComponent implements OnInit { export class PersonalStatementComponent implements OnInit,OnDestroy {
@ViewChild("autofocusFlag") elementView: ElementRef; @ViewChild("autofocusFlag") elementView: ElementRef;
@ViewChild("contract") toastContent: ElementRef; @ViewChild("contract") toastContent: ElementRef;
//判断是个人声明还是合同确认 //判断是个人声明还是合同确认
...@@ -38,6 +40,12 @@ export class PersonalStatementComponent implements OnInit { ...@@ -38,6 +40,12 @@ export class PersonalStatementComponent implements OnInit {
approveStatus: any; approveStatus: any;
agreeBtnShow: boolean = false; agreeBtnShow: boolean = false;
timeCount: number = 5; timeCount: number = 5;
timerId:any;
events:Array<any>;
pageInfo = {
type:8,
name:'报聘个人声明确认页'
}
constructor( constructor(
private myService: MyService, private myService: MyService,
private activatedRoute: ActivatedRoute, private activatedRoute: ActivatedRoute,
...@@ -58,11 +66,33 @@ export class PersonalStatementComponent implements OnInit { ...@@ -58,11 +66,33 @@ export class PersonalStatementComponent implements OnInit {
} }
if (this.type == "contract") { if (this.type == "contract") {
this.queryContractTerms(); this.queryContractTerms();
this.pageInfo = {
type:9,
name:'报聘合同文档确认页'
}
} }
let _this = this;
_this.events = [];
rrwebRecord({
emit(event){
// 将evene存入events数组中
_this.events.push(event);
},
recordCanvas: true
});
this.timerId = setInterval(()=>{ this.saveRecord()},10 * 1000);
} }
ngOnChanges() {} ngOnChanges() {}
ngOnDestroy(): void {
clearInterval(this.timerId)
}
saveRecord(){
this.myService.rrwebInfo(this.events,this.pageInfo).subscribe(res=>{
// console.log(res);
})
}
next() { next() {
if (this.type == "personal_statement") { if (this.type == "personal_statement") {
this.savePersonalStatements(); this.savePersonalStatements();
...@@ -346,11 +376,13 @@ export class PersonalStatementComponent implements OnInit { ...@@ -346,11 +376,13 @@ export class PersonalStatementComponent implements OnInit {
viewNext() { viewNext() {
if (this.type == "personal_statement") { if (this.type == "personal_statement") {
this.saveRecord();
this.router.navigate(["/contract"], { this.router.navigate(["/contract"], {
queryParams: { hiringBasicInfoId: this.hiringBasicInfoId }, queryParams: { hiringBasicInfoId: this.hiringBasicInfoId },
}); });
} }
if (this.type == "contract") { if (this.type == "contract") {
this.saveRecord();
this.router.navigate(["/signature"], { this.router.navigate(["/signature"], {
queryParams: { hiringBasicInfoId: this.hiringBasicInfoId }, queryParams: { hiringBasicInfoId: this.hiringBasicInfoId },
}); });
......
...@@ -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:any; declare var rrwebRecord:any;
@Component({ @Component({
selector: 'ydlife-signature', selector: 'ydlife-signature',
templateUrl: './signature.component.html', templateUrl: './signature.component.html',
...@@ -66,7 +66,7 @@ export class SignatureComponent implements OnInit { ...@@ -66,7 +66,7 @@ export class SignatureComponent implements OnInit {
} }
let _this = this; let _this = this;
_this.events = []; _this.events = [];
rrweb.record({ rrwebRecord({
emit(event){ emit(event){
// 将evene存入events数组中 // 将evene存入events数组中
_this.events.push(event); _this.events.push(event);
......
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:any; declare var rrwebRecord:any;
@Component({ @Component({
selector: 'ydlife-e-notice-sign', selector: 'ydlife-e-notice-sign',
...@@ -20,7 +20,7 @@ export class ENoticeSignComponent implements OnInit,OnDestroy { ...@@ -20,7 +20,7 @@ export class ENoticeSignComponent implements OnInit,OnDestroy {
ngOnInit() { ngOnInit() {
let _this = this; let _this = this;
_this.events = []; _this.events = [];
rrweb.record({ rrwebRecord({
emit(event){ emit(event){
// 将evene存入events数组中 // 将evene存入events数组中
_this.events.push(event); _this.events.push(event);
......
...@@ -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:any; declare var rrwebRecord:any;
@Component({ @Component({
selector: 'ydlife-e-notice', selector: 'ydlife-e-notice',
...@@ -25,7 +25,7 @@ export class ENoticeComponent implements OnInit,OnDestroy { ...@@ -25,7 +25,7 @@ export class ENoticeComponent implements OnInit,OnDestroy {
this.pageType = this.activatedRoute.url['value'][0]['path']; this.pageType = this.activatedRoute.url['value'][0]['path'];
let _this = this; let _this = this;
_this.events = []; _this.events = [];
rrweb.record({ rrwebRecord({
emit(event){ emit(event){
// 将evene存入events数组中 // 将evene存入events数组中
_this.events.push(event); _this.events.push(event);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment