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
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
export const dataOptions = {
|
|
2
|
-
dateTeam0: [
|
|
3
|
-
{ con: 'TODAY', title: '1.1.4.37', name: '今天' },
|
|
4
|
-
{ con: 'TOMORROW', title: '1.1.4.38', name: '明天' },
|
|
5
|
-
{ con: 'YESTERDAY', title: '1.1.4.39', name: '昨天' },
|
|
6
|
-
{ con: 'THIS_WEEK', title: '1.1.4.40', name: '本周' },
|
|
7
|
-
{ con: 'NEXT_WEEK', title: '1.1.4.41', name: '下周' },
|
|
8
|
-
{ con: 'UP_WEEK', title: '1.1.4.42', name: '上周' },
|
|
9
|
-
{ con: 'THIS_MONTH', title: '1.1.4.43', name: '本月' },
|
|
10
|
-
{ con: 'NEXT_MONTH', title: '1.1.4.44', name: '下月' },
|
|
11
|
-
{ con: 'UP_MONTH', title: '1.1.4.45', name: '上月' },
|
|
12
|
-
{ con: 'THIS_SEASON', title: '1.1.4.46', name: '本季度' },
|
|
13
|
-
{ con: 'NEXT_SEASON', title: '1.1.4.47', name: '下季度' },
|
|
14
|
-
{ con: 'UP_SEASON', title: '1.1.4.48', name: '上季度' },
|
|
15
|
-
{ con: 'THIS_YEAR', title: '1.1.4.49', name: '本年' },
|
|
16
|
-
{ con: 'NEXT_YEAR', title: '1.1.4.50', name: '下年' },
|
|
17
|
-
{ con: 'UP_YEAR', title: '1.1.4.51', name: '上年' }
|
|
18
|
-
],
|
|
19
|
-
dateTeam2: [
|
|
20
|
-
{ con: 'TODAY', title: '1.1.4.37', name: '今天' },
|
|
21
|
-
{ con: 'YESTERDAY', title: '1.1.4.39', name: '昨天' },
|
|
22
|
-
{ con: 'THIS_WEEK', title: '1.1.4.40', name: '本周' },
|
|
23
|
-
{ con: 'UP_WEEK', title: '1.1.4.42', name: '上周' },
|
|
24
|
-
{ con: 'THIS_MONTH', title: '1.1.4.43', name: '本月' },
|
|
25
|
-
{ con: 'UP_MONTH', title: '1.1.4.45', name: '上月' },
|
|
26
|
-
{ con: 'THIS_SEASON', title: '1.1.4.46', name: '本季度' },
|
|
27
|
-
{ con: 'UP_SEASON', title: '1.1.4.48', name: '上季度' },
|
|
28
|
-
{ con: 'THIS_YEAR', title: '1.1.4.49', name: '本年' },
|
|
29
|
-
{ con: 'UP_YEAR', title: '1.1.4.51', name: '上年' }
|
|
30
|
-
],
|
|
31
|
-
dateTeam3: [
|
|
32
|
-
{ con: 'TODAY', title: '1.1.4.37', name: '今天' },
|
|
33
|
-
{ con: 'TOMORROW', title: '1.1.4.38', name: '明天' },
|
|
34
|
-
{ con: 'THIS_WEEK', title: '1.1.4.40', name: '本周' },
|
|
35
|
-
{ con: 'NEXT_WEEK', title: '1.1.4.41', name: '下周' },
|
|
36
|
-
{ con: 'THIS_MONTH', title: '1.1.4.43', name: '本月' },
|
|
37
|
-
{ con: 'NEXT_MONTH', title: '1.1.4.44', name: '下月' },
|
|
38
|
-
{ con: 'THIS_SEASON', title: '1.1.4.46', name: '本季度' },
|
|
39
|
-
{ con: 'NEXT_SEASON', title: '1.1.4.47', name: '下季度' },
|
|
40
|
-
{ con: 'THIS_YEAR', title: '1.1.4.49', name: '本年' },
|
|
41
|
-
{ con: 'NEXT_YEAR', title: '1.1.4.50', name: '下年' }
|
|
42
|
-
]
|
|
43
|
-
};
|
|
1
|
+
export const dataOptions = {
|
|
2
|
+
dateTeam0: [
|
|
3
|
+
{ con: 'TODAY', title: '1.1.4.37', name: '今天' },
|
|
4
|
+
{ con: 'TOMORROW', title: '1.1.4.38', name: '明天' },
|
|
5
|
+
{ con: 'YESTERDAY', title: '1.1.4.39', name: '昨天' },
|
|
6
|
+
{ con: 'THIS_WEEK', title: '1.1.4.40', name: '本周' },
|
|
7
|
+
{ con: 'NEXT_WEEK', title: '1.1.4.41', name: '下周' },
|
|
8
|
+
{ con: 'UP_WEEK', title: '1.1.4.42', name: '上周' },
|
|
9
|
+
{ con: 'THIS_MONTH', title: '1.1.4.43', name: '本月' },
|
|
10
|
+
{ con: 'NEXT_MONTH', title: '1.1.4.44', name: '下月' },
|
|
11
|
+
{ con: 'UP_MONTH', title: '1.1.4.45', name: '上月' },
|
|
12
|
+
{ con: 'THIS_SEASON', title: '1.1.4.46', name: '本季度' },
|
|
13
|
+
{ con: 'NEXT_SEASON', title: '1.1.4.47', name: '下季度' },
|
|
14
|
+
{ con: 'UP_SEASON', title: '1.1.4.48', name: '上季度' },
|
|
15
|
+
{ con: 'THIS_YEAR', title: '1.1.4.49', name: '本年' },
|
|
16
|
+
{ con: 'NEXT_YEAR', title: '1.1.4.50', name: '下年' },
|
|
17
|
+
{ con: 'UP_YEAR', title: '1.1.4.51', name: '上年' }
|
|
18
|
+
],
|
|
19
|
+
dateTeam2: [
|
|
20
|
+
{ con: 'TODAY', title: '1.1.4.37', name: '今天' },
|
|
21
|
+
{ con: 'YESTERDAY', title: '1.1.4.39', name: '昨天' },
|
|
22
|
+
{ con: 'THIS_WEEK', title: '1.1.4.40', name: '本周' },
|
|
23
|
+
{ con: 'UP_WEEK', title: '1.1.4.42', name: '上周' },
|
|
24
|
+
{ con: 'THIS_MONTH', title: '1.1.4.43', name: '本月' },
|
|
25
|
+
{ con: 'UP_MONTH', title: '1.1.4.45', name: '上月' },
|
|
26
|
+
{ con: 'THIS_SEASON', title: '1.1.4.46', name: '本季度' },
|
|
27
|
+
{ con: 'UP_SEASON', title: '1.1.4.48', name: '上季度' },
|
|
28
|
+
{ con: 'THIS_YEAR', title: '1.1.4.49', name: '本年' },
|
|
29
|
+
{ con: 'UP_YEAR', title: '1.1.4.51', name: '上年' }
|
|
30
|
+
],
|
|
31
|
+
dateTeam3: [
|
|
32
|
+
{ con: 'TODAY', title: '1.1.4.37', name: '今天' },
|
|
33
|
+
{ con: 'TOMORROW', title: '1.1.4.38', name: '明天' },
|
|
34
|
+
{ con: 'THIS_WEEK', title: '1.1.4.40', name: '本周' },
|
|
35
|
+
{ con: 'NEXT_WEEK', title: '1.1.4.41', name: '下周' },
|
|
36
|
+
{ con: 'THIS_MONTH', title: '1.1.4.43', name: '本月' },
|
|
37
|
+
{ con: 'NEXT_MONTH', title: '1.1.4.44', name: '下月' },
|
|
38
|
+
{ con: 'THIS_SEASON', title: '1.1.4.46', name: '本季度' },
|
|
39
|
+
{ con: 'NEXT_SEASON', title: '1.1.4.47', name: '下季度' },
|
|
40
|
+
{ con: 'THIS_YEAR', title: '1.1.4.49', name: '本年' },
|
|
41
|
+
{ con: 'NEXT_YEAR', title: '1.1.4.50', name: '下年' }
|
|
42
|
+
]
|
|
43
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
inserted(el, binding) {
|
|
3
|
-
el.addEventListener("click", () => {
|
|
4
|
-
if (!el.disabled) {
|
|
5
|
-
el.disabled = true;
|
|
6
|
-
setTimeout(() => {
|
|
7
|
-
el.disabled = false;
|
|
8
|
-
}, binding.value || 1000);
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
export default {
|
|
2
|
+
inserted(el, binding) {
|
|
3
|
+
el.addEventListener("click", () => {
|
|
4
|
+
if (!el.disabled) {
|
|
5
|
+
el.disabled = true;
|
|
6
|
+
setTimeout(() => {
|
|
7
|
+
el.disabled = false;
|
|
8
|
+
}, binding.value || 1000);
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
package/src/utils/UniRTCv2.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import io from 'socket.io-client';
|
|
2
|
+
import fetch, { qs } from './chatFetch';
|
|
2
3
|
|
|
3
|
-
function UniRTCObject(appId, tokenProvider) {
|
|
4
|
+
function UniRTCObject(appId, tokenProvider, vueSelf) {
|
|
4
5
|
|
|
5
6
|
if (appId == null || appId == '') {
|
|
6
7
|
console.error('参数appId必填');
|
|
@@ -29,6 +30,7 @@ function UniRTCObject(appId, tokenProvider) {
|
|
|
29
30
|
this.clientType = '1';
|
|
30
31
|
this.client = null;
|
|
31
32
|
this.localStream = null;
|
|
33
|
+
this.vueSelf = vueSelf;
|
|
32
34
|
// ***********************API*********************//
|
|
33
35
|
|
|
34
36
|
// 我方接听API
|
|
@@ -130,6 +132,7 @@ function UniRTCObject(appId, tokenProvider) {
|
|
|
130
132
|
msg.targetDeviceToken = targetDeviceToken;
|
|
131
133
|
msg.brand = brand;
|
|
132
134
|
msg.message = message;
|
|
135
|
+
console.log('发送videoHangUp事件');
|
|
133
136
|
_socket.emit('videoHangUp', JSON.stringify(msg));
|
|
134
137
|
console.log('进行挂断[' + JSON.stringify(msg) + ']');
|
|
135
138
|
}
|
|
@@ -138,47 +141,51 @@ function UniRTCObject(appId, tokenProvider) {
|
|
|
138
141
|
|
|
139
142
|
// 登录成功callback
|
|
140
143
|
this.onLogined = function() {
|
|
141
|
-
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
// 呼入进来callback
|
|
145
147
|
this.onCallComing = function(incoming) {
|
|
146
|
-
|
|
148
|
+
console.log('呼入进来callback', incoming);
|
|
147
149
|
};
|
|
148
150
|
|
|
149
151
|
// 通话就绪callback
|
|
150
152
|
this.onCallReady = function(incoming) {
|
|
151
|
-
|
|
153
|
+
console.log('通话就绪callback', incoming);
|
|
152
154
|
};
|
|
153
155
|
|
|
154
156
|
// 开始呼叫callback
|
|
155
157
|
this.onCallStarted = function(outing) {
|
|
156
|
-
|
|
158
|
+
console.log('开始呼叫callback', outing);
|
|
157
159
|
};
|
|
158
160
|
|
|
159
161
|
// 停止呼叫callback
|
|
160
162
|
this.onCallStoped = function(outing) {
|
|
161
|
-
|
|
163
|
+
console.log('停止呼叫callback', outing);
|
|
162
164
|
};
|
|
163
165
|
|
|
164
166
|
// 呼出反馈callback
|
|
165
167
|
this.onCallReplied = function(outing) {
|
|
166
|
-
|
|
168
|
+
console.log('呼出反馈callback', outing);
|
|
167
169
|
};
|
|
168
170
|
|
|
169
171
|
// 呼出被接callback
|
|
170
172
|
this.onCallAccepted = function(outing) {
|
|
171
|
-
|
|
173
|
+
console.log('呼出被接callback', outing);
|
|
174
|
+
let videoData = {
|
|
175
|
+
...outing.guestConfig.videoData,
|
|
176
|
+
inviteResult: 1
|
|
177
|
+
}
|
|
178
|
+
this.vueSelf.subscribeAcceptedJST(videoData)
|
|
172
179
|
};
|
|
173
180
|
|
|
174
181
|
// 呼出被拒callback
|
|
175
182
|
this.onCallRefused = function(outing) {
|
|
176
|
-
|
|
183
|
+
console.log('呼出被拒callback', outing);
|
|
177
184
|
};
|
|
178
185
|
|
|
179
186
|
// 呼出超时callback
|
|
180
187
|
this.onCallTimeout = function(outing) {
|
|
181
|
-
|
|
188
|
+
console.log('呼出超时callback', outing);
|
|
182
189
|
};
|
|
183
190
|
|
|
184
191
|
// 设备状态检查
|
|
@@ -210,7 +217,8 @@ function UniRTCObject(appId, tokenProvider) {
|
|
|
210
217
|
|
|
211
218
|
function _connect() {
|
|
212
219
|
// 创建链接
|
|
213
|
-
_socket = io.connect('https://video.jsehealth.com:9999');
|
|
220
|
+
// _socket = io.connect('https://video.jsehealth.com:9999'); // 生产环境
|
|
221
|
+
_socket = io.connect('https://t.jsehealth.com:9997'); // 测试环境
|
|
214
222
|
// _socket = io.connect('http://127.0.0.1:9090');
|
|
215
223
|
// _socket = io.connect("https://dli.xikang.com:9999");
|
|
216
224
|
|
|
@@ -218,7 +226,7 @@ function UniRTCObject(appId, tokenProvider) {
|
|
|
218
226
|
_socket.on('connect', function() {
|
|
219
227
|
_onDeviceConnected();
|
|
220
228
|
_socket.on('registerReturn', _onDeviceRegistered);
|
|
221
|
-
_socket.on('deviceLoginReturn', _onDeviceLogined);
|
|
229
|
+
_socket.on('deviceLoginReturn', _onDeviceLogined);
|
|
222
230
|
_socket.on('videoCallNotification', _onCallComing);
|
|
223
231
|
_socket.on('videoCallReturn', _onCallReplied);
|
|
224
232
|
_socket.on('videoInfoNotification', _onCallReady);
|
|
@@ -303,7 +311,25 @@ function UniRTCObject(appId, tokenProvider) {
|
|
|
303
311
|
// alert('设备登录失败\n' + msg);
|
|
304
312
|
}
|
|
305
313
|
}
|
|
306
|
-
|
|
314
|
+
// 对方拒绝接听回调
|
|
315
|
+
function customerRefuse(vuePage) {
|
|
316
|
+
let curScrollParam = vuePage.getRefuseParam();
|
|
317
|
+
const videoData = vuePage.videoData;
|
|
318
|
+
const params = {
|
|
319
|
+
assemblyId: curScrollParam.assemblyId,
|
|
320
|
+
orgId: curScrollParam.orgId,
|
|
321
|
+
userId: curScrollParam.userId,
|
|
322
|
+
sessionId: videoData.sessionId,
|
|
323
|
+
recordId: videoData.recordId,
|
|
324
|
+
inviteResult: 0,
|
|
325
|
+
isExpire: ''
|
|
326
|
+
};
|
|
327
|
+
fetch.post('/chat/access/videoInviteEnter', qs.stringify(params)).then(({ data }) => {
|
|
328
|
+
if (data.result === 'SUCCESS') {
|
|
329
|
+
vuePage.$message.info('对方拒绝接听');
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
}
|
|
307
333
|
// 呼出反馈handler
|
|
308
334
|
function _onCallReplied(msg) {
|
|
309
335
|
console.log('对方反馈[' + msg + ']');
|
|
@@ -330,6 +356,13 @@ function UniRTCObject(appId, tokenProvider) {
|
|
|
330
356
|
} else if (data.code.substring(0, 1) == '1') {
|
|
331
357
|
console.error(msg);
|
|
332
358
|
// alert(data.msg);
|
|
359
|
+
} else if (data.code === '3001') {
|
|
360
|
+
console.log('错误号:'+data.code+'====>错误编码:'+data.msg);
|
|
361
|
+
customerRefuse(_this.vueSelf);
|
|
362
|
+
target = data.deviceToken;
|
|
363
|
+
outing = _outing.get(target);
|
|
364
|
+
_this.stopCall(outing);
|
|
365
|
+
_this.onCallRefused(outing);
|
|
333
366
|
} else {
|
|
334
367
|
console.log('错误号:'+data.code+'====>错误编码:'+data.msg);
|
|
335
368
|
target = data.deviceToken;
|