react_hsbc_teller 0.9.9 → 1.0.3

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.
@@ -41,6 +41,8 @@ class Video extends Component {
41
41
  cancel = axios.CancelToken.source()
42
42
  signCanvas = React.createRef();
43
43
  state = {
44
+ whiteboardWidth: '',
45
+ whiteboardHeight: '',
44
46
  laveRoomSharedScreen: false,
45
47
  isJoinRoom: false,
46
48
  sessionType: false,
@@ -68,7 +70,6 @@ class Video extends Component {
68
70
  voiceImg: voiceImgOpen,
69
71
  voiceName: '静音',
70
72
  isCustomer: false,
71
- publishDevic: 1,
72
73
  isSharedScreen: false,
73
74
  isSuspend: false,
74
75
  audioed: false,
@@ -152,9 +153,10 @@ class Video extends Component {
152
153
  mtoken: this.state.rtoken
153
154
  });
154
155
  console.log(result);
156
+ this.state.imRoomId = result.imRoomId,
157
+ this.state.sessionId = result.sessionId,
155
158
  this.setState({
156
- imRoomId: result.imRoomId,
157
- sessionId: result.sessionId,
159
+
158
160
  loading: false,
159
161
  });
160
162
  let publish_config = {}
@@ -169,9 +171,7 @@ class Video extends Component {
169
171
  // eslint-disable-next-line no-undef
170
172
  if(this.state.imStatus) {
171
173
  joinRoom((this.props.tellerAccount + '@' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname), this.state.imRoomId)
172
- this.setState({
173
- imJoinRoom:true
174
- })
174
+ this.state.imJoinRoom =true
175
175
  console.log('加入IM房间')
176
176
  }
177
177
  this.props.createRoomCallback({
@@ -187,10 +187,8 @@ class Video extends Component {
187
187
  })
188
188
  } catch (err) {
189
189
  console.error(err);
190
-
191
- this.setState({
192
- sessionType: false
193
- })
190
+
191
+ this.state.sessionType = false
194
192
  if(err.status == 502 || err.status== 404) {
195
193
  this.roomCallBack(2, '连接服务器失败','SYS-02')
196
194
  } else {
@@ -214,11 +212,9 @@ class Video extends Component {
214
212
  let result = await API.mpaasSig({ account: data.account, type: data.type });
215
213
  console.log(result);
216
214
  window.sessionStorage.setItem('alimpassSig', result.mpsSig);
217
- this.setState({
218
- workSpaceId: result.workSpaceId,
219
- appId: result.appId,
220
- bizName: result.bizName
221
- });
215
+ this.state.workSpaceId = result.workSpaceId,
216
+ this.state.appId = result.appId,
217
+ this.state.bizName = result.bizName
222
218
  // const data1={
223
219
  // hostname: 'im.uat.dsp.hsbcfts.com.cn',
224
220
  // webPort: '443',
@@ -569,8 +565,8 @@ class Video extends Component {
569
565
  // 人脸识别
570
566
  facialRecognition = () => {
571
567
  if (this.isFileSuccuse()) {
568
+ this.state.faceCustomerType = 1
572
569
  this.setState({
573
- faceCustomerType: 1,
574
570
  titleModal: '人脸识别'
575
571
  })
576
572
  this.selectCustomer('facial')
@@ -578,8 +574,8 @@ class Video extends Component {
578
574
  };
579
575
  ocrClick = () => {
580
576
  if (this.isFileSuccuse()) {
577
+ this.state.faceCustomerType = 2
581
578
  this.setState({
582
- faceCustomerType: 2,
583
579
  titleModal: 'OCR识别'
584
580
  })
585
581
  this.selectCustomer('ocr')
@@ -873,18 +869,14 @@ class Video extends Component {
873
869
  //可获取画中画窗口的一些数据,如宽高等
874
870
  pictureInPictureVideo.style.display = 'block';
875
871
  pictureInPictureVideo.play();
876
- this.setState({
877
- isPictureInPicture: true
878
- })
872
+ this.state.isPictureInPicture = true
879
873
  });
880
874
 
881
875
  pictureInPictureVideo.addEventListener('leavepictureinpicture', (event) => {
882
876
  pictureInPictureVideo.srcObject = null;
883
877
  pictureInPictureVideo.style.display = "none";
884
878
  clearInterval(interval);
885
- this.setState({
886
- isPictureInPicture: false
887
- })
879
+ this.state.isPictureInPicture = false
888
880
  });
889
881
  }
890
882
  roomCallBack = (type, manege,code) => {
@@ -1141,14 +1133,10 @@ class Video extends Component {
1141
1133
  } else if (Mival.type == 2) {
1142
1134
  this.tabTitlesClick('RMWhiteboard', 'delect')
1143
1135
  if (this.state.isSharedScreen) {
1144
- this.setState({
1145
- isWhiteboard: false,
1146
- })
1136
+ this.state.isWhiteboard = false
1147
1137
  } else {
1148
1138
  this.test_controller.UnPublish(document.getElementById('video20').name)
1149
- this.setState({
1150
- isWhiteboard: false,
1151
- })
1139
+ this.state.isWhiteboard = false
1152
1140
  }
1153
1141
  }
1154
1142
 
@@ -1331,21 +1319,17 @@ class Video extends Component {
1331
1319
  window.IMOpenfire = msg =>{
1332
1320
  console.log('im登录', msg)
1333
1321
  if(!msg) {
1334
- this.setState({
1335
- sessionType: false
1336
- })
1322
+ this.state.sessionType = false
1337
1323
  this.roomCallBack(2, 'im建立连接失败',5)
1338
1324
  } else {
1339
- this.setState({
1340
- imStatus: msg
1341
- })
1342
- if(this.state.imRoomId && !this.state.imJoinRoom) {
1343
- joinRoom((this.props.tellerAccount + '@' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname), this.state.imRoomId)
1344
- this.setState({
1345
- imJoinRoom:true
1346
- })
1347
- console.log('加入im房间')
1348
- }
1325
+ this.state.imStatus = msg
1326
+ setTimeout(() => {
1327
+ if(this.state.imRoomId && !this.state.imJoinRoom) {
1328
+ joinRoom((this.props.tellerAccount + '@' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname), this.state.imRoomId)
1329
+ this.state.imJoinRoom =true
1330
+ console.log('IMOpenfire 加入im房间')
1331
+ }
1332
+ }, 200);
1349
1333
  }
1350
1334
 
1351
1335
  }
@@ -1456,9 +1440,7 @@ class Video extends Component {
1456
1440
  // 获取设备失败
1457
1441
  this.test_controller.OnGetDevicesFailed = (code, msg) => {
1458
1442
  console.log('获取设备失败', code, msg)
1459
- this.setState({
1460
- sessionType: false
1461
- })
1443
+ this.state.sessionType = false
1462
1444
  this.messageClick('获取设备失败,请检查摄像头设备是否可用或是否禁用摄像头','error')
1463
1445
  this.roomCallBack(2, '获取设备失败',1)
1464
1446
  };
@@ -1469,9 +1451,7 @@ class Video extends Component {
1469
1451
  };
1470
1452
  this.test_controller.OnConnectFailed = (code, msg) => {
1471
1453
  console.log('建立连接失败', code, msg)
1472
- this.setState({
1473
- sessionType: false
1474
- })
1454
+ this.state.sessionType = false
1475
1455
  this.roomCallBack(2, '连接失败',2)
1476
1456
  };
1477
1457
  // 断开连接回调
@@ -1486,9 +1466,7 @@ class Video extends Component {
1486
1466
  // 初始化房间失败
1487
1467
  this.test_controller.OnInitRoomConfigFail = (err_code, err_msg) => {
1488
1468
  console.log('初始化房间失败', err_code, err_msg)
1489
- this.setState({
1490
- sessionType: false
1491
- })
1469
+ this.state.sessionType = false
1492
1470
  this.roomCallBack(2, '初始化失败',3)
1493
1471
  };
1494
1472
  // 初始化成功回调
@@ -1506,18 +1484,14 @@ class Video extends Component {
1506
1484
 
1507
1485
  this.test_controller.OnCreateRoomSucc = (room_id, rtoken) => {
1508
1486
  console.log('创建房间成功', room_id, rtoken);
1509
- this.setState({
1510
- channelId: room_id,
1511
- rtoken: rtoken
1512
- });
1487
+ this.state.channelId = room_id,
1488
+ this.state.rtoken = rtoken
1513
1489
  this.createRoom()
1514
1490
  };
1515
1491
  // 创建房间失败
1516
1492
  this.test_controller.OnCreateRoomFailed = (err_code, err_msg) => {
1517
1493
  console.log('创建房间失败', err_code, err_msg)
1518
- this.setState({
1519
- sessionType: false
1520
- })
1494
+ this.state.sessionType = false
1521
1495
  this.roomCallBack(2, '创建房间失败',7)
1522
1496
  };
1523
1497
  // 初始化⾳视频成功
@@ -1554,12 +1528,10 @@ class Video extends Component {
1554
1528
  // isJoinRoom: true
1555
1529
  // })
1556
1530
  // this.roomCallBack(2, '加入失败',-5)
1557
- this.setState({
1558
- channelId: '',
1559
- rtoken: '',
1560
- sessionId: '',
1561
- imRoomId: ''
1562
- });
1531
+ this.state.channelId = '',
1532
+ this.state.rtoken = '',
1533
+ this.state.sessionId = '',
1534
+ this.state.imRoomId = ''
1563
1535
 
1564
1536
  this.test_controller.Disconnect()
1565
1537
  let data = {
@@ -1572,9 +1544,7 @@ class Video extends Component {
1572
1544
  // 发布媒体流成功
1573
1545
  this.test_controller.OnPublishSucc = (sid) => {
1574
1546
  console.log('发布媒体流成功', sid)
1575
- this.setState({
1576
- sessionType: true
1577
- })
1547
+ this.state.sessionType = true
1578
1548
  if (sid == document.getElementById('video20').name) {
1579
1549
  callNimIM('sendCustomCmdMsg', {
1580
1550
  customId: this.state.imRoomId,
@@ -1612,9 +1582,7 @@ class Video extends Component {
1612
1582
  // 发布媒体流失败
1613
1583
  this.test_controller.OnPublishFailed = (sid, err_code, err_msg) => {
1614
1584
  console.log('发布媒体流失败', sid, err_code, err_msg)
1615
- this.setState({
1616
- sessionType: false
1617
- })
1585
+ this.state.sessionType = false
1618
1586
  this.roomCallBack(2, '发布失败',4)
1619
1587
  };
1620
1588
  // 订阅媒体流成功
@@ -1644,9 +1612,7 @@ class Video extends Component {
1644
1612
  tag: itemOne.tag
1645
1613
  });
1646
1614
  console.log(array, newArray, this.state.roomCustomerList);
1647
- this.setState({
1648
- roomCustomerList: newArray
1649
- })
1615
+ this.state.roomCustomerList = newArray
1650
1616
  let config_param
1651
1617
  if (itemOne.tag == 'VIDEO_SOURCE_SCREEN') {
1652
1618
  config_param = {
@@ -1787,11 +1753,7 @@ class Video extends Component {
1787
1753
  this.test_controller.OnNewJoinerIn = (participant) => {
1788
1754
  console.log('新加⼊房间者', participant);
1789
1755
  // this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 5)
1790
- this.setState(
1791
- {
1792
- isCustomer: true
1793
- }
1794
- )
1756
+ this.state.isCustomer= true
1795
1757
  };
1796
1758
  // 推送“有新发布”给与会者
1797
1759
  this.test_controller.OnNewPublish = (feed) => {
@@ -1848,9 +1810,7 @@ class Video extends Component {
1848
1810
  tag: feed.tag
1849
1811
  });
1850
1812
  console.log(array, newArray, this.state.roomCustomerList);
1851
- this.setState({
1852
- roomCustomerList: newArray
1853
- })
1813
+ this.state.roomCustomerList = newArray
1854
1814
  let config_param
1855
1815
  if (feed.uid != this.state.tellerAccount) {
1856
1816
  if (feed.tag == 'VIDEO_SOURCE_SCREEN') {
@@ -2036,11 +1996,11 @@ class Video extends Component {
2036
1996
  'tellerId': this.props.tellerAccount
2037
1997
  })
2038
1998
  })
1999
+ this.state.sessionType = false
2000
+ this.state.isSharedScreen = false
2039
2001
  this.setState({
2040
- publishDevic: 1,
2041
- isSharedScreen: false,
2042
- screenName: '投屏',
2043
- sessionType: false
2002
+
2003
+ screenName: '投屏'
2044
2004
  });
2045
2005
  this.tabTitlesClick('RMScreen', 'delect')
2046
2006
  if (this.state.isPictureInPicture) {
@@ -2146,9 +2106,8 @@ class Video extends Component {
2146
2106
 
2147
2107
  if (this.state.roomCustomerList.length == 0) {
2148
2108
  // this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 3)
2149
- this.setState({
2150
- isCustomer: false
2151
- })
2109
+ this.state.isCustomer = false
2110
+
2152
2111
  }
2153
2112
  };
2154
2113
  // 推送“取消订阅”给与会者 OnUnSubscribe(unsubscriber,feed)
@@ -2179,9 +2138,7 @@ class Video extends Component {
2179
2138
  // 开始服务端录制成功
2180
2139
  this.test_controller.OnStartRemoteRecordSucc = (record_id) => {
2181
2140
  console.log('开始服务端录制成功', record_id);
2182
- this.setState({
2183
- recordId: record_id
2184
- });
2141
+ this.state.recordId = record_id
2185
2142
  };
2186
2143
  // 开始服务端录制失败
2187
2144
  this.test_controller.OnStartRemoteRecordFailed = (
@@ -2442,38 +2399,21 @@ class Video extends Component {
2442
2399
  ctx.fillRect(startX, startY, width, height)
2443
2400
  if(document.getElementById('publish_video1').name == sid) {
2444
2401
  this.state.analyserHeight.set(sid,energy/80)
2445
- this.setState({
2446
- analyserHeight: this.state.analyserHeight
2447
- })
2402
+ this.state.analyserHeight = this.state.analyserHeight
2448
2403
  }
2449
2404
 
2450
2405
  }
2451
2406
  requestAnimationFrame(this.test_controller.OnVolumeAnalyser.bind(this, sid, analyser));
2452
2407
 
2453
2408
  this.state.analyserData.set(sid, analyser)
2454
- this.setState({
2455
- analyserData: this.state.analyserData
2456
- })
2409
+ this.state.analyserData = this.state.analyserData
2457
2410
  }
2458
2411
  // 停止共享
2459
2412
  this.test_controller.OnDesktopDisplayClosed = () => {
2460
2413
  console.log('OnDesktopDisplayClosed', this.state.isSharedScreen ,this.state.laveRoomSharedScreen)
2461
- // if(this.state.laveRoomSharedScreen) {
2462
- // if (this.state.roomCustomerList.length == 0 && this.state.sessionType) {
2463
- // this.finishSessionClick()
2464
- // }
2465
- // if (this.test_controller&&this.state.sessionType) {
2466
- // this.test_controller.LeaveRoom()
2467
- // this.test_controller.Disconnect()
2468
- // }
2469
- // if(this.state.imStatus) {
2470
- // disconnect();
2471
- // }
2472
- // } else {
2473
- if (this.state.isSharedScreen) {
2414
+ if (!this.state.laveRoomSharedScreen && this.state.isSharedScreen) {
2474
2415
  this.sharedScreen()
2475
2416
  }
2476
- // }
2477
2417
 
2478
2418
  }
2479
2419
  }
@@ -2530,6 +2470,7 @@ class Video extends Component {
2530
2470
  this.test_controller.Disconnect()
2531
2471
  }
2532
2472
  if(this.state.imStatus) {
2473
+ console.log('disconnect断开连接')
2533
2474
  disconnect();
2534
2475
  }
2535
2476
 
@@ -2553,28 +2494,32 @@ class Video extends Component {
2553
2494
  this.timer && clearInterval(this.timer);
2554
2495
  if(this.state.isSharedScreen) {
2555
2496
  this.setState({
2556
- publishDevic: 1,
2557
- isSharedScreen: false,
2558
2497
  screenName: '投屏',
2559
- laveRoomSharedScreen: true
2560
- });
2498
+ })
2499
+ this.state.isSharedScreen = false
2500
+ this.state.laveRoomSharedScreen = true
2561
2501
  // this.test_controller.UnPublish(document.getElementById('video20').name)
2562
2502
  if (this.state.isPictureInPicture) {
2563
2503
  document.exitPictureInPicture()
2564
2504
  }
2565
- console.log('isSharedScreen', this.state.isSharedScreen)
2505
+
2566
2506
  this.props.onLeaveRoom({
2567
2507
  code: LEAVE_TYPE.TELLER_EXIT,
2568
2508
  errMsg: '坐席退出'
2569
2509
  })
2570
2510
  } else {
2511
+ this.setState({
2512
+ screenName: '投屏',
2513
+ });
2514
+ this.state.isSharedScreen = false
2515
+ this.state.laveRoomSharedScreen = true
2571
2516
  this.props.onLeaveRoom({
2572
2517
  code: LEAVE_TYPE.TELLER_EXIT,
2573
2518
  errMsg: '坐席退出'
2574
2519
  })
2575
2520
 
2576
2521
  }
2577
-
2522
+ console.log('isSharedScreen', this.state.isSharedScreen,this.state.laveRoomSharedScreen)
2578
2523
 
2579
2524
  }
2580
2525
  getRoomStatus = async data => {
@@ -2585,12 +2530,10 @@ class Video extends Component {
2585
2530
  if (result.code == 200 && result.data.roomStatus == 1) {
2586
2531
  this.addToScript()
2587
2532
  } else {
2588
- this.setState({
2589
- channelId: '',
2590
- rtoken: '',
2591
- sessionId: '',
2592
- imRoomId: ''
2593
- });
2533
+ this.state.channelId = '',
2534
+ this.state.rtoken = '',
2535
+ this.state.sessionId = '',
2536
+ this.state.imRoomId = ''
2594
2537
  this.addToScript()
2595
2538
  // this.setState({
2596
2539
  // sessionType: false
@@ -2602,12 +2545,10 @@ class Video extends Component {
2602
2545
  // })
2603
2546
  }
2604
2547
  } catch (err) {
2605
- this.setState({
2606
- channelId: '',
2607
- rtoken: '',
2608
- sessionId: '',
2609
- imRoomId: ''
2610
- });
2548
+ this.state.channelId = '',
2549
+ this.state.rtoken = '',
2550
+ this.state.sessionId = '',
2551
+ this.state.imRoomId = ''
2611
2552
  this.addToScript()
2612
2553
  // this.setState({
2613
2554
  // sessionType: false
@@ -2627,8 +2568,8 @@ class Video extends Component {
2627
2568
  axios.get(this.props.resourcePath + "/beauty/beauty.js")
2628
2569
  .then(response => this.addToScriptClick()).catch(function (error) {
2629
2570
  console.log(error);
2571
+ that.state.sessionType = false
2630
2572
  that.setState({
2631
- sessionType: false,
2632
2573
  loading: false
2633
2574
  })
2634
2575
  that.roomCallBack(2, '加载资源失败','SYS-01')
@@ -2645,7 +2586,7 @@ class Video extends Component {
2645
2586
  this.props.resourcePath + "/beauty/backgroundBlur.js",
2646
2587
  this.props.resourcePath + "/adapter.js",
2647
2588
  this.props.resourcePath + "/getMediaInfo.js",
2648
- this.props.resourcePath + "/pdf.js",
2589
+ // this.props.resourcePath + "/pdf.js",
2649
2590
  this.props.resourcePath + "/EBML.js",
2650
2591
  this.props.resourcePath + "/mcu.js",
2651
2592
  this.props.resourcePath + "/meeting_desk_stream.js",
@@ -2778,8 +2719,9 @@ class Video extends Component {
2778
2719
  cameraClick = () => {
2779
2720
  if (this.isFileSuccuse()) {
2780
2721
  if (!this.state.audioed) {
2722
+ this.state.audioed = true,
2781
2723
  this.setState({
2782
- audioed: true,
2724
+
2783
2725
  cameraImg: cameraImgCloe
2784
2726
  });
2785
2727
  let sid = document.getElementById('publish_video1').name;
@@ -2800,8 +2742,8 @@ class Video extends Component {
2800
2742
  console.log(data)
2801
2743
  })
2802
2744
  } else if (this.state.audioed) {
2745
+ this.state.audioed = false,
2803
2746
  this.setState({
2804
- audioed: false,
2805
2747
  cameraImg: cameraImgOpen
2806
2748
  });
2807
2749
  let sid = document.getElementById('publish_video1').name;
@@ -2825,6 +2767,7 @@ class Video extends Component {
2825
2767
  }
2826
2768
  };
2827
2769
  sharedScreen = () => {
2770
+ console.log('投屏')
2828
2771
  if (this.isFileSuccuse()) {
2829
2772
  const publish_config = {};
2830
2773
  if (this.state.isSharedScreen) {
@@ -2841,9 +2784,8 @@ class Video extends Component {
2841
2784
  } else {
2842
2785
  this.test_controller.UnPublish(document.getElementById('video20').name)
2843
2786
  }
2787
+ this.state.isSharedScreen = false
2844
2788
  this.setState({
2845
- publishDevic: 1,
2846
- isSharedScreen: false,
2847
2789
  screenName: '投屏'
2848
2790
  });
2849
2791
  console.log(pictureInPictureVideo)
@@ -2868,9 +2810,8 @@ class Video extends Component {
2868
2810
  publish_config.publish_tag = 'projectionWhiteboard'
2869
2811
  this.test_controller.Publish(publish_config)
2870
2812
  }
2813
+ this.state.isSharedScreen = true
2871
2814
  this.setState({
2872
- publishDevic: 2,
2873
- isSharedScreen: true,
2874
2815
  screenName: '取消共享',
2875
2816
  isPDF: false
2876
2817
  })
@@ -3015,12 +2956,13 @@ class Video extends Component {
3015
2956
  })
3016
2957
  };
3017
2958
  invitationClick = () => {
2959
+ this.state.linkData = ''
3018
2960
  this.setState({
3019
2961
  isModalVisibleInvitation: true,
3020
2962
  employeeNumber: '',
3021
2963
  employeeName: '',
3022
2964
  employeeError: '',
3023
- linkData: ''
2965
+
3024
2966
  })
3025
2967
 
3026
2968
  }
@@ -3087,22 +3029,21 @@ class Video extends Component {
3087
3029
  sid = document.getElementById('video12').name;
3088
3030
  }
3089
3031
  console.log(sid)
3032
+ this.state.faceCustomerUid = item.customId,
3090
3033
  this.setState({
3091
3034
  clickedFacial: false,
3092
3035
  clickedOcr: false,
3093
- faceCustomerUid: item.customId,
3036
+
3094
3037
  isModalVisibleFacial: true,
3095
3038
  facialImg: this.test_controller.TakePicture(1, undefined, undefined, sid, 'png')
3096
3039
  })
3097
3040
  }
3098
3041
  componentWillReceiveProps(props) {
3099
3042
  console.log('componentWillReceiveProps',props)
3100
- this.setState({
3101
- channelId: props.roomId,
3102
- rtoken: props.mtoken,
3103
- sessionId: props.sessionId,
3104
- imRoomId: props.imRoomId
3105
- });
3043
+ this.state.channelId = props.roomId,
3044
+ this.state.rtoken = props.mtoken,
3045
+ this.state.sessionId = props.sessionId,
3046
+ this.state.imRoomId = props.imRoomId
3106
3047
  }
3107
3048
  appGetUsername = async (sid) => {
3108
3049
  console.log(sid)
@@ -3242,9 +3183,8 @@ class Video extends Component {
3242
3183
  employeeError: result.data.staffName ? '' : '查无此人',
3243
3184
  })
3244
3185
  if(result.data.staffName){
3245
- this.setState({
3246
- linkData:'https://wp-staff-gateway.wealth-platform.uat.ali.cloud.cn.hsbc/meeting-ui/OHB/CN/HSBC?chnlID=OHB&locale=zh_CN&chnlCC=CN&chnlGMC=HSBC&targetFunc=supervisorMeeting&sourceFunc=rmMeeting&appointmentID='+ this.props.businessNumber + '&staffID='+this.state.employeeNumber+'&staffName='+ encodeURIComponent(result.data.staffName)
3247
- })
3186
+ this.state.linkData = 'https://wp-staff-gateway.wealth-platform.uat.ali.cloud.cn.hsbc/meeting-ui/OHB/CN/HSBC?chnlID=OHB&locale=zh_CN&chnlCC=CN&chnlGMC=HSBC&targetFunc=supervisorMeeting&sourceFunc=rmMeeting&appointmentID='+ this.props.businessNumber + '&staffID='+this.state.employeeNumber+'&staffName='+ encodeURIComponent(result.data.staffName)
3187
+
3248
3188
  }
3249
3189
  } else {
3250
3190
  this.messageClick('查询失败','error')
@@ -3285,9 +3225,7 @@ class Video extends Component {
3285
3225
  switchExternal = () => {
3286
3226
  if (!this.state.isWhiteboard) {
3287
3227
  const publish_config = {};
3288
- this.setState({
3289
- isWhiteboard: true,
3290
- })
3228
+ this.state.isWhiteboard = true
3291
3229
  this.tabTitlesClick({
3292
3230
  value: 'RMWhiteboard',
3293
3231
  name: 'RM白板'
@@ -3365,11 +3303,19 @@ class Video extends Component {
3365
3303
  microphoneValue: event.target.value
3366
3304
  })
3367
3305
  }
3306
+ componentDidMount() {
3307
+ var box=document.getElementById("whiteboardDIV");
3308
+ if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
3309
+ this.state.whiteboardWidth = box.offsetWidth,
3310
+ this.state.whiteboardHeight = box.offsetHeight,
3311
+ console.log('whiteboardDIV', this.state.whiteboardHeight,this.state.whiteboardWidth)
3312
+ }
3313
+ }
3368
3314
  render() {
3369
3315
  const { meetingInfo } = this.props
3370
3316
  var pdfChildren
3371
3317
  if (this.props.children) {
3372
- pdfChildren = React.cloneElement(this.props.children, { width: 100, height: 100, id: 12 })
3318
+ pdfChildren = React.cloneElement(this.props.children, { width: this.state.whiteboardWidth, height: this.state.whiteboardHeight, show: this.state.isSelect == 'RMWhiteboard'})
3373
3319
  }
3374
3320
  const customerNameList = (
3375
3321
  <span className='labelClass'>
@@ -3471,7 +3417,7 @@ class Video extends Component {
3471
3417
  <div className="projection">
3472
3418
  {tabTitleList}
3473
3419
  <img style={sectionStyle} src={require("../../assets/img/placeholder_bg.png").default} alt="" />
3474
- <div style={{height: this.state.tabTitles.length > 0 ? 'calc(100% - 33px)' : '100%'}}>
3420
+ <div id="whiteboardDIV" style={{height: this.state.tabTitles.length > 0 ? 'calc(100% - 33px)' : '100%'}}>
3475
3421
 
3476
3422
  <div className="videoDiv" style={{ display: (this.state.isSelect == 'RMScreen') ? '' : 'none', }}>
3477
3423
  <div className="videoDiv">
@@ -3531,7 +3477,7 @@ class Video extends Component {
3531
3477
  </div>
3532
3478
  <div className="wrapper" style={{ width: '20%', }}>
3533
3479
  <div
3534
- className={`itemed ${this.state.publishDevic == 4 ? '' : 'isBack'} `}
3480
+ className={`itemed`}
3535
3481
  >
3536
3482
  <div className="publishVideoDiv">
3537
3483