react_hsbc_teller 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -68,6 +68,7 @@ class Video extends Component {
|
|
|
68
68
|
cancel = axios.CancelToken.source()
|
|
69
69
|
signCanvas = React.createRef();
|
|
70
70
|
state = {
|
|
71
|
+
signNoClick: false,
|
|
71
72
|
listVideoPicture: [],
|
|
72
73
|
isScreenSwitching: false,
|
|
73
74
|
whiteboardWidth: '',
|
|
@@ -278,6 +279,7 @@ class Video extends Component {
|
|
|
278
279
|
try {
|
|
279
280
|
let result = await API.getBase64Image({ fileName: data});
|
|
280
281
|
console.log('getBase64Image',result)
|
|
282
|
+
this.tabTitlesClick('customerScreen', 'delect')
|
|
281
283
|
this.props.imgCallback({
|
|
282
284
|
type: result.data.type + '',
|
|
283
285
|
file: result.data.base64Image}
|
|
@@ -1453,6 +1455,7 @@ class Video extends Component {
|
|
|
1453
1455
|
else if (Mival.typeId == 1220) {
|
|
1454
1456
|
// 一炒多的图片
|
|
1455
1457
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1458
|
+
this.tabTitlesClick('customerScreen', 'delect')
|
|
1456
1459
|
this.props.imgCallback({
|
|
1457
1460
|
type: Mival.data.type + '',
|
|
1458
1461
|
file: Mival.data.file}
|
|
@@ -1463,6 +1466,7 @@ class Video extends Component {
|
|
|
1463
1466
|
} else if (Mival.typeId == 1216) {
|
|
1464
1467
|
// 签字回调
|
|
1465
1468
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1469
|
+
this.tabTitlesClick('customerScreen', 'delect')
|
|
1466
1470
|
this.props.signatureCallback()
|
|
1467
1471
|
}
|
|
1468
1472
|
} else if (Mival.typeId == 1218) {
|
|
@@ -4017,11 +4021,30 @@ class Video extends Component {
|
|
|
4017
4021
|
}
|
|
4018
4022
|
}
|
|
4019
4023
|
handleOkSign = () => {
|
|
4024
|
+
console.log(this.signCanvas.current.canvas.drawing.toDataURL('image/png'))
|
|
4020
4025
|
this.props.imgRMCallback(
|
|
4021
4026
|
this.signCanvas.current.canvas.drawing.toDataURL('image/png').replace(/data.+?;base64,/, "")
|
|
4022
4027
|
)
|
|
4023
4028
|
}
|
|
4029
|
+
onCancelSign=()=>{
|
|
4030
|
+
this.setState({
|
|
4031
|
+
signNoClick: false
|
|
4032
|
+
})
|
|
4033
|
+
this.props.onCancelSign()
|
|
4034
|
+
}
|
|
4035
|
+
signImage=()=>{
|
|
4036
|
+
if(!this.state.signNoClick) {
|
|
4037
|
+
this.setState({
|
|
4038
|
+
signNoClick: true
|
|
4039
|
+
})
|
|
4040
|
+
}
|
|
4041
|
+
}
|
|
4024
4042
|
handleCancelSign=()=>{
|
|
4043
|
+
if(this.state.signNoClick) {
|
|
4044
|
+
this.setState({
|
|
4045
|
+
signNoClick: false
|
|
4046
|
+
})
|
|
4047
|
+
}
|
|
4025
4048
|
this.signCanvas.current.clear()
|
|
4026
4049
|
}
|
|
4027
4050
|
|
|
@@ -5034,15 +5057,20 @@ class Video extends Component {
|
|
|
5034
5057
|
|
|
5035
5058
|
|
|
5036
5059
|
</Modal>
|
|
5037
|
-
<Modal title="签字白板" width={600} destroyOnClose={true}
|
|
5060
|
+
<Modal title="签字白板" width={600} destroyOnClose={true} centered={true} visible={isTranscribing} onCancel={this.onCancelSign} footer={
|
|
5038
5061
|
[
|
|
5039
5062
|
<div key='okSign'>
|
|
5040
5063
|
<Button className="modelButtonCancel" onClick={this.handleCancelSign}>清除</Button>
|
|
5041
|
-
|
|
5064
|
+
{
|
|
5065
|
+
this.state.signNoClick && <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSign}>确定</Button>
|
|
5066
|
+
}
|
|
5067
|
+
{
|
|
5068
|
+
!this.state.signNoClick && <Button className="modelButtonCancel" type="primary" danger >确定</Button>
|
|
5069
|
+
}
|
|
5042
5070
|
</div>
|
|
5043
5071
|
]
|
|
5044
5072
|
}>
|
|
5045
|
-
<div className="content">
|
|
5073
|
+
<div className="content" onClick={this.signImage}>
|
|
5046
5074
|
<CanvasDraw
|
|
5047
5075
|
ref={this.signCanvas}
|
|
5048
5076
|
brushColor="#000"
|
|
@@ -5051,6 +5079,7 @@ class Video extends Component {
|
|
|
5051
5079
|
canvasWidth="100%"
|
|
5052
5080
|
canvasHeight="100%"
|
|
5053
5081
|
hideGrid={true}
|
|
5082
|
+
|
|
5054
5083
|
></CanvasDraw>
|
|
5055
5084
|
</div>
|
|
5056
5085
|
</Modal>
|