cnhis-design-vue 2.1.29 → 2.1.30

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.
Files changed (134) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/es/affix/index.js +8 -8
  3. package/es/age/index.js +10 -10
  4. package/es/alert/index.js +8 -8
  5. package/es/anchor/index.js +8 -8
  6. package/es/auto-complete/index.js +8 -8
  7. package/es/avatar/index.js +8 -8
  8. package/es/back-top/index.js +8 -8
  9. package/es/badge/index.js +8 -8
  10. package/es/base/index.js +8 -8
  11. package/es/big-table/index.js +164 -164
  12. package/es/breadcrumb/index.js +8 -8
  13. package/es/button/index.js +31 -31
  14. package/es/calendar/index.js +8 -8
  15. package/es/captcha/index.js +3 -3
  16. package/es/card/index.js +8 -8
  17. package/es/carousel/index.js +8 -8
  18. package/es/cascader/index.js +8 -8
  19. package/es/checkbox/index.js +9 -9
  20. package/es/col/index.js +8 -8
  21. package/es/collapse/index.js +8 -8
  22. package/es/color-picker/index.js +1 -1
  23. package/es/comment/index.js +8 -8
  24. package/es/config-provider/index.js +8 -8
  25. package/es/date-picker/index.js +8 -8
  26. package/es/descriptions/index.js +8 -8
  27. package/es/divider/index.js +8 -8
  28. package/es/drag-layout/index.js +3 -3
  29. package/es/drawer/index.js +8 -8
  30. package/es/dropdown/index.js +8 -8
  31. package/es/editor/index.js +1 -1
  32. package/es/empty/index.js +8 -8
  33. package/es/fabric-chart/index.js +21 -30
  34. package/es/form/index.js +8 -8
  35. package/es/form-model/index.js +8 -8
  36. package/es/form-table/index.js +62 -62
  37. package/es/index/index.js +1283 -1085
  38. package/es/index/style.css +1 -1
  39. package/es/input/index.js +9 -9
  40. package/es/input-number/index.js +8 -8
  41. package/es/layout/index.js +8 -8
  42. package/es/list/index.js +8 -8
  43. package/es/locale-provider/index.js +8 -8
  44. package/es/map/index.js +9 -9
  45. package/es/mentions/index.js +8 -8
  46. package/es/menu/index.js +8 -8
  47. package/es/message/index.js +8 -8
  48. package/es/multi-chat/index.js +759 -562
  49. package/es/multi-chat/style.css +1 -1
  50. package/es/multi-chat-client/index.js +352 -220
  51. package/es/multi-chat-client/style.css +1 -1
  52. package/es/multi-chat-history/index.js +278 -38
  53. package/es/multi-chat-history/style.css +1 -1
  54. package/es/multi-chat-record/index.js +54 -18
  55. package/es/multi-chat-setting/index.js +75 -33
  56. package/es/multi-chat-sip/index.js +1 -1
  57. package/es/notification/index.js +8 -8
  58. package/es/page-header/index.js +8 -8
  59. package/es/pagination/index.js +8 -8
  60. package/es/popconfirm/index.js +8 -8
  61. package/es/popover/index.js +8 -8
  62. package/es/progress/index.js +8 -8
  63. package/es/radio/index.js +9 -9
  64. package/es/rate/index.js +8 -8
  65. package/es/result/index.js +8 -8
  66. package/es/row/index.js +8 -8
  67. package/es/scale-view/index.js +33 -33
  68. package/es/select/index.js +11 -11
  69. package/es/select-label/index.js +11 -11
  70. package/es/select-person/index.js +36 -28
  71. package/es/select-person/style.css +1 -1
  72. package/es/shortcut-setter/index.js +10 -10
  73. package/es/skeleton/index.js +8 -8
  74. package/es/slider/index.js +8 -8
  75. package/es/space/index.js +8 -8
  76. package/es/spin/index.js +8 -8
  77. package/es/statistic/index.js +8 -8
  78. package/es/steps/index.js +8 -8
  79. package/es/switch/index.js +8 -8
  80. package/es/table-filter/index.js +74 -74
  81. package/es/tabs/index.js +8 -8
  82. package/es/tag/index.js +9 -9
  83. package/es/time-picker/index.js +8 -8
  84. package/es/timeline/index.js +8 -8
  85. package/es/tooltip/index.js +8 -8
  86. package/es/transfer/index.js +8 -8
  87. package/es/tree/index.js +8 -8
  88. package/es/tree-select/index.js +8 -8
  89. package/es/upload/index.js +8 -8
  90. package/es/utils/UniRTCv2.js +77 -11
  91. package/es/utils/trtc.js +19025 -0
  92. package/es/verification-code/index.js +2 -2
  93. package/lib/cui.common.js +26349 -6267
  94. package/lib/cui.umd.js +26349 -6267
  95. package/lib/cui.umd.min.js +149 -147
  96. package/package.json +1 -1
  97. package/packages/big-table/src/BigTable.vue +3044 -3044
  98. package/packages/big-table/src/utils/batchEditing.js +610 -610
  99. package/packages/big-table/src/utils/bigTableProps.js +95 -95
  100. package/packages/button/src/ButtonPrint/components/IdentityVerification.vue +181 -181
  101. package/packages/button/src/ButtonPrint/index.vue +739 -739
  102. package/packages/fabric-chart/src/components/TimeScaleValue.vue +113 -113
  103. package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
  104. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +3 -11
  105. package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +135 -135
  106. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +558 -558
  107. package/packages/fabric-chart/src/fabric-chart2/FabricTop.vue +172 -172
  108. package/packages/multi-chat/chat/audio.vue +18 -5
  109. package/packages/multi-chat/chat/chatFooter.vue +1594 -1594
  110. package/packages/multi-chat/chat/chatHeader.vue +4 -1
  111. package/packages/multi-chat/chat/chatHistory.vue +10 -2
  112. package/packages/multi-chat/chat/chatMain.vue +5 -0
  113. package/packages/multi-chat/chat/index.vue +29 -0
  114. package/packages/multi-chat/chat/mixins/uniRTCAPI.js +10 -7
  115. package/packages/multi-chat/chat/multiVideo.vue +16 -4
  116. package/packages/multi-chat/chat/quickReply.vue +439 -439
  117. package/packages/multi-chat/chat/scrollList.vue +9 -3
  118. package/packages/multi-chat/components/avatar.vue +64 -26
  119. package/packages/multi-chat/setting/baseInfo/index.vue +1316 -1316
  120. package/packages/multi-chat/store/actions.js +8 -4
  121. package/packages/multi-chat/store/state.js +112 -112
  122. package/packages/multi-chat/utils/index.js +25 -0
  123. package/packages/multi-chat/utils/rtc-client.js +23 -3
  124. package/packages/scale-view/formitem/r-choice.vue +714 -714
  125. package/packages/scale-view/scaleView.vue +2010 -2010
  126. package/packages/select-person/select-person.vue +9 -4
  127. package/packages/table-filter/src/components/c-tree-select/tree-select.vue +336 -336
  128. package/packages/table-filter/src/components/multi-select/multi-select.vue +219 -219
  129. package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +340 -340
  130. package/packages/table-filter/src/components/search-condition/SearchCondition.vue +1825 -1825
  131. package/packages/table-filter/src/const/dataOptions.js +43 -43
  132. package/src/directive/preventReClick.js +12 -12
  133. package/src/utils/UniRTCv2.js +46 -13
  134. package/src/utils/trtc.js +1 -0
