cnhis-design-vue 3.4.0-beta.72 → 3.4.0-beta.74
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/README.md +87 -87
- package/es/components/iho-chat/index.d.ts +2732 -332
- package/es/components/iho-chat/src/Index.vue.d.ts +2732 -332
- package/es/components/iho-chat/src/Index.vue2.js +5 -3
- package/es/components/iho-chat/src/api/index.d.ts +89 -16
- package/es/components/iho-chat/src/api/index.js +8 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +104 -22
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +191 -29
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +191 -29
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +755 -101
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +610 -51
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +28 -29
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +176 -14
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +175 -10
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +2 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +197 -29
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +48 -11
- package/es/components/iho-chat/src/components/ContextMenu.js +7 -10
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +88 -7
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.d.ts +157 -0
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.js +6 -0
- package/es/components/iho-chat/src/components/MessageMarkdown.vue2.js +41 -0
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +176 -14
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +192 -29
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +91 -8
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +93 -11
- package/es/components/iho-chat/src/components/Video.vue.d.ts +89 -8
- package/es/components/iho-chat/src/components/userItemRender.js +2 -1
- package/es/components/iho-chat/src/constants/index.d.ts +2 -1
- package/es/components/iho-chat/src/constants/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +374 -27
- package/es/components/iho-chat/src/hooks/useData.js +30 -9
- package/es/components/iho-chat/src/hooks/useStreamOutput.d.ts +6 -0
- package/es/components/iho-chat/src/hooks/useStreamOutput.js +100 -0
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +89 -7
- package/es/components/iho-chat/src/hooks/useWebSocket.js +14 -4
- package/es/components/iho-chat/src/types/index.d.ts +39 -7
- package/es/components/iho-chat/src/utils/index.d.ts +2 -1
- package/es/components/iho-chat/src/utils/sseClient.d.ts +22 -0
- package/es/components/iho-chat/src/utils/sseClient.js +97 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/package.json +3 -3
|
@@ -1,11 +1,54 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { type TRTCEvent } from '../hooks';
|
|
3
|
+
import { CHAT_TYPE } from '../constants';
|
|
3
4
|
import { AnyObject } from '../../../../shared/types';
|
|
4
5
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
5
6
|
selfVideoRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
6
7
|
state: {
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
orgId: string;
|
|
10
|
+
currentSessionItem: {
|
|
11
|
+
id: string;
|
|
12
|
+
sessionKey: string;
|
|
13
|
+
receiver: string;
|
|
14
|
+
createdTime: string;
|
|
15
|
+
avatar: string;
|
|
16
|
+
name: string;
|
|
17
|
+
defaultName: string;
|
|
18
|
+
chatType: CHAT_TYPE;
|
|
19
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
20
|
+
status: import("../constants").STATUS;
|
|
21
|
+
sortTime: string;
|
|
22
|
+
topping: boolean;
|
|
23
|
+
unreadNum: number;
|
|
24
|
+
updatedTime: string;
|
|
25
|
+
lastMessageContent: string;
|
|
26
|
+
sender?: string | undefined;
|
|
27
|
+
lastMessageId?: string | undefined;
|
|
28
|
+
lastMessage?: {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
31
|
+
msg: string;
|
|
32
|
+
referenceContent?: any;
|
|
33
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
34
|
+
messageTemplate?: any;
|
|
35
|
+
messageTemplateData?: any;
|
|
36
|
+
fileUrl?: string | undefined;
|
|
37
|
+
avStatus?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
lastMessageSendTime?: string | undefined;
|
|
40
|
+
lastMessageStatus?: string | undefined;
|
|
41
|
+
lastSenderName?: string | undefined;
|
|
42
|
+
businessInfo?: {
|
|
43
|
+
uiSetting?: AnyObject | undefined;
|
|
44
|
+
topicInfo?: {
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
param?: AnyObject | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
labelList?: AnyObject[] | undefined;
|
|
50
|
+
notDisturb: boolean;
|
|
51
|
+
};
|
|
9
52
|
id: string;
|
|
10
53
|
userInfo: AnyObject;
|
|
11
54
|
msgList: {
|
|
@@ -14,7 +57,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
14
57
|
sessionKey: string;
|
|
15
58
|
content: {
|
|
16
59
|
[x: string]: any;
|
|
17
|
-
chatMessageType:
|
|
60
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
18
61
|
msg: string;
|
|
19
62
|
referenceContent?: any;
|
|
20
63
|
forwardMessageList?: AnyObject[] | undefined;
|
|
@@ -32,11 +75,49 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
32
75
|
__time?: string | undefined;
|
|
33
76
|
__sendTime?: string | undefined;
|
|
34
77
|
}[];
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
78
|
+
sessionList: {
|
|
79
|
+
id: string;
|
|
80
|
+
sessionKey: string;
|
|
81
|
+
receiver: string;
|
|
82
|
+
createdTime: string;
|
|
83
|
+
avatar: string;
|
|
84
|
+
name: string;
|
|
85
|
+
defaultName: string;
|
|
86
|
+
chatType: CHAT_TYPE;
|
|
87
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
88
|
+
status: import("../constants").STATUS;
|
|
89
|
+
sortTime: string;
|
|
90
|
+
topping: boolean;
|
|
91
|
+
unreadNum: number;
|
|
92
|
+
updatedTime: string;
|
|
93
|
+
lastMessageContent: string;
|
|
94
|
+
sender?: string | undefined;
|
|
95
|
+
lastMessageId?: string | undefined;
|
|
96
|
+
lastMessage?: {
|
|
97
|
+
[x: string]: any;
|
|
98
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
99
|
+
msg: string;
|
|
100
|
+
referenceContent?: any;
|
|
101
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
102
|
+
messageTemplate?: any;
|
|
103
|
+
messageTemplateData?: any;
|
|
104
|
+
fileUrl?: string | undefined;
|
|
105
|
+
avStatus?: string | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
lastMessageSendTime?: string | undefined;
|
|
108
|
+
lastMessageStatus?: string | undefined;
|
|
109
|
+
lastSenderName?: string | undefined;
|
|
110
|
+
businessInfo?: {
|
|
111
|
+
uiSetting?: AnyObject | undefined;
|
|
112
|
+
topicInfo?: {
|
|
113
|
+
[x: string]: any;
|
|
114
|
+
param?: AnyObject | undefined;
|
|
115
|
+
} | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
labelList?: AnyObject[] | undefined;
|
|
118
|
+
notDisturb: boolean;
|
|
119
|
+
}[];
|
|
38
120
|
isChangeSession: boolean;
|
|
39
|
-
updateSessionItem: AnyObject;
|
|
40
121
|
isUpdateSession: boolean;
|
|
41
122
|
currentReferenceMsg: AnyObject | null;
|
|
42
123
|
currentReEditMsg: AnyObject | null;
|
|
@@ -54,6 +135,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
54
135
|
info: AnyObject | null;
|
|
55
136
|
};
|
|
56
137
|
isForward: boolean;
|
|
138
|
+
loading: boolean;
|
|
57
139
|
};
|
|
58
140
|
sendMessage: (message: {
|
|
59
141
|
chatType?: string | undefined;
|
|
@@ -200,8 +282,50 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
200
282
|
}> & {}>;
|
|
201
283
|
emit: (event: "comfirm", ...args: any[]) => void;
|
|
202
284
|
state: {
|
|
203
|
-
|
|
204
|
-
|
|
285
|
+
[x: string]: any;
|
|
286
|
+
orgId: string;
|
|
287
|
+
currentSessionItem: {
|
|
288
|
+
id: string;
|
|
289
|
+
sessionKey: string;
|
|
290
|
+
receiver: string;
|
|
291
|
+
createdTime: string;
|
|
292
|
+
avatar: string;
|
|
293
|
+
name: string;
|
|
294
|
+
defaultName: string;
|
|
295
|
+
chatType: CHAT_TYPE;
|
|
296
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
297
|
+
status: import("../constants").STATUS;
|
|
298
|
+
sortTime: string;
|
|
299
|
+
topping: boolean;
|
|
300
|
+
unreadNum: number;
|
|
301
|
+
updatedTime: string;
|
|
302
|
+
lastMessageContent: string;
|
|
303
|
+
sender?: string | undefined;
|
|
304
|
+
lastMessageId?: string | undefined;
|
|
305
|
+
lastMessage?: {
|
|
306
|
+
[x: string]: any;
|
|
307
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
308
|
+
msg: string;
|
|
309
|
+
referenceContent?: any;
|
|
310
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
311
|
+
messageTemplate?: any;
|
|
312
|
+
messageTemplateData?: any;
|
|
313
|
+
fileUrl?: string | undefined;
|
|
314
|
+
avStatus?: string | undefined;
|
|
315
|
+
} | undefined;
|
|
316
|
+
lastMessageSendTime?: string | undefined;
|
|
317
|
+
lastMessageStatus?: string | undefined;
|
|
318
|
+
lastSenderName?: string | undefined;
|
|
319
|
+
businessInfo?: {
|
|
320
|
+
uiSetting?: AnyObject | undefined;
|
|
321
|
+
topicInfo?: {
|
|
322
|
+
[x: string]: any;
|
|
323
|
+
param?: AnyObject | undefined;
|
|
324
|
+
} | undefined;
|
|
325
|
+
} | undefined;
|
|
326
|
+
labelList?: AnyObject[] | undefined;
|
|
327
|
+
notDisturb: boolean;
|
|
328
|
+
};
|
|
205
329
|
id: string;
|
|
206
330
|
userInfo: AnyObject;
|
|
207
331
|
msgList: {
|
|
@@ -210,7 +334,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
210
334
|
sessionKey: string;
|
|
211
335
|
content: {
|
|
212
336
|
[x: string]: any;
|
|
213
|
-
chatMessageType:
|
|
337
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
214
338
|
msg: string;
|
|
215
339
|
referenceContent?: any;
|
|
216
340
|
forwardMessageList?: AnyObject[] | undefined;
|
|
@@ -228,11 +352,49 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
228
352
|
__time?: string | undefined;
|
|
229
353
|
__sendTime?: string | undefined;
|
|
230
354
|
}[];
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
355
|
+
sessionList: {
|
|
356
|
+
id: string;
|
|
357
|
+
sessionKey: string;
|
|
358
|
+
receiver: string;
|
|
359
|
+
createdTime: string;
|
|
360
|
+
avatar: string;
|
|
361
|
+
name: string;
|
|
362
|
+
defaultName: string;
|
|
363
|
+
chatType: CHAT_TYPE;
|
|
364
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
365
|
+
status: import("../constants").STATUS;
|
|
366
|
+
sortTime: string;
|
|
367
|
+
topping: boolean;
|
|
368
|
+
unreadNum: number;
|
|
369
|
+
updatedTime: string;
|
|
370
|
+
lastMessageContent: string;
|
|
371
|
+
sender?: string | undefined;
|
|
372
|
+
lastMessageId?: string | undefined;
|
|
373
|
+
lastMessage?: {
|
|
374
|
+
[x: string]: any;
|
|
375
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
376
|
+
msg: string;
|
|
377
|
+
referenceContent?: any;
|
|
378
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
379
|
+
messageTemplate?: any;
|
|
380
|
+
messageTemplateData?: any;
|
|
381
|
+
fileUrl?: string | undefined;
|
|
382
|
+
avStatus?: string | undefined;
|
|
383
|
+
} | undefined;
|
|
384
|
+
lastMessageSendTime?: string | undefined;
|
|
385
|
+
lastMessageStatus?: string | undefined;
|
|
386
|
+
lastSenderName?: string | undefined;
|
|
387
|
+
businessInfo?: {
|
|
388
|
+
uiSetting?: AnyObject | undefined;
|
|
389
|
+
topicInfo?: {
|
|
390
|
+
[x: string]: any;
|
|
391
|
+
param?: AnyObject | undefined;
|
|
392
|
+
} | undefined;
|
|
393
|
+
} | undefined;
|
|
394
|
+
labelList?: AnyObject[] | undefined;
|
|
395
|
+
notDisturb: boolean;
|
|
396
|
+
}[];
|
|
234
397
|
isChangeSession: boolean;
|
|
235
|
-
updateSessionItem: AnyObject;
|
|
236
398
|
isUpdateSession: boolean;
|
|
237
399
|
currentReferenceMsg: AnyObject | null;
|
|
238
400
|
currentReEditMsg: AnyObject | null;
|
|
@@ -250,6 +412,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
250
412
|
info: AnyObject | null;
|
|
251
413
|
};
|
|
252
414
|
isForward: boolean;
|
|
415
|
+
loading: boolean;
|
|
253
416
|
};
|
|
254
417
|
setCurrentSessionItem: (item: AnyObject) => void;
|
|
255
418
|
listRef: import("vue").Ref<any, any>;
|
|
@@ -265,25 +428,25 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
265
428
|
handleInput: () => void;
|
|
266
429
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
|
267
430
|
sessionList: import("vue").ComputedRef<{
|
|
268
|
-
id:
|
|
269
|
-
name:
|
|
270
|
-
avatar:
|
|
271
|
-
chatType:
|
|
272
|
-
roleInfo:
|
|
431
|
+
id: string;
|
|
432
|
+
name: string;
|
|
433
|
+
avatar: string;
|
|
434
|
+
chatType: CHAT_TYPE;
|
|
435
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
273
436
|
}[]>;
|
|
274
437
|
friends: import("vue").ComputedRef<{
|
|
275
|
-
id:
|
|
276
|
-
name:
|
|
277
|
-
avatar:
|
|
278
|
-
chatType:
|
|
279
|
-
roleInfo:
|
|
438
|
+
id: string;
|
|
439
|
+
name: string;
|
|
440
|
+
avatar: string;
|
|
441
|
+
chatType: CHAT_TYPE;
|
|
442
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
280
443
|
}[]>;
|
|
281
444
|
groups: import("vue").ComputedRef<{
|
|
282
|
-
id:
|
|
283
|
-
name:
|
|
284
|
-
avatar:
|
|
285
|
-
chatType:
|
|
286
|
-
roleInfo:
|
|
445
|
+
id: string;
|
|
446
|
+
name: string;
|
|
447
|
+
avatar: string;
|
|
448
|
+
chatType: CHAT_TYPE;
|
|
449
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
287
450
|
}[]>;
|
|
288
451
|
checkedIds: import("vue").ComputedRef<any[]>;
|
|
289
452
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -1,10 +1,54 @@
|
|
|
1
1
|
import { UploadFileInfo } from 'naive-ui';
|
|
2
2
|
import { AnyObject } from '../../../../shared/types';
|
|
3
|
+
import { CHAT_TYPE } from '../constants';
|
|
3
4
|
import { isDoctorRole, getRoleName } from '../utils';
|
|
5
|
+
import { SessionItem } from '../types';
|
|
4
6
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
5
7
|
state: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
orgId: string;
|
|
10
|
+
currentSessionItem: {
|
|
11
|
+
id: string;
|
|
12
|
+
sessionKey: string;
|
|
13
|
+
receiver: string;
|
|
14
|
+
createdTime: string;
|
|
15
|
+
avatar: string;
|
|
16
|
+
name: string;
|
|
17
|
+
defaultName: string;
|
|
18
|
+
chatType: CHAT_TYPE;
|
|
19
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
20
|
+
status: import("../constants").STATUS;
|
|
21
|
+
sortTime: string;
|
|
22
|
+
topping: boolean;
|
|
23
|
+
unreadNum: number;
|
|
24
|
+
updatedTime: string;
|
|
25
|
+
lastMessageContent: string;
|
|
26
|
+
sender?: string | undefined;
|
|
27
|
+
lastMessageId?: string | undefined;
|
|
28
|
+
lastMessage?: {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
31
|
+
msg: string;
|
|
32
|
+
referenceContent?: any;
|
|
33
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
34
|
+
messageTemplate?: any;
|
|
35
|
+
messageTemplateData?: any;
|
|
36
|
+
fileUrl?: string | undefined;
|
|
37
|
+
avStatus?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
lastMessageSendTime?: string | undefined;
|
|
40
|
+
lastMessageStatus?: string | undefined;
|
|
41
|
+
lastSenderName?: string | undefined;
|
|
42
|
+
businessInfo?: {
|
|
43
|
+
uiSetting?: AnyObject | undefined;
|
|
44
|
+
topicInfo?: {
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
param?: AnyObject | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
labelList?: AnyObject[] | undefined;
|
|
50
|
+
notDisturb: boolean;
|
|
51
|
+
};
|
|
8
52
|
id: string;
|
|
9
53
|
userInfo: AnyObject;
|
|
10
54
|
msgList: {
|
|
@@ -13,7 +57,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
13
57
|
sessionKey: string;
|
|
14
58
|
content: {
|
|
15
59
|
[x: string]: any;
|
|
16
|
-
chatMessageType:
|
|
60
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
17
61
|
msg: string;
|
|
18
62
|
referenceContent?: any;
|
|
19
63
|
forwardMessageList?: AnyObject[] | undefined;
|
|
@@ -31,11 +75,49 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
31
75
|
__time?: string | undefined;
|
|
32
76
|
__sendTime?: string | undefined;
|
|
33
77
|
}[];
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
78
|
+
sessionList: {
|
|
79
|
+
id: string;
|
|
80
|
+
sessionKey: string;
|
|
81
|
+
receiver: string;
|
|
82
|
+
createdTime: string;
|
|
83
|
+
avatar: string;
|
|
84
|
+
name: string;
|
|
85
|
+
defaultName: string;
|
|
86
|
+
chatType: CHAT_TYPE;
|
|
87
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
88
|
+
status: import("../constants").STATUS;
|
|
89
|
+
sortTime: string;
|
|
90
|
+
topping: boolean;
|
|
91
|
+
unreadNum: number;
|
|
92
|
+
updatedTime: string;
|
|
93
|
+
lastMessageContent: string;
|
|
94
|
+
sender?: string | undefined;
|
|
95
|
+
lastMessageId?: string | undefined;
|
|
96
|
+
lastMessage?: {
|
|
97
|
+
[x: string]: any;
|
|
98
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
99
|
+
msg: string;
|
|
100
|
+
referenceContent?: any;
|
|
101
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
102
|
+
messageTemplate?: any;
|
|
103
|
+
messageTemplateData?: any;
|
|
104
|
+
fileUrl?: string | undefined;
|
|
105
|
+
avStatus?: string | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
lastMessageSendTime?: string | undefined;
|
|
108
|
+
lastMessageStatus?: string | undefined;
|
|
109
|
+
lastSenderName?: string | undefined;
|
|
110
|
+
businessInfo?: {
|
|
111
|
+
uiSetting?: AnyObject | undefined;
|
|
112
|
+
topicInfo?: {
|
|
113
|
+
[x: string]: any;
|
|
114
|
+
param?: AnyObject | undefined;
|
|
115
|
+
} | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
labelList?: AnyObject[] | undefined;
|
|
118
|
+
notDisturb: boolean;
|
|
119
|
+
}[];
|
|
37
120
|
isChangeSession: boolean;
|
|
38
|
-
updateSessionItem: AnyObject;
|
|
39
121
|
isUpdateSession: boolean;
|
|
40
122
|
currentReferenceMsg: AnyObject | null;
|
|
41
123
|
currentReEditMsg: AnyObject | null;
|
|
@@ -53,8 +135,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
53
135
|
info: AnyObject | null;
|
|
54
136
|
};
|
|
55
137
|
isForward: boolean;
|
|
138
|
+
loading: boolean;
|
|
56
139
|
};
|
|
57
|
-
openSession: (session: string |
|
|
140
|
+
openSession: (session: string | SessionItem) => Promise<void>;
|
|
58
141
|
showLargeAvatar: import("vue").Ref<boolean, boolean>;
|
|
59
142
|
showPhone: import("vue").Ref<boolean, boolean>;
|
|
60
143
|
userDetail: AnyObject;
|
|
@@ -170,7 +170,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
170
170
|
round: "",
|
|
171
171
|
size: 100,
|
|
172
172
|
onClickCapture: _cache[0] || (_cache[0] = ($event) => showLargeAvatar.value = true)
|
|
173
|
-
}, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\n <n-upload-trigger #="{ handleClick }" abstract>\n <n-button\n circle\n secondary\n class="edit-avatar"\n v-show="userDetail.id === state.userInfo.id"\n @click="handleClick"\n >\n <template #icon>\n <n-icon size="16" color="#666666" :component="Camera" />\n </template>\n </n-button>\n </n-upload-trigger>\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
|
|
173
|
+
}, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\r\n <n-upload-trigger #="{ handleClick }" abstract>\r\n <n-button\r\n circle\r\n secondary\r\n class="edit-avatar"\r\n v-show="userDetail.id === state.userInfo.id"\r\n @click="handleClick"\r\n >\r\n <template #icon>\r\n <n-icon size="16" color="#666666" :component="Camera" />\r\n </template>\r\n </n-button>\r\n </n-upload-trigger>\r\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
|
|
174
174
|
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(userDetail.roleInfo) ? "isDoctor" : ""])
|
|
175
175
|
}, toDisplayString(unref(getRoleName)(userDetail.roleInfo)), 3), [[vShow, unref(getRoleName)(userDetail.roleInfo)]])]), createElementVNode("p", null, toDisplayString(userDetail.orgName), 1)]), createVNode(unref(NButton), {
|
|
176
176
|
strong: "",
|
|
@@ -2,6 +2,7 @@ import { CSSProperties } from 'vue';
|
|
|
2
2
|
import { AnyObject } from '../../../../shared/types';
|
|
3
3
|
import { formatTime, isDoctorRole, getRoleName } from '../utils';
|
|
4
4
|
import { STATUS } from '../constants';
|
|
5
|
+
import { SessionItem } from '../types';
|
|
5
6
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
6
7
|
filterKey: {
|
|
7
8
|
all: string;
|
|
@@ -34,8 +35,50 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
34
35
|
filterList: import("vue").Ref<AnyObject[], AnyObject[]>;
|
|
35
36
|
handleInput: () => void;
|
|
36
37
|
state: {
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
[x: string]: any;
|
|
39
|
+
orgId: string;
|
|
40
|
+
currentSessionItem: {
|
|
41
|
+
id: string;
|
|
42
|
+
sessionKey: string;
|
|
43
|
+
receiver: string;
|
|
44
|
+
createdTime: string;
|
|
45
|
+
avatar: string;
|
|
46
|
+
name: string;
|
|
47
|
+
defaultName: string;
|
|
48
|
+
chatType: import("../constants").CHAT_TYPE;
|
|
49
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
50
|
+
status: STATUS;
|
|
51
|
+
sortTime: string;
|
|
52
|
+
topping: boolean;
|
|
53
|
+
unreadNum: number;
|
|
54
|
+
updatedTime: string;
|
|
55
|
+
lastMessageContent: string;
|
|
56
|
+
sender?: string | undefined;
|
|
57
|
+
lastMessageId?: string | undefined;
|
|
58
|
+
lastMessage?: {
|
|
59
|
+
[x: string]: any;
|
|
60
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
61
|
+
msg: string;
|
|
62
|
+
referenceContent?: any;
|
|
63
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
64
|
+
messageTemplate?: any;
|
|
65
|
+
messageTemplateData?: any;
|
|
66
|
+
fileUrl?: string | undefined;
|
|
67
|
+
avStatus?: string | undefined;
|
|
68
|
+
} | undefined;
|
|
69
|
+
lastMessageSendTime?: string | undefined;
|
|
70
|
+
lastMessageStatus?: string | undefined;
|
|
71
|
+
lastSenderName?: string | undefined;
|
|
72
|
+
businessInfo?: {
|
|
73
|
+
uiSetting?: AnyObject | undefined;
|
|
74
|
+
topicInfo?: {
|
|
75
|
+
[x: string]: any;
|
|
76
|
+
param?: AnyObject | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
labelList?: AnyObject[] | undefined;
|
|
80
|
+
notDisturb: boolean;
|
|
81
|
+
};
|
|
39
82
|
id: string;
|
|
40
83
|
userInfo: AnyObject;
|
|
41
84
|
msgList: {
|
|
@@ -44,7 +87,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
44
87
|
sessionKey: string;
|
|
45
88
|
content: {
|
|
46
89
|
[x: string]: any;
|
|
47
|
-
chatMessageType:
|
|
90
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
48
91
|
msg: string;
|
|
49
92
|
referenceContent?: any;
|
|
50
93
|
forwardMessageList?: AnyObject[] | undefined;
|
|
@@ -62,11 +105,49 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
62
105
|
__time?: string | undefined;
|
|
63
106
|
__sendTime?: string | undefined;
|
|
64
107
|
}[];
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
108
|
+
sessionList: {
|
|
109
|
+
id: string;
|
|
110
|
+
sessionKey: string;
|
|
111
|
+
receiver: string;
|
|
112
|
+
createdTime: string;
|
|
113
|
+
avatar: string;
|
|
114
|
+
name: string;
|
|
115
|
+
defaultName: string;
|
|
116
|
+
chatType: import("../constants").CHAT_TYPE;
|
|
117
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
118
|
+
status: STATUS;
|
|
119
|
+
sortTime: string;
|
|
120
|
+
topping: boolean;
|
|
121
|
+
unreadNum: number;
|
|
122
|
+
updatedTime: string;
|
|
123
|
+
lastMessageContent: string;
|
|
124
|
+
sender?: string | undefined;
|
|
125
|
+
lastMessageId?: string | undefined;
|
|
126
|
+
lastMessage?: {
|
|
127
|
+
[x: string]: any;
|
|
128
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
129
|
+
msg: string;
|
|
130
|
+
referenceContent?: any;
|
|
131
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
132
|
+
messageTemplate?: any;
|
|
133
|
+
messageTemplateData?: any;
|
|
134
|
+
fileUrl?: string | undefined;
|
|
135
|
+
avStatus?: string | undefined;
|
|
136
|
+
} | undefined;
|
|
137
|
+
lastMessageSendTime?: string | undefined;
|
|
138
|
+
lastMessageStatus?: string | undefined;
|
|
139
|
+
lastSenderName?: string | undefined;
|
|
140
|
+
businessInfo?: {
|
|
141
|
+
uiSetting?: AnyObject | undefined;
|
|
142
|
+
topicInfo?: {
|
|
143
|
+
[x: string]: any;
|
|
144
|
+
param?: AnyObject | undefined;
|
|
145
|
+
} | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
labelList?: AnyObject[] | undefined;
|
|
148
|
+
notDisturb: boolean;
|
|
149
|
+
}[];
|
|
68
150
|
isChangeSession: boolean;
|
|
69
|
-
updateSessionItem: AnyObject;
|
|
70
151
|
isUpdateSession: boolean;
|
|
71
152
|
currentReferenceMsg: AnyObject | null;
|
|
72
153
|
currentReEditMsg: AnyObject | null;
|
|
@@ -84,20 +165,21 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
84
165
|
info: AnyObject | null;
|
|
85
166
|
};
|
|
86
167
|
isForward: boolean;
|
|
168
|
+
loading: boolean;
|
|
87
169
|
};
|
|
88
170
|
unreadTotal: import("vue").ComputedRef<number>;
|
|
89
171
|
filterable: import("vue").Ref<any, any>;
|
|
90
|
-
openSession: (session: string |
|
|
91
|
-
setUpdateSessionItem: (item:
|
|
172
|
+
openSession: (session: string | SessionItem) => Promise<void>;
|
|
173
|
+
setUpdateSessionItem: (item: SessionItem) => void;
|
|
92
174
|
setCurrentSessionItem: (item: AnyObject) => void;
|
|
93
175
|
currentWidth: import("vue").ComputedRef<number>;
|
|
94
|
-
sessionList: import("vue").ComputedRef<
|
|
176
|
+
sessionList: import("vue").ComputedRef<SessionItem[]>;
|
|
95
177
|
getLabelNum: (session: AnyObject) => number;
|
|
96
178
|
changeWidth: ({ distance }: AnyObject) => void;
|
|
97
179
|
handleFilter: (key: string) => void;
|
|
98
180
|
showSession: (item: AnyObject, currentKey?: string) => boolean | undefined;
|
|
99
181
|
handleContextmenu: (event: MouseEvent, id: string) => Promise<void>;
|
|
100
|
-
handleSelect: (key: string, session:
|
|
182
|
+
handleSelect: (key: string, session: SessionItem) => Promise<void>;
|
|
101
183
|
handleUpdateShow: (value: boolean) => void;
|
|
102
184
|
handleClickoutside: (e: Event) => void;
|
|
103
185
|
handleUpdateDate: (value: string[]) => void;
|