cnhis-design-vue 2.1.34 → 2.1.36
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 +43 -9
- 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 +133 -117
- package/es/big-table/style.css +1 -1
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +22 -22
- 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 +646 -2463
- package/es/fabric-chart/style.css +1 -1
- 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 +1801 -3244
- 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 +726 -379
- package/es/multi-chat/style.css +1 -1
- package/es/multi-chat-client/index.js +653 -325
- package/es/multi-chat-client/style.css +1 -1
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +120 -40
- package/es/multi-chat-setting/index.js +154 -49
- 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 +2 -2
- 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 +84 -73
- package/es/table-filter/style.css +1 -1
- 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 +50 -15
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +1940 -3417
- package/lib/cui.umd.js +1940 -3417
- package/lib/cui.umd.min.js +48 -48
- package/package.json +2 -1
- package/packages/big-table/src/BigTable.vue +10 -8
- package/packages/big-table/src/components/AutoLayoutButton.vue +3 -3
- package/packages/fabric-chart/src/FabricChart.vue +8 -36
- package/packages/fabric-chart/src/FabricGrid.vue +3 -10
- package/packages/fabric-chart/src/components/TimeScaleValue.vue +10 -8
- package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
- package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +3 -3
- package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +3 -23
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +49 -41
- package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +5 -6
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +50 -42
- package/packages/fabric-chart/src/mixins/draw.js +25 -5
- package/packages/fabric-chart/src/mixins/fabricCommon.js +14 -4
- package/packages/multi-chat/chat/audio.vue +82 -14
- package/packages/multi-chat/chat/chatFooter.vue +3 -1
- package/packages/multi-chat/chat/chatMain.vue +17 -2
- package/packages/multi-chat/chat/index.vue +23 -3
- package/packages/multi-chat/chat/multiVideo.vue +4 -3
- package/packages/multi-chat/chat/video.vue +2 -1
- package/packages/multi-chat/store/getters.js +12 -0
- package/packages/multi-chat/store/mutation.js +12 -0
- package/packages/multi-chat/store/state.js +5 -1
- package/packages/multi-chat/utils/index.js +53 -0
- package/packages/multi-chat/utils/rtc-client.js +50 -3
- package/packages/scale-view/scaleView.vue +2010 -2010
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +9 -0
- package/src/utils/UniRTCv2.js +40 -12
- package/packages/fabric-chart/src/fabric-chart2/FabricBottom.vue +0 -108
- package/packages/fabric-chart/src/fabric-chart2/FabricCanvas.vue +0 -181
- package/packages/fabric-chart/src/fabric-chart2/FabricCenter.vue +0 -612
- package/packages/fabric-chart/src/fabric-chart2/FabricLeft.vue +0 -104
- package/packages/fabric-chart/src/fabric-chart2/FabricRight.vue +0 -112
- package/packages/fabric-chart/src/fabric-chart2/FabricTop.vue +0 -172
package/es/utils/UniRTCv2.js
CHANGED
|
@@ -7,14 +7,14 @@ var _socket2 = _interopRequireDefault(require("socket.io-client"));
|
|
|
7
7
|
|
|
8
8
|
var _chatFetch = _interopRequireWildcard(require("./chatFetch"));
|
|
9
9
|
|
|
10
|
+
var _vexutils = _interopRequireDefault(require("../utils/vexutils"));
|
|
11
|
+
|
|
10
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
13
|
|
|
12
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
15
|
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
|
|
16
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
-
|
|
18
18
|
function UniRTCObject(appId, tokenProvider, vueSelf) {
|
|
19
19
|
if (appId == null || appId == '') {
|
|
20
20
|
console.error('参数appId必填');
|
|
@@ -142,6 +142,8 @@ function UniRTCObject(appId, tokenProvider, vueSelf) {
|
|
|
142
142
|
msg.deviceArray.push(obj);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
console.log('设备参数', msg);
|
|
146
|
+
|
|
145
147
|
_socket.emit('onlineStatusQuery', JSON.stringify(msg));
|
|
146
148
|
|
|
147
149
|
console.log('检查设备状态[' + JSON.stringify(msg) + ']');
|
|
@@ -193,13 +195,11 @@ function UniRTCObject(appId, tokenProvider, vueSelf) {
|
|
|
193
195
|
|
|
194
196
|
|
|
195
197
|
this.onCallAccepted = function (outing) {
|
|
196
|
-
console.log('呼出被接callback', outing);
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
this.vueSelf.subscribeAcceptedJST(videoData);
|
|
198
|
+
console.log('呼出被接callback', outing); // let videoData = {
|
|
199
|
+
// ...outing.guestConfig.videoData,
|
|
200
|
+
// inviteResult: 1
|
|
201
|
+
// }
|
|
202
|
+
// this.vueSelf.subscribeAcceptedJST(videoData)
|
|
203
203
|
}; // 呼出被拒callback
|
|
204
204
|
|
|
205
205
|
|
|
@@ -215,11 +215,42 @@ function UniRTCObject(appId, tokenProvider, vueSelf) {
|
|
|
215
215
|
|
|
216
216
|
this.onStatusChecked = function (stat) {
|
|
217
217
|
console.log('设备状态检查', stat);
|
|
218
|
+
var index = stat.findIndex(function (item) {
|
|
219
|
+
return item.status == '0';
|
|
220
|
+
});
|
|
221
|
+
var outtings = [];
|
|
222
|
+
outtings.push.apply(outtings, stat);
|
|
223
|
+
var targetInfo = _this.vueSelf.targetInfo;
|
|
224
|
+
|
|
225
|
+
if (index != -1) {
|
|
226
|
+
if (_this.vueSelf.callTimer) {
|
|
227
|
+
clearInterval(_this.vueSelf.callTimer);
|
|
228
|
+
|
|
229
|
+
_this.vueSelf.setCallTimer(null);
|
|
230
|
+
}
|
|
218
231
|
|
|
219
|
-
if (stat[0].status == '0') {
|
|
220
232
|
_this.vueSelf.setCallerStatus('在线');
|
|
233
|
+
|
|
234
|
+
_this.startCall(stat[index].deviceToken, '腾讯视频', 'tencent', {
|
|
235
|
+
sdkAppId: Number(_this.vueSelf.sdkInfo.sdkAppId),
|
|
236
|
+
userId: _this.vueSelf.isServer ? _this.vueSelf.serviceId : _this.vueSelf.clientId,
|
|
237
|
+
userSig: _this.vueSelf.videoData.token,
|
|
238
|
+
roomId: Number(_this.vueSelf.roomId),
|
|
239
|
+
videoData: _this.vueSelf.videoData
|
|
240
|
+
}, {
|
|
241
|
+
sdkAppId: Number(_this.vueSelf.sdkInfo.sdkAppId),
|
|
242
|
+
userId: targetInfo.username,
|
|
243
|
+
userSig: targetInfo.token,
|
|
244
|
+
roomId: Number(_this.vueSelf.videoData.roomId),
|
|
245
|
+
videoData: _this.vueSelf.videoData // privateMapKey
|
|
246
|
+
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
_this.vueSelf.setOuting(outtings);
|
|
221
250
|
} else {
|
|
222
251
|
_this.vueSelf.setCallerStatus('离线');
|
|
252
|
+
|
|
253
|
+
_this.vueSelf.sendVideoCall();
|
|
223
254
|
}
|
|
224
255
|
}; // 会议挂断callback
|
|
225
256
|
|
|
@@ -358,10 +389,12 @@ function UniRTCObject(appId, tokenProvider, vueSelf) {
|
|
|
358
389
|
} else {
|
|
359
390
|
console.error('设备登录失败[' + msg + ']'); // alert('设备登录失败\n' + msg);
|
|
360
391
|
}
|
|
361
|
-
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
var customerConfirmDebounce = _vexutils.default.debounce(customerConfirm, 2000); // 对方接听/拒绝接听回调
|
|
362
395
|
|
|
363
396
|
|
|
364
|
-
function
|
|
397
|
+
function customerConfirm(vuePage, accept) {
|
|
365
398
|
var curScrollParam = vuePage.getRefuseParam();
|
|
366
399
|
var videoData = vuePage.videoData;
|
|
367
400
|
var params = {
|
|
@@ -370,7 +403,7 @@ function UniRTCObject(appId, tokenProvider, vueSelf) {
|
|
|
370
403
|
userId: curScrollParam.userId,
|
|
371
404
|
sessionId: videoData.sessionId,
|
|
372
405
|
recordId: videoData.recordId,
|
|
373
|
-
inviteResult: 0,
|
|
406
|
+
inviteResult: accept ? 1 : 0,
|
|
374
407
|
isExpire: ''
|
|
375
408
|
};
|
|
376
409
|
|
|
@@ -378,7 +411,7 @@ function UniRTCObject(appId, tokenProvider, vueSelf) {
|
|
|
378
411
|
var data = _ref.data;
|
|
379
412
|
|
|
380
413
|
if (data.result === 'SUCCESS') {
|
|
381
|
-
vuePage.$message.info('对方拒绝接听');
|
|
414
|
+
vuePage.$message.info(accept ? '接入成功' : '对方拒绝接听');
|
|
382
415
|
}
|
|
383
416
|
});
|
|
384
417
|
} // 呼出反馈handler
|
|
@@ -390,6 +423,8 @@ function UniRTCObject(appId, tokenProvider, vueSelf) {
|
|
|
390
423
|
var target, outing; // 如果对方接听,就向对方发送视频配置
|
|
391
424
|
|
|
392
425
|
if (data.code == '0') {
|
|
426
|
+
// 接听调用接口
|
|
427
|
+
customerConfirmDebounce(_this.vueSelf, true);
|
|
393
428
|
target = data.deviceToken;
|
|
394
429
|
outing = _outing.get(target);
|
|
395
430
|
|
|
@@ -414,7 +449,7 @@ function UniRTCObject(appId, tokenProvider, vueSelf) {
|
|
|
414
449
|
console.error(msg); // alert(data.msg);
|
|
415
450
|
} else if (data.code === '3001') {
|
|
416
451
|
console.log('错误号:' + data.code + '====>错误编码:' + data.msg);
|
|
417
|
-
|
|
452
|
+
customerConfirmDebounce(_this.vueSelf, false);
|
|
418
453
|
target = data.deviceToken;
|
|
419
454
|
outing = _outing.get(target);
|
|
420
455
|
|
|
@@ -801,7 +801,7 @@ var es_promise_finally = __webpack_require__("a79d");
|
|
|
801
801
|
// EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
|
|
802
802
|
var es_function_name_js_ = __webpack_require__("db0a");
|
|
803
803
|
|
|
804
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
804
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"832f7c18-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/verification-code/verification-code.vue?vue&type=template&id=39c11d42&scoped=true&
|
|
805
805
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"verification-code-container"},[_c('a-input',_vm._g(_vm._b({on:{"change":_vm.verifyCodeChange},model:{value:(_vm.verifyCode),callback:function ($$v) {_vm.verifyCode=$$v},expression:"verifyCode"}},'a-input',_vm.$attrs,false),_vm.$listeners),[_c('template',{slot:"addonAfter"},[_c('span',{staticClass:"captcha-wrap"},[_c('span',{class:['get-code', { disabled: _vm.count }],on:{"click":_vm.sendVerify}},[_vm._v(" "+_vm._s(_vm.getText)+" ")])])])],2)],1)}
|
|
806
806
|
var staticRenderFns = []
|
|
807
807
|
|
|
@@ -967,7 +967,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
967
967
|
)
|
|
968
968
|
|
|
969
969
|
/* harmony default export */ var verification_code = (component.exports);
|
|
970
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
970
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"832f7c18-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/verification-code/SlideVerify.vue?vue&type=template&id=738bb298&scoped=true&
|
|
971
971
|
var SlideVerifyvue_type_template_id_738bb298_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"slide"},[(_vm.title)?_c('div',{staticClass:"verify-title"},[_c('span',[_vm._v(_vm._s(_vm.title))]),_c('div',{staticClass:"right-icon",on:{"click":_vm.cancelVerify}},[_c('a-icon',{attrs:{"type":"close"}})],1)]):_vm._e(),_c('div',{staticClass:"verify-div"},[_c('div',{staticClass:"verify-container"},[_c('div',{staticClass:"slide-verify"},[_c('div',{staticClass:"bg-wrap"},[_c('img',{staticClass:"bg-img",style:(_vm.resourceStyle),attrs:{"src":_vm.resource.resourceImg,"alt":""}})]),_c('a-icon',{staticClass:"slide-verify-refresh-icon",attrs:{"type":"redo"},on:{"click":_vm.refresh}}),_c('img',{ref:"block",staticClass:"slide-verify-block",style:(_vm.puzzleStyle),attrs:{"src":_vm.resource.puzzleImg,"draggable":"false"},on:{"mousedown":_vm.sliderDown}}),_c('div',{staticClass:"slide-verify-slider",class:{
|
|
972
972
|
'container-active': _vm.containerActive,
|
|
973
973
|
'container-success': _vm.containerSuccess,
|