@@ -452,11 +452,14 @@ export default {
452
452
  color: #2d7aff;
453
453
  border: 1px solid #2d7aff;
454
454
  }
455
- /deep/ .avatar-logo {
455
+ /deep/ .avatar-wrap {
456
456
  font-size: 12px;
457
457
  position: absolute;
458
458
  left: 0;
459
459
  top: 50%;
460
+ }
461
+ /deep/ .avatar-logo {
462
+ font-size: 12px;
460
463
  margin-top: -15px;
461
464
  }
462
465
  }
@@ -92,7 +92,7 @@ import MsgDescribe from '../components/msg-describe';
92
92
  import MsgPicture from '../components/msg-picture';
93
93
  import MsgPrescription from '../components/msg-prescription';
94
94
  import viewerOptions from './mixins/viewerOptions';
95
- import InfiniteScroll from 'vue-infinite-scroll';
95
+ import InfiniteScroll from '@/directive/scroll';
96
96
  import vexutils from '@/utils/vexutils';
97
97
  import fetch from '@/utils/chatFetch';
98
98
  import { Icon, Spin } from 'ant-design-vue';
@@ -108,6 +108,7 @@ export default {
108
108
  MsgDescribe
109
109
  },
110
110
  data() {
111
+ this.handleInfiniteOnLoad = vexutils.debounce(this.handleInfiniteOnLoad, 200)
111
112
  return {
112
113
  msgList: [],
113
114
  historySessionId: '',
@@ -116,7 +117,8 @@ export default {
116
117
  visible: false,
117
118
  images: [],
118
119
  curAudioUrl: '',
119
- lastAudioItem: null
120
+ lastAudioItem: null,
121
+ loadFinished: false
120
122
  };
121
123
  },
122
124
  props: ['params', 'i18nText'],
@@ -146,6 +148,11 @@ export default {
146
148
  },
147
149
  /* 向上滚动刷新 */
148
150
  handleInfiniteOnLoad() {
151
+ console.log('加载记录');
152
+ if (this.loadFinished) {
153
+ console.log('loadFinished')
154
+ return
155
+ }
149
156
  this.loading = true;
150
157
  let id = this.msgList[0] && this.msgList[0].id;
151
158
  // let params = {
@@ -169,6 +176,7 @@ export default {
169
176
  if (data.result === 'SUCCESS') {
170
177
  this.loading = false;
171
178
  if (id && data.list.length === 0) {
179
+ this.loadFinished = true
172
180
  return '没有更多消息了';
173
181
  }
174
182
  this.msgList = [...data.list, ...this.msgList];
@@ -640,6 +640,11 @@ export default {
640
640
  return;
641
641
  }
642
642
  if (openMode === 'EJECT') {
643
+ // 打开云his页面需要从cookie内获取最新的jsessionids
644
+ if (address.includes('jsessionidsFlag=1')) {
645
+ let jsessionids = vexutils.cookie.get('jsessionids')
646
+ address = address + `&jsessionids=${jsessionids}`
647
+ }
643
648
  this.modalShow = true;
644
649
  this.modalData = Object.assign({}, data, {
645
650
  address
@@ -849,6 +849,7 @@ export default {
849
849
  this.subscribeVideoRecord();
850
850
  this.subscribeOfflineSessionStatistic();
851
851
  this.subscribeMessageRecord();
852
+ this.subscribeUserStatus();
852
853
  },
853
854
  errorCb: (_err, count) => {
854
855
  this.reConnention = count;
@@ -864,6 +865,16 @@ export default {
864
865
  });
865
866
  },
866
867
 
868
+ /* 订阅客服状态更新 */
869
+ subscribeUserStatus() {
870
+ this.stompClient.subscribe(`/topic/updateStatus/${this.serviceId}`, response => {
871
+ // let res = JSON.parse(response.body);
872
+ console.log('客服状态改变');
873
+ let refDom = this.$refs['scrollList-session'][0];
874
+ refDom?.getSessionList();
875
+ });
876
+ },
877
+
867
878
  /* 订阅排队列表人数及未读消息数 */
868
879
  subscribeQueueStatistic() {
869
880
  this.stompClient.subscribe(`/topic/queueStatistic/${this.queueKey}`, response => {
@@ -1089,6 +1100,15 @@ export default {
1089
1100
  // });
1090
1101
  });
1091
1102
  },
1103
+ // 江苏通app接通
1104
+ subscribeAcceptedJST(res) {
1105
+ this.setShowVideo(true);
1106
+ this.setShowAudio(false);
1107
+ this.setVideoData(res);
1108
+ this.$nextTick(() => {
1109
+ this.setRecordId(res.recordId);
1110
+ });
1111
+ },
1092
1112
  /**
1093
1113
  * 视频通话记录变更
1094
1114
  */
@@ -1280,6 +1300,14 @@ export default {
1280
1300
  }
1281
1301
  });
1282
1302
  },
1303
+ getRefuseParam() {
1304
+ const curScrollItemParams = JSON.parse(this.curScrollItem?.params)
1305
+ return {
1306
+ userId: curScrollItemParams.vaa01,
1307
+ orgId: curScrollItemParams.orgId,
1308
+ assemblyId: this.assemblyId
1309
+ }
1310
+ },
1283
1311
  // 获取视频sdk
1284
1312
  getSdkAppId() {
1285
1313
  fetch
@@ -1296,6 +1324,7 @@ export default {
1296
1324
  if (vendor == 3) {
1297
1325
  this.initUniRTC({
1298
1326
  ...data.obj,
1327
+ vueSelf: this,
1299
1328
  params: {
1300
1329
  assemblyId: this.assemblyId
1301
1330
  }
@@ -2,7 +2,7 @@ import { mapGetters, mapMutations, mapActions } from '../../store/helper';
2
2
 
3
3
  export default {
4
4
  computed: {
5
- ...mapGetters(['uniRTC', 'incoming', 'outing']),
5
+ ...mapGetters(['uniRTC', 'incoming', 'outing', 'sdkAppId']),
6
6
  },
7
7
  data() {
8
8
  return {
@@ -26,17 +26,19 @@ export default {
26
26
  let outings = [];
27
27
  for (let i = 0; i < targetList.length; i++) {
28
28
  const item = targetList[i];
29
- const outing = this.uniRTC.startCall(item.deviceToken, '腾讯', 'tencent', {
30
- sdkAppId: this.uniRTC.appId,
31
- userId: this.userId,
29
+ const outing = this.uniRTC.startCall(item.deviceToken, '腾讯视频', 'tencent', {
30
+ sdkAppId: Number(this.sdkAppId),
31
+ userId: this.isServer ? this.serviceId : this.clientId,
32
32
  userSig: this.videoData.token,
33
- roomId: this.videoData.roomId,
33
+ roomId: Number(this.videoData.roomId),
34
+ videoData: this.videoData
34
35
  // privateMapKey
35
36
  }, {
36
- sdkAppId: this.uniRTC.appId,
37
+ sdkAppId: Number(this.sdkAppId),
37
38
  userId: item.username,
38
39
  userSig: item.token,
39
- roomId: this.videoData.roomId,
40
+ roomId: Number(this.videoData.roomId),
41
+ videoData: this.videoData
40
42
  // privateMapKey
41
43
  });
42
44
  outings.push(outing);
@@ -47,6 +49,7 @@ export default {
47
49
  stopCall() {
48
50
  for (let i = 0; i < this.outing.length; i++) {
49
51
  const item = this.outing[i];
52
+ console.log('江苏省主动挂断', item);
50
53
  // 江苏省主动挂断
51
54
  this.uniRTC.stopCall(item);
52
55
  }
@@ -185,6 +185,7 @@ import fetch, { qs } from '@/utils/chatFetch';
185
185
  import { Button, Modal, Popover, Tooltip } from 'ant-design-vue';
186
186
  import SvgIcon from '@/component/svg/index.vue';
187
187
  import uniRTCAPI from './mixins/uniRTCAPI';
188
+ import { getClientDeviceToken } from '../utils/index';
188
189
 
189
190
  const videoStatus = {
190
191
  1: '未接听',
@@ -249,7 +250,10 @@ export default {
249
250
  'sessionId',
250
251
  'videoListChange',
251
252
  'videoData',
252
- 'videoMode'
253
+ 'videoMode',
254
+ 'curScrollItem',
255
+ 'clientId',
256
+ 'isServer'
253
257
  ]),
254
258
  serviceName() {
255
259
  return this.userInfo?.sysParams?.userName;
@@ -472,9 +476,17 @@ export default {
472
476
  // this.appendVideoMessage();
473
477
  // 江苏省
474
478
  if (this.uniRTC) {
475
- const targetList = data.map?.targetList || [];
476
- this.checkStatus(targetList);
477
- this.startCall(targetList);
479
+ console.log('this.curScrollItem', this.curScrollItem);
480
+ const curScrollItemParams = JSON.parse(this.curScrollItem?.params)
481
+ getClientDeviceToken(curScrollItemParams.customerId).then(tokenRes => {
482
+ const targetInfo = data.map?.targetList || [];
483
+ if (!tokenRes) {
484
+ return
485
+ }
486
+ const targetList = [{deviceToken: tokenRes.deviceToken, username: targetInfo[0].username, token: targetInfo[0].token}]
487
+ this.checkStatus(targetList);
488
+ this.startCall(targetList);
489
+ })
478
490
  }
479
491
  } else {
480
492
  data.resultMsg && this.$message.warning(data.resultMsg);