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
0a964589
Commit
0a964589
authored
Dec 29, 2020
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签名插件更换
parent
9c463aa2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
7 deletions
+39
-7
src/app/my/application-process/signature/signature.component.html
+6
-2
src/app/my/application-process/signature/signature.component.scss
+4
-0
src/app/my/application-process/signature/signature.component.ts
+26
-3
src/app/my/my.module.ts
+1
-0
src/app/my/recruiting-detail/recruiting-detail.component.ts
+2
-2
No files found.
src/app/my/application-process/signature/signature.component.html
View file @
0a964589
...
...
@@ -6,8 +6,12 @@
</div>
<span
class=
"page_mark"
>
8/8
</span>
</div>
<div
id=
"signature"
></div>
<!-- <signature-pad id="signatureCanvas" [options]="signaturePadOptions"></signature-pad> -->
<!-- <div id="signature"></div> -->
<signature-pad
#
signaturePad
[
options
]="
signaturePadOptions
"
(
onBeginEvent
)="
drawStart
()"
(
onEndEvent
)="
drawComplete
()"
>
</signature-pad>
<footer
class=
"fixed"
(
click
)="
next
()"
>
我自愿签订经纪人合同书
</footer>
...
...
src/app/my/application-process/signature/signature.component.scss
View file @
0a964589
...
...
@@ -12,4 +12,7 @@
font-weight
:
bold
;
align-items
:
center
;
}
.signatureContent
{
}
}
\ No newline at end of file
src/app/my/application-process/signature/signature.component.ts
View file @
0a964589
import
{
Component
,
OnInit
,
ViewChild
}
from
'@angular/core'
;
import
{
Component
,
OnInit
,
ViewChild
,
ElementRef
}
from
'@angular/core'
;
import
{
MyService
}
from
'../../my.service'
;
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
import
{
LifeCommonService
}
from
"../../../common/life-common.service"
;
import
{
SignaturePad
}
from
'angular2-signaturepad'
import
{
SignaturePad
}
from
'angular2-signaturepad'
;
import
EleSign
from
"elesigncode"
;
import
*
as
$
from
'jquery'
;
@
Component
({
...
...
@@ -12,7 +13,8 @@ import * as $ from 'jquery';
})
export
class
SignatureComponent
implements
OnInit
{
signatureImage
:
string
;
@
ViewChild
(
SignaturePad
)
signaturePad
:
SignaturePad
;
signaturePadOptions
:
any
@
ViewChild
(
SignaturePad
)
signaturePad
:
SignaturePad
;
constructor
(
private
activatedRoute
:
ActivatedRoute
,
private
router
:
Router
,
public
lifeCommonService
:
LifeCommonService
,
public
myService
:
MyService
)
{
...
...
@@ -20,6 +22,16 @@ export class SignatureComponent implements OnInit {
}
ngOnInit
()
{
this
.
signaturePadOptions
=
{
minWidth
:
2
,
maxWidth
:
5
,
dotSize
:
1.5
,
penColor
:
"#333"
,
/* INVERSE BECAUSE IT IS SHOW ONLY IN LANDSCAPE */
canvasWidth
:
800
,
canvasHeight
:
600
,
backgroundColor
:
"rgb(248 248 248)"
}
const
title
=
this
.
activatedRoute
.
snapshot
.
data
[
0
][
'title'
];
this
.
lifeCommonService
.
setTitle
(
title
);
var
ele
=
document
.
getElementById
(
"signature"
);
...
...
@@ -31,4 +43,15 @@ export class SignatureComponent implements OnInit {
next
(){
this
.
router
.
navigate
([
'/employee_submit'
]);
}
drawComplete
()
{
// will be notified of szimek/signature_pad's onEnd event
console
.
log
(
this
.
signaturePad
.
toDataURL
());
}
drawStart
()
{
// will be notified of szimek/signature_pad's onBegin event
console
.
log
(
'begin drawing'
);
}
}
src/app/my/my.module.ts
View file @
0a964589
...
...
@@ -50,6 +50,7 @@ import { SignatureComponent } from './application-process/signature/signature.co
import
{
EmployeeSubmitComponent
}
from
'./application-process/employee-submit/employee-submit.component'
;
import
{
BankCardComponent
}
from
'./application-process/bank-card/bank-card.component'
;
import
{
SignaturePadModule
}
from
'angular2-signaturepad'
;
@
NgModule
({
declarations
:
[
MyCenterHomeComponent
,
MkMaterialComponent
,
MkMaterialDetailComponent
,
FileUploadComponent
,
ImportantAnnouncementComponent
,
SalesDetailComponent
,
AnnouncementDetailComponent
,
MyBusinessComponent
,
MyBusinessDetailComponent
,
PickerComponent
,
MyToastComponent
,
SalesRankComponent
,
TeamRankComponent
,
RecruitingComponent
,
RecruitingDetailComponent
,
ThanksComponent
,
MySettingComponent
,
MySettingDetailComponent
,
MyNewsComponent
,
MyTargetComponent
,
TeamPanelComponent
,
SwitchNumberPipe
,
TeamSalesScoreComponent
,
ScoreDetailsComponent
,
BusinessCardComponent
,
OrderDetailComponent
,
SalaryComponent
,
TodoListComponent
,
AddTaskComponent
,
MedicalServiceComponent
,
InvitationComponent
,
RegisterComponent
,
EmployeeInfoComponent
,
EmployeeBasicInfoComponent
,
WorkExperienceComponent
,
PersonalPhotosComponent
,
EmployeeIdCardComponent
,
EmployeeEducationComponent
,
PersonalStatementComponent
,
SignatureComponent
,
EmployeeSubmitComponent
,
BankCardComponent
],
imports
:
[
...
...
src/app/my/recruiting-detail/recruiting-detail.component.ts
View file @
0a964589
...
...
@@ -55,7 +55,7 @@ export class RecruitingDetailComponent implements OnInit {
{
id
:
1
,
name
:
'基本信息'
},
{
id
:
2
,
name
:
'简历'
},
{
id
:
3
,
name
:
'增员跟进'
},
//
{ id: 4, name: '发送报聘'}
{
id
:
4
,
name
:
'发送报聘'
}
]
}
...
...
@@ -109,7 +109,7 @@ export class RecruitingDetailComponent implements OnInit {
if
(
this
.
hiringBasicInfoId
){
this
.
queryWholeInfo
();
}
else
{
this
.
employQuery
=
new
EmployQuery
(
this
.
employQuery
.
name
,
null
,
null
,
this
.
potentialId
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
)
this
.
employQuery
=
new
EmployQuery
(
this
.
employQuery
.
name
,
null
,
this
.
hiringBasicInfoId
,
this
.
potentialId
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
)
}
}
}
else
{
...
...
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