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
@@ -373,15 +373,17 @@ export default {
373
373
  });
374
374
  },
375
375
  async initUniRTC({ commit, state }, obj) {
376
- const { uniAppId, uniSecretKey, params } = obj;
376
+ const { uniAppId, uniSecretKey, params, vueSelf } = obj;
377
377
  let uniRTC = null;
378
378
  const getLoginToken = async () => {
379
379
  let appSign;
380
380
  const paramsData = {
381
381
  clientType: '1',
382
382
  deviceToken: uniRTC.deviceToken,
383
- appId: uniAppId,
384
- secretKey: uniSecretKey
383
+ // appId: uniAppId,
384
+ // secretKey: uniSecretKey
385
+ appId: 'hangchuang', // 测试(9997)账号
386
+ secretKey: 'hangchuang' // // 测试(9997)秘钥
385
387
  };
386
388
  try {
387
389
  const { data } = await fetch.get('/chat/access/getMediaAuthSign', { params: paramsData });
@@ -394,7 +396,9 @@ export default {
394
396
  return;
395
397
  }
396
398
  };
397
- uniRTC = new UniRTCObject(uniAppId, getLoginToken);
399
+ // uniRTC = new UniRTCObject(uniAppId, getLoginToken);
400
+ uniRTC = new UniRTCObject('hangchuang', getLoginToken, vueSelf);
401
+ console.log('uniRTC', uniRTC);
398
402
  uniRTC.onCallComing = incoming => {
399
403
  commit("setIncoming", incoming);
400
404
  console.log('onCallComing->', incoming);
@@ -1,112 +1,112 @@
1
- export default () => {
2
- return {
3
- userInfo: null, // 用户信息
4
- currentSip: null, // 当前用户选择的sip设备
5
- assemblyId: null, // 组件id
6
- sessionId: null, // 会话id
7
- classify: null, // 会话分类
8
- isAppendMsg: false, // 是否追加消息
9
- message: '', // 当前接收或发送的消息
10
- isScrollListChange: false, // 排队/会话列表新增、修改、删除
11
- listChangeItem: null, // 排队/会话列表变化项
12
- currentTab: 'queue',
13
- msgList: [], // 历史消息
14
- serviceId: '', // 服务端id
15
- clientId: '', // 客户端id
16
- scrollTo: '', // 滚动条定位
17
- keywords: '', // 搜索关键字
18
- searchKeywords: '', // 点击搜索触发
19
- onChating: false, // 是否正在聊天
20
- enable: false, // 是否有聊天组件权限
21
- modalVisible: false,
22
- medicalOrPrescription: '',
23
- footerMessage: '',
24
- sessionStatistic: {
25
- peopleCount: '',
26
- unreadCount: ''
27
- },
28
- queueStatistic: {
29
- peopleCount: '',
30
- unreadCount: ''
31
- },
32
- offlineSessionStatistic: {
33
- peopleCount: '',
34
- unreadCount: ''
35
- },
36
- offlineClassifyCount: {},
37
- voiceAlert: true,
38
- appendList: [],
39
- disableOperate: false,
40
- // 视频相关
41
- showVideo: false,
42
- roomId: null,
43
- userSig: null,
44
- caller: null,
45
- videoId: null,
46
- recordId: null,
47
- videoSessionId: null,
48
- callings: [],
49
- delays: [],
50
- assemblySetting: {}, // 组件配置
51
- sessionTotalTime: 0, // 会话总时长
52
- sessionTime: null, // 会话时长
53
- sessionTimer: null,
54
- queueItem: null, // 待接入
55
- sessionHistoryList: [],
56
- sdkInfo: null, // 音视频通话sdk信息
57
- sessionType: 1,
58
- multiVideoShow: false,
59
- videoStatus: 0,
60
- addMemberType: 1, // 1添加会话人员2添加视频人员
61
- videoMembers: [],
62
- videoListChange: {},
63
- videoData: {},
64
- videoMode: 1, // 1语音2视频
65
- isSessionOwner: false,
66
- showAudio: false,
67
- groupMembers: [],
68
- muteAudio: false,
69
-
70
- // 聊天客户端
71
- queueId: '',
72
- chatType: '',
73
- historySessionId: '',
74
- botSessionId: '',
75
- serviceName: '',
76
- statusTitle: '',
77
- sessionEnd: false,
78
- isServer: false,
79
- closedSession: false,
80
-
81
- // 客户端参数
82
- clientParams: {},
83
-
84
- // 机器人智能客服
85
- robotId: '',
86
- questionId: '',
87
- dictionaryKey: '',
88
- chatMode: '',
89
- chatFlag: false,
90
- chatUserId: '',
91
- videoRecord: [],
92
- videoVoiceList: [],
93
- clientChatISRobot: '',
94
- chatName: '',
95
- scrollQueueId: '',
96
- lastClassify: '',
97
- lastCurrentTab: '',
98
- queryParams: {}, // 路由参数
99
- accessParams: {}, // 其他参数
100
- intentionId: '',
101
- dictionaryValue: '',
102
- orgId: '',
103
- curScrollItem: null,
104
- isQuickReply: false,
105
- isRecorderVoice: false,
106
- msgRecordCache: {}, // 消息已读记录缓存
107
- userStatus: '',
108
- uniRTC: null,
109
- incoming: null,
110
- outing: []
111
- };
112
- };
1
+ export default () => {
2
+ return {
3
+ userInfo: null, // 用户信息
4
+ currentSip: null, // 当前用户选择的sip设备
5
+ assemblyId: null, // 组件id
6
+ sessionId: null, // 会话id
7
+ classify: null, // 会话分类
8
+ isAppendMsg: false, // 是否追加消息
9
+ message: '', // 当前接收或发送的消息
10
+ isScrollListChange: false, // 排队/会话列表新增、修改、删除
11
+ listChangeItem: null, // 排队/会话列表变化项
12
+ currentTab: 'queue',
13
+ msgList: [], // 历史消息
14
+ serviceId: '', // 服务端id
15
+ clientId: '', // 客户端id
16
+ scrollTo: '', // 滚动条定位
17
+ keywords: '', // 搜索关键字
18
+ searchKeywords: '', // 点击搜索触发
19
+ onChating: false, // 是否正在聊天
20
+ enable: false, // 是否有聊天组件权限
21
+ modalVisible: false,
22
+ medicalOrPrescription: '',
23
+ footerMessage: '',
24
+ sessionStatistic: {
25
+ peopleCount: '',
26
+ unreadCount: ''
27
+ },
28
+ queueStatistic: {
29
+ peopleCount: '',
30
+ unreadCount: ''
31
+ },
32
+ offlineSessionStatistic: {
33
+ peopleCount: '',
34
+ unreadCount: ''
35
+ },
36
+ offlineClassifyCount: {},
37
+ voiceAlert: true,
38
+ appendList: [],
39
+ disableOperate: false,
40
+ // 视频相关
41
+ showVideo: false,
42
+ roomId: null,
43
+ userSig: null,
44
+ caller: null,
45
+ videoId: null,
46
+ recordId: null,
47
+ videoSessionId: null,
48
+ callings: [],
49
+ delays: [],
50
+ assemblySetting: {}, // 组件配置
51
+ sessionTotalTime: 0, // 会话总时长
52
+ sessionTime: null, // 会话时长
53
+ sessionTimer: null,
54
+ queueItem: null, // 待接入
55
+ sessionHistoryList: [],
56
+ sdkInfo: null, // 音视频通话sdk信息
57
+ sessionType: 1,
58
+ multiVideoShow: false,
59
+ videoStatus: 0,
60
+ addMemberType: 1, // 1添加会话人员2添加视频人员
61
+ videoMembers: [],
62
+ videoListChange: {},
63
+ videoData: {},
64
+ videoMode: 1, // 1语音2视频
65
+ isSessionOwner: false,
66
+ showAudio: false,
67
+ groupMembers: [],
68
+ muteAudio: false,
69
+
70
+ // 聊天客户端
71
+ queueId: '',
72
+ chatType: '',
73
+ historySessionId: '',
74
+ botSessionId: '',
75
+ serviceName: '',
76
+ statusTitle: '',
77
+ sessionEnd: false,
78
+ isServer: false,
79
+ closedSession: false,
80
+
81
+ // 客户端参数
82
+ clientParams: {},
83
+
84
+ // 机器人智能客服
85
+ robotId: '',
86
+ questionId: '',
87
+ dictionaryKey: '',
88
+ chatMode: '',
89
+ chatFlag: false,
90
+ chatUserId: '',
91
+ videoRecord: [],
92
+ videoVoiceList: [],
93
+ clientChatISRobot: '',
94
+ chatName: '',
95
+ scrollQueueId: '',
96
+ lastClassify: '',
97
+ lastCurrentTab: '',
98
+ queryParams: {}, // 路由参数
99
+ accessParams: {}, // 其他参数
100
+ intentionId: '',
101
+ dictionaryValue: '',
102
+ orgId: '',
103
+ curScrollItem: null,
104
+ isQuickReply: false,
105
+ isRecorderVoice: false,
106
+ msgRecordCache: {}, // 消息已读记录缓存
107
+ userStatus: '',
108
+ uniRTC: null,
109
+ incoming: null,
110
+ outing: []
111
+ };
112
+ };
@@ -1,6 +1,7 @@
1
1
  import { message } from 'ant-design-vue';
2
2
  import { getCacheSIP, setCacheSip, openSipDialog } from '@/utils/sip-device';
3
3
  import fetch from '@/utils/chatFetch';
4
+ import axios from 'axios'
4
5
  let chatUid = 0;
5
6
  let chatUids = [];
6
7
  const chatUidUp = () => {
@@ -8,6 +9,30 @@ const chatUidUp = () => {
8
9
  chatUid++;
9
10
  };
10
11
 
12
+ export const getClientDeviceToken = (params) => {
13
+ return axios({
14
+ method: "get",
15
+ baseURL: "",
16
+ url: "/ihcrm/rest/callEsb/util/get",
17
+ params: {
18
+ customerId: params,
19
+ interface: 'getDeviceTokenByCustomerId'
20
+ }
21
+ })
22
+ .then(({ data }) => {
23
+ if (data.status === "success" || data.code === "00000") {
24
+ const result = JSON.parse(data.result);
25
+ if (result.data) {
26
+ return result.data
27
+ }
28
+ } else {
29
+ return false
30
+ }
31
+ })
32
+ .catch((error) => {
33
+ console.error(error)
34
+ });
35
+ };
11
36
  /**
12
37
  * 获取撤回文案
13
38
  * @param ctx Vue
@@ -24,7 +24,19 @@ export default class RtcClient {
24
24
  this.localStream_ = null;
25
25
  this.remoteStreams_ = [];
26
26
  this.options = options;
27
- const sdkjs = Promise.resolve(options.vendor == 2 ? require('@/utils/kty-sdk') : { default: require('trtc-js-sdk') });
27
+ function getSDKJS () {
28
+ if (options.vendor == 2) {
29
+ return require('@/utils/kty-sdk');
30
+ } else if (options.vendor == 3) {
31
+ // 对接江苏省sdk
32
+ return { default: require('@/utils/trtc')}
33
+ // return { default: require('trtc-js-sdk')}
34
+ } else {
35
+ return { default: require('trtc-js-sdk') }
36
+ }
37
+ }
38
+ const sdkjs = Promise.resolve(getSDKJS());
39
+ console.log('sdkjs', sdkjs);
28
40
  sdkjs.then(res => {
29
41
  TRTC = res.default;
30
42
  // check if browser is compatible with TRTC
@@ -94,6 +106,8 @@ export default class RtcClient {
94
106
  },
95
107
  this.client_
96
108
  );
109
+ console.log('单人this.userId_', this.userId_);
110
+ console.log('单人创建本地流:', this.localStream_);
97
111
  // 设置视频分辨率帧率和码率
98
112
  // console.log,暂时注释
99
113
  this.localStream_.setVideoProfile(this.screen ? '1080p' : '720p');
@@ -127,6 +141,7 @@ export default class RtcClient {
127
141
  }
128
142
 
129
143
  async leave() {
144
+ console.log('单人leave: 离开房间');
130
145
  if (!this.isJoined_) {
131
146
  console.warn('leave() - leave without join()d observed');
132
147
  return;
@@ -193,8 +208,13 @@ export default class RtcClient {
193
208
  if (this.isSip) {
194
209
  this.dropSip();
195
210
  } else {
196
- // 停止发布本地流
197
- await this.client_.unpublish(this.localStream_);
211
+ console.log('单人unpublish: 释放本地流:', this.localStream_);
212
+ if (this.options.vendor === 3) {
213
+ this.localStream_.close();
214
+ } else {
215
+ // 停止发布本地流
216
+ await this.client_.unpublish(this.localStream_);
217
+ }
198
218
  }
199
219
  this.isPublished_ = false;
200
220
  } catch (error) {