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.
- package/CHANGELOG.md +19 -1
- package/es/affix/index.js +8 -8
- package/es/age/index.js +10 -10
- package/es/alert/index.js +8 -8
- package/es/anchor/index.js +8 -8
- package/es/auto-complete/index.js +8 -8
- package/es/avatar/index.js +8 -8
- package/es/back-top/index.js +8 -8
- package/es/badge/index.js +8 -8
- package/es/base/index.js +8 -8
- package/es/big-table/index.js +164 -164
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +31 -31
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +3 -3
- package/es/card/index.js +8 -8
- package/es/carousel/index.js +8 -8
- package/es/cascader/index.js +8 -8
- package/es/checkbox/index.js +9 -9
- package/es/col/index.js +8 -8
- package/es/collapse/index.js +8 -8
- package/es/color-picker/index.js +1 -1
- package/es/comment/index.js +8 -8
- package/es/config-provider/index.js +8 -8
- package/es/date-picker/index.js +8 -8
- package/es/descriptions/index.js +8 -8
- package/es/divider/index.js +8 -8
- package/es/drag-layout/index.js +3 -3
- package/es/drawer/index.js +8 -8
- package/es/dropdown/index.js +8 -8
- package/es/editor/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +21 -30
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/form-table/index.js +62 -62
- package/es/index/index.js +1283 -1085
- package/es/index/style.css +1 -1
- package/es/input/index.js +9 -9
- package/es/input-number/index.js +8 -8
- package/es/layout/index.js +8 -8
- package/es/list/index.js +8 -8
- package/es/locale-provider/index.js +8 -8
- package/es/map/index.js +9 -9
- package/es/mentions/index.js +8 -8
- package/es/menu/index.js +8 -8
- package/es/message/index.js +8 -8
- package/es/multi-chat/index.js +759 -562
- package/es/multi-chat/style.css +1 -1
- package/es/multi-chat-client/index.js +352 -220
- package/es/multi-chat-client/style.css +1 -1
- package/es/multi-chat-history/index.js +278 -38
- package/es/multi-chat-history/style.css +1 -1
- package/es/multi-chat-record/index.js +54 -18
- package/es/multi-chat-setting/index.js +75 -33
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +9 -9
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-view/index.js +33 -33
- package/es/select/index.js +11 -11
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +36 -28
- package/es/select-person/style.css +1 -1
- package/es/shortcut-setter/index.js +10 -10
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/space/index.js +8 -8
- package/es/spin/index.js +8 -8
- package/es/statistic/index.js +8 -8
- package/es/steps/index.js +8 -8
- package/es/switch/index.js +8 -8
- package/es/table-filter/index.js +74 -74
- package/es/tabs/index.js +8 -8
- package/es/tag/index.js +9 -9
- package/es/time-picker/index.js +8 -8
- package/es/timeline/index.js +8 -8
- package/es/tooltip/index.js +8 -8
- package/es/transfer/index.js +8 -8
- package/es/tree/index.js +8 -8
- package/es/tree-select/index.js +8 -8
- package/es/upload/index.js +8 -8
- package/es/utils/UniRTCv2.js +77 -11
- package/es/utils/trtc.js +19025 -0
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +26349 -6267
- package/lib/cui.umd.js +26349 -6267
- package/lib/cui.umd.min.js +149 -147
- package/package.json +1 -1
- package/packages/big-table/src/BigTable.vue +3044 -3044
- package/packages/big-table/src/utils/batchEditing.js +610 -610
- package/packages/big-table/src/utils/bigTableProps.js +95 -95
- package/packages/button/src/ButtonPrint/components/IdentityVerification.vue +181 -181
- package/packages/button/src/ButtonPrint/index.vue +739 -739
- package/packages/fabric-chart/src/components/TimeScaleValue.vue +113 -113
- package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +3 -11
- package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +135 -135
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +558 -558
- package/packages/fabric-chart/src/fabric-chart2/FabricTop.vue +172 -172
- package/packages/multi-chat/chat/audio.vue +18 -5
- package/packages/multi-chat/chat/chatFooter.vue +1594 -1594
- package/packages/multi-chat/chat/chatHeader.vue +4 -1
- package/packages/multi-chat/chat/chatHistory.vue +10 -2
- package/packages/multi-chat/chat/chatMain.vue +5 -0
- package/packages/multi-chat/chat/index.vue +29 -0
- package/packages/multi-chat/chat/mixins/uniRTCAPI.js +10 -7
- package/packages/multi-chat/chat/multiVideo.vue +16 -4
- package/packages/multi-chat/chat/quickReply.vue +439 -439
- package/packages/multi-chat/chat/scrollList.vue +9 -3
- package/packages/multi-chat/components/avatar.vue +64 -26
- package/packages/multi-chat/setting/baseInfo/index.vue +1316 -1316
- package/packages/multi-chat/store/actions.js +8 -4
- package/packages/multi-chat/store/state.js +112 -112
- package/packages/multi-chat/utils/index.js +25 -0
- package/packages/multi-chat/utils/rtc-client.js +23 -3
- package/packages/scale-view/formitem/r-choice.vue +714 -714
- package/packages/scale-view/scaleView.vue +2010 -2010
- package/packages/select-person/select-person.vue +9 -4
- package/packages/table-filter/src/components/c-tree-select/tree-select.vue +336 -336
- package/packages/table-filter/src/components/multi-select/multi-select.vue +219 -219
- package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +340 -340
- package/packages/table-filter/src/components/search-condition/SearchCondition.vue +1825 -1825
- package/packages/table-filter/src/const/dataOptions.js +43 -43
- package/src/directive/preventReClick.js +12 -12
- package/src/utils/UniRTCv2.js +46 -13
- 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-
|
|
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 '
|
|
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, '
|
|
30
|
-
sdkAppId: this.
|
|
31
|
-
userId: this.
|
|
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.
|
|
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
|
-
|
|
476
|
-
this.
|
|
477
|
-
|
|
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);
|