cnhis-design-vue 3.4.0-beta.73 → 3.4.0-beta.75
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/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
- package/es/components/iho-chat/index.d.ts +2561 -199
- package/es/components/iho-chat/src/Index.vue.d.ts +2561 -199
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +102 -18
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +187 -21
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +187 -21
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +734 -69
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +531 -33
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +172 -6
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +173 -6
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +2 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +188 -21
- package/es/components/iho-chat/src/components/ContextMenu.js +7 -10
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +86 -3
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.d.ts +86 -3
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +172 -6
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +188 -21
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +89 -4
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +91 -7
- package/es/components/iho-chat/src/components/Video.vue.d.ts +87 -4
- package/es/components/iho-chat/src/hooks/useData.d.ts +350 -19
- package/es/components/iho-chat/src/hooks/useStreamOutput.js +2 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +87 -3
- package/es/components/iho-chat/src/types/index.d.ts +37 -3
- package/es/components/iho-chat/src/utils/index.d.ts +2 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -17,8 +17,50 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
17
17
|
};
|
|
18
18
|
}>> & Readonly<{}> & {}>;
|
|
19
19
|
state: {
|
|
20
|
+
[x: string]: any;
|
|
20
21
|
orgId: string;
|
|
21
|
-
currentSessionItem:
|
|
22
|
+
currentSessionItem: {
|
|
23
|
+
id: string;
|
|
24
|
+
sessionKey: string;
|
|
25
|
+
receiver: string;
|
|
26
|
+
createdTime: string;
|
|
27
|
+
avatar: string;
|
|
28
|
+
name: string;
|
|
29
|
+
defaultName: string;
|
|
30
|
+
chatType: import("../constants").CHAT_TYPE;
|
|
31
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
32
|
+
status: import("../constants").STATUS;
|
|
33
|
+
sortTime: string;
|
|
34
|
+
topping: boolean;
|
|
35
|
+
unreadNum: number;
|
|
36
|
+
updatedTime: string;
|
|
37
|
+
lastMessageContent: string;
|
|
38
|
+
sender?: string | undefined;
|
|
39
|
+
lastMessageId?: string | undefined;
|
|
40
|
+
lastMessage?: {
|
|
41
|
+
[x: string]: any;
|
|
42
|
+
chatMessageType: MESSAGE_TYPE;
|
|
43
|
+
msg: string;
|
|
44
|
+
referenceContent?: any;
|
|
45
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
46
|
+
messageTemplate?: any;
|
|
47
|
+
messageTemplateData?: any;
|
|
48
|
+
fileUrl?: string | undefined;
|
|
49
|
+
avStatus?: string | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
lastMessageSendTime?: string | undefined;
|
|
52
|
+
lastMessageStatus?: string | undefined;
|
|
53
|
+
lastSenderName?: string | undefined;
|
|
54
|
+
businessInfo?: {
|
|
55
|
+
uiSetting?: AnyObject | undefined;
|
|
56
|
+
topicInfo?: {
|
|
57
|
+
[x: string]: any;
|
|
58
|
+
param?: AnyObject | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
labelList?: AnyObject[] | undefined;
|
|
62
|
+
notDisturb: boolean;
|
|
63
|
+
};
|
|
22
64
|
id: string;
|
|
23
65
|
userInfo: AnyObject;
|
|
24
66
|
msgList: {
|
|
@@ -27,7 +69,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
27
69
|
sessionKey: string;
|
|
28
70
|
content: {
|
|
29
71
|
[x: string]: any;
|
|
30
|
-
chatMessageType:
|
|
72
|
+
chatMessageType: MESSAGE_TYPE;
|
|
31
73
|
msg: string;
|
|
32
74
|
referenceContent?: any;
|
|
33
75
|
forwardMessageList?: AnyObject[] | undefined;
|
|
@@ -45,7 +87,48 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
45
87
|
__time?: string | undefined;
|
|
46
88
|
__sendTime?: string | undefined;
|
|
47
89
|
}[];
|
|
48
|
-
sessionList:
|
|
90
|
+
sessionList: {
|
|
91
|
+
id: string;
|
|
92
|
+
sessionKey: string;
|
|
93
|
+
receiver: string;
|
|
94
|
+
createdTime: string;
|
|
95
|
+
avatar: string;
|
|
96
|
+
name: string;
|
|
97
|
+
defaultName: string;
|
|
98
|
+
chatType: import("../constants").CHAT_TYPE;
|
|
99
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
100
|
+
status: import("../constants").STATUS;
|
|
101
|
+
sortTime: string;
|
|
102
|
+
topping: boolean;
|
|
103
|
+
unreadNum: number;
|
|
104
|
+
updatedTime: string;
|
|
105
|
+
lastMessageContent: string;
|
|
106
|
+
sender?: string | undefined;
|
|
107
|
+
lastMessageId?: string | undefined;
|
|
108
|
+
lastMessage?: {
|
|
109
|
+
[x: string]: any;
|
|
110
|
+
chatMessageType: MESSAGE_TYPE;
|
|
111
|
+
msg: string;
|
|
112
|
+
referenceContent?: any;
|
|
113
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
114
|
+
messageTemplate?: any;
|
|
115
|
+
messageTemplateData?: any;
|
|
116
|
+
fileUrl?: string | undefined;
|
|
117
|
+
avStatus?: string | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
lastMessageSendTime?: string | undefined;
|
|
120
|
+
lastMessageStatus?: string | undefined;
|
|
121
|
+
lastSenderName?: string | undefined;
|
|
122
|
+
businessInfo?: {
|
|
123
|
+
uiSetting?: AnyObject | undefined;
|
|
124
|
+
topicInfo?: {
|
|
125
|
+
[x: string]: any;
|
|
126
|
+
param?: AnyObject | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
labelList?: AnyObject[] | undefined;
|
|
130
|
+
notDisturb: boolean;
|
|
131
|
+
}[];
|
|
49
132
|
isChangeSession: boolean;
|
|
50
133
|
isUpdateSession: boolean;
|
|
51
134
|
currentReferenceMsg: AnyObject | null;
|
|
@@ -299,8 +382,50 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
299
382
|
};
|
|
300
383
|
}>> & Readonly<{}> & {}>;
|
|
301
384
|
state: {
|
|
385
|
+
[x: string]: any;
|
|
302
386
|
orgId: string;
|
|
303
|
-
currentSessionItem:
|
|
387
|
+
currentSessionItem: {
|
|
388
|
+
id: string;
|
|
389
|
+
sessionKey: string;
|
|
390
|
+
receiver: string;
|
|
391
|
+
createdTime: string;
|
|
392
|
+
avatar: string;
|
|
393
|
+
name: string;
|
|
394
|
+
defaultName: string;
|
|
395
|
+
chatType: import("../constants").CHAT_TYPE;
|
|
396
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
397
|
+
status: import("../constants").STATUS;
|
|
398
|
+
sortTime: string;
|
|
399
|
+
topping: boolean;
|
|
400
|
+
unreadNum: number;
|
|
401
|
+
updatedTime: string;
|
|
402
|
+
lastMessageContent: string;
|
|
403
|
+
sender?: string | undefined;
|
|
404
|
+
lastMessageId?: string | undefined;
|
|
405
|
+
lastMessage?: {
|
|
406
|
+
[x: string]: any;
|
|
407
|
+
chatMessageType: MESSAGE_TYPE;
|
|
408
|
+
msg: string;
|
|
409
|
+
referenceContent?: any;
|
|
410
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
411
|
+
messageTemplate?: any;
|
|
412
|
+
messageTemplateData?: any;
|
|
413
|
+
fileUrl?: string | undefined;
|
|
414
|
+
avStatus?: string | undefined;
|
|
415
|
+
} | undefined;
|
|
416
|
+
lastMessageSendTime?: string | undefined;
|
|
417
|
+
lastMessageStatus?: string | undefined;
|
|
418
|
+
lastSenderName?: string | undefined;
|
|
419
|
+
businessInfo?: {
|
|
420
|
+
uiSetting?: AnyObject | undefined;
|
|
421
|
+
topicInfo?: {
|
|
422
|
+
[x: string]: any;
|
|
423
|
+
param?: AnyObject | undefined;
|
|
424
|
+
} | undefined;
|
|
425
|
+
} | undefined;
|
|
426
|
+
labelList?: AnyObject[] | undefined;
|
|
427
|
+
notDisturb: boolean;
|
|
428
|
+
};
|
|
304
429
|
id: string;
|
|
305
430
|
userInfo: AnyObject;
|
|
306
431
|
msgList: {
|
|
@@ -309,7 +434,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
309
434
|
sessionKey: string;
|
|
310
435
|
content: {
|
|
311
436
|
[x: string]: any;
|
|
312
|
-
chatMessageType:
|
|
437
|
+
chatMessageType: MESSAGE_TYPE;
|
|
313
438
|
msg: string;
|
|
314
439
|
referenceContent?: any;
|
|
315
440
|
forwardMessageList?: AnyObject[] | undefined;
|
|
@@ -327,7 +452,48 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
327
452
|
__time?: string | undefined;
|
|
328
453
|
__sendTime?: string | undefined;
|
|
329
454
|
}[];
|
|
330
|
-
sessionList:
|
|
455
|
+
sessionList: {
|
|
456
|
+
id: string;
|
|
457
|
+
sessionKey: string;
|
|
458
|
+
receiver: string;
|
|
459
|
+
createdTime: string;
|
|
460
|
+
avatar: string;
|
|
461
|
+
name: string;
|
|
462
|
+
defaultName: string;
|
|
463
|
+
chatType: import("../constants").CHAT_TYPE;
|
|
464
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
465
|
+
status: import("../constants").STATUS;
|
|
466
|
+
sortTime: string;
|
|
467
|
+
topping: boolean;
|
|
468
|
+
unreadNum: number;
|
|
469
|
+
updatedTime: string;
|
|
470
|
+
lastMessageContent: string;
|
|
471
|
+
sender?: string | undefined;
|
|
472
|
+
lastMessageId?: string | undefined;
|
|
473
|
+
lastMessage?: {
|
|
474
|
+
[x: string]: any;
|
|
475
|
+
chatMessageType: MESSAGE_TYPE;
|
|
476
|
+
msg: string;
|
|
477
|
+
referenceContent?: any;
|
|
478
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
479
|
+
messageTemplate?: any;
|
|
480
|
+
messageTemplateData?: any;
|
|
481
|
+
fileUrl?: string | undefined;
|
|
482
|
+
avStatus?: string | undefined;
|
|
483
|
+
} | undefined;
|
|
484
|
+
lastMessageSendTime?: string | undefined;
|
|
485
|
+
lastMessageStatus?: string | undefined;
|
|
486
|
+
lastSenderName?: string | undefined;
|
|
487
|
+
businessInfo?: {
|
|
488
|
+
uiSetting?: AnyObject | undefined;
|
|
489
|
+
topicInfo?: {
|
|
490
|
+
[x: string]: any;
|
|
491
|
+
param?: AnyObject | undefined;
|
|
492
|
+
} | undefined;
|
|
493
|
+
} | undefined;
|
|
494
|
+
labelList?: AnyObject[] | undefined;
|
|
495
|
+
notDisturb: boolean;
|
|
496
|
+
}[];
|
|
331
497
|
isChangeSession: boolean;
|
|
332
498
|
isUpdateSession: boolean;
|
|
333
499
|
currentReferenceMsg: AnyObject | null;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { AnyObject } from '../../../../shared/types';
|
|
2
|
+
import { CHAT_TYPE } from '../constants';
|
|
3
|
+
import { SessionItem } from '../types';
|
|
2
4
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
5
|
userListRef: import("vue").Ref<any, any>;
|
|
4
6
|
patientListRef: import("vue").Ref<any, any>;
|
|
@@ -7,8 +9,50 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
7
9
|
keyword: import("vue").Ref<string, string>;
|
|
8
10
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
|
9
11
|
state: {
|
|
12
|
+
[x: string]: any;
|
|
10
13
|
orgId: string;
|
|
11
|
-
currentSessionItem:
|
|
14
|
+
currentSessionItem: {
|
|
15
|
+
id: string;
|
|
16
|
+
sessionKey: string;
|
|
17
|
+
receiver: string;
|
|
18
|
+
createdTime: string;
|
|
19
|
+
avatar: string;
|
|
20
|
+
name: string;
|
|
21
|
+
defaultName: string;
|
|
22
|
+
chatType: CHAT_TYPE;
|
|
23
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
24
|
+
status: import("../constants").STATUS;
|
|
25
|
+
sortTime: string;
|
|
26
|
+
topping: boolean;
|
|
27
|
+
unreadNum: number;
|
|
28
|
+
updatedTime: string;
|
|
29
|
+
lastMessageContent: string;
|
|
30
|
+
sender?: string | undefined;
|
|
31
|
+
lastMessageId?: string | undefined;
|
|
32
|
+
lastMessage?: {
|
|
33
|
+
[x: string]: any;
|
|
34
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
35
|
+
msg: string;
|
|
36
|
+
referenceContent?: any;
|
|
37
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
38
|
+
messageTemplate?: any;
|
|
39
|
+
messageTemplateData?: any;
|
|
40
|
+
fileUrl?: string | undefined;
|
|
41
|
+
avStatus?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
lastMessageSendTime?: string | undefined;
|
|
44
|
+
lastMessageStatus?: string | undefined;
|
|
45
|
+
lastSenderName?: string | undefined;
|
|
46
|
+
businessInfo?: {
|
|
47
|
+
uiSetting?: AnyObject | undefined;
|
|
48
|
+
topicInfo?: {
|
|
49
|
+
[x: string]: any;
|
|
50
|
+
param?: AnyObject | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
labelList?: AnyObject[] | undefined;
|
|
54
|
+
notDisturb: boolean;
|
|
55
|
+
};
|
|
12
56
|
id: string;
|
|
13
57
|
userInfo: AnyObject;
|
|
14
58
|
msgList: {
|
|
@@ -17,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
17
61
|
sessionKey: string;
|
|
18
62
|
content: {
|
|
19
63
|
[x: string]: any;
|
|
20
|
-
chatMessageType:
|
|
64
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
21
65
|
msg: string;
|
|
22
66
|
referenceContent?: any;
|
|
23
67
|
forwardMessageList?: AnyObject[] | undefined;
|
|
@@ -35,7 +79,48 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
35
79
|
__time?: string | undefined;
|
|
36
80
|
__sendTime?: string | undefined;
|
|
37
81
|
}[];
|
|
38
|
-
sessionList:
|
|
82
|
+
sessionList: {
|
|
83
|
+
id: string;
|
|
84
|
+
sessionKey: string;
|
|
85
|
+
receiver: string;
|
|
86
|
+
createdTime: string;
|
|
87
|
+
avatar: string;
|
|
88
|
+
name: string;
|
|
89
|
+
defaultName: string;
|
|
90
|
+
chatType: CHAT_TYPE;
|
|
91
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
92
|
+
status: import("../constants").STATUS;
|
|
93
|
+
sortTime: string;
|
|
94
|
+
topping: boolean;
|
|
95
|
+
unreadNum: number;
|
|
96
|
+
updatedTime: string;
|
|
97
|
+
lastMessageContent: string;
|
|
98
|
+
sender?: string | undefined;
|
|
99
|
+
lastMessageId?: string | undefined;
|
|
100
|
+
lastMessage?: {
|
|
101
|
+
[x: string]: any;
|
|
102
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
103
|
+
msg: string;
|
|
104
|
+
referenceContent?: any;
|
|
105
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
106
|
+
messageTemplate?: any;
|
|
107
|
+
messageTemplateData?: any;
|
|
108
|
+
fileUrl?: string | undefined;
|
|
109
|
+
avStatus?: string | undefined;
|
|
110
|
+
} | undefined;
|
|
111
|
+
lastMessageSendTime?: string | undefined;
|
|
112
|
+
lastMessageStatus?: string | undefined;
|
|
113
|
+
lastSenderName?: string | undefined;
|
|
114
|
+
businessInfo?: {
|
|
115
|
+
uiSetting?: AnyObject | undefined;
|
|
116
|
+
topicInfo?: {
|
|
117
|
+
[x: string]: any;
|
|
118
|
+
param?: AnyObject | undefined;
|
|
119
|
+
} | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
labelList?: AnyObject[] | undefined;
|
|
122
|
+
notDisturb: boolean;
|
|
123
|
+
}[];
|
|
39
124
|
isChangeSession: boolean;
|
|
40
125
|
isUpdateSession: boolean;
|
|
41
126
|
currentReferenceMsg: AnyObject | null;
|
|
@@ -56,21 +141,103 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
56
141
|
isForward: boolean;
|
|
57
142
|
loading: boolean;
|
|
58
143
|
};
|
|
59
|
-
openSession: (session: string |
|
|
144
|
+
openSession: (session: string | SessionItem) => Promise<void>;
|
|
60
145
|
userList: import("vue").Ref<AnyObject[], AnyObject[]>;
|
|
61
146
|
handleInput: () => void;
|
|
62
147
|
patientList: import("vue").Ref<AnyObject[], AnyObject[]>;
|
|
63
148
|
handlePatientInput: () => void;
|
|
64
149
|
currentTabValue: import("vue").Ref<string, string>;
|
|
65
150
|
currentIndex: import("vue").Ref<number, number>;
|
|
66
|
-
groupList: import("vue").ComputedRef<
|
|
151
|
+
groupList: import("vue").ComputedRef<{
|
|
152
|
+
id: string;
|
|
153
|
+
sessionKey: string;
|
|
154
|
+
receiver: string;
|
|
155
|
+
createdTime: string;
|
|
156
|
+
avatar: string;
|
|
157
|
+
name: string;
|
|
158
|
+
defaultName: string;
|
|
159
|
+
chatType: CHAT_TYPE;
|
|
160
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
161
|
+
status: import("../constants").STATUS;
|
|
162
|
+
sortTime: string;
|
|
163
|
+
topping: boolean;
|
|
164
|
+
unreadNum: number;
|
|
165
|
+
updatedTime: string;
|
|
166
|
+
lastMessageContent: string;
|
|
167
|
+
sender?: string | undefined;
|
|
168
|
+
lastMessageId?: string | undefined;
|
|
169
|
+
lastMessage?: {
|
|
170
|
+
[x: string]: any;
|
|
171
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
172
|
+
msg: string;
|
|
173
|
+
referenceContent?: any;
|
|
174
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
175
|
+
messageTemplate?: any;
|
|
176
|
+
messageTemplateData?: any;
|
|
177
|
+
fileUrl?: string | undefined;
|
|
178
|
+
avStatus?: string | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
lastMessageSendTime?: string | undefined;
|
|
181
|
+
lastMessageStatus?: string | undefined;
|
|
182
|
+
lastSenderName?: string | undefined;
|
|
183
|
+
businessInfo?: {
|
|
184
|
+
uiSetting?: AnyObject | undefined;
|
|
185
|
+
topicInfo?: {
|
|
186
|
+
[x: string]: any;
|
|
187
|
+
param?: AnyObject | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
labelList?: AnyObject[] | undefined;
|
|
191
|
+
notDisturb: boolean;
|
|
192
|
+
}[]>;
|
|
67
193
|
showNoUserData: import("vue").ComputedRef<boolean>;
|
|
68
194
|
showNoPatientData: import("vue").ComputedRef<boolean>;
|
|
69
195
|
showAllNoData: import("vue").ComputedRef<boolean>;
|
|
70
196
|
showGroupNoData: import("vue").ComputedRef<boolean>;
|
|
71
197
|
userStartIndex: import("vue").ComputedRef<number>;
|
|
72
198
|
groupStartIndex: import("vue").ComputedRef<number>;
|
|
73
|
-
currentList: import("vue").ComputedRef<AnyObject[]
|
|
199
|
+
currentList: import("vue").ComputedRef<AnyObject[] | {
|
|
200
|
+
id: string;
|
|
201
|
+
sessionKey: string;
|
|
202
|
+
receiver: string;
|
|
203
|
+
createdTime: string;
|
|
204
|
+
avatar: string;
|
|
205
|
+
name: string;
|
|
206
|
+
defaultName: string;
|
|
207
|
+
chatType: CHAT_TYPE;
|
|
208
|
+
roleInfo: import("../constants").ROLE_TYPE;
|
|
209
|
+
status: import("../constants").STATUS;
|
|
210
|
+
sortTime: string;
|
|
211
|
+
topping: boolean;
|
|
212
|
+
unreadNum: number;
|
|
213
|
+
updatedTime: string;
|
|
214
|
+
lastMessageContent: string;
|
|
215
|
+
sender?: string | undefined;
|
|
216
|
+
lastMessageId?: string | undefined;
|
|
217
|
+
lastMessage?: {
|
|
218
|
+
[x: string]: any;
|
|
219
|
+
chatMessageType: import("../constants").MESSAGE_TYPE;
|
|
220
|
+
msg: string;
|
|
221
|
+
referenceContent?: any;
|
|
222
|
+
forwardMessageList?: AnyObject[] | undefined;
|
|
223
|
+
messageTemplate?: any;
|
|
224
|
+
messageTemplateData?: any;
|
|
225
|
+
fileUrl?: string | undefined;
|
|
226
|
+
avStatus?: string | undefined;
|
|
227
|
+
} | undefined;
|
|
228
|
+
lastMessageSendTime?: string | undefined;
|
|
229
|
+
lastMessageStatus?: string | undefined;
|
|
230
|
+
lastSenderName?: string | undefined;
|
|
231
|
+
businessInfo?: {
|
|
232
|
+
uiSetting?: AnyObject | undefined;
|
|
233
|
+
topicInfo?: {
|
|
234
|
+
[x: string]: any;
|
|
235
|
+
param?: AnyObject | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
labelList?: AnyObject[] | undefined;
|
|
239
|
+
notDisturb: boolean;
|
|
240
|
+
}[]>;
|
|
74
241
|
handleSearchInput: () => void;
|
|
75
242
|
handleKeyDown: (event: KeyboardEvent) => void;
|
|
76
243
|
addSession: (id: string) => Promise<void>;
|
|
@@ -5,6 +5,7 @@ import { SearchOutline } from '@vicons/ionicons5';
|
|
|
5
5
|
import { useData } from '../hooks/useData.js';
|
|
6
6
|
import 'stompjs';
|
|
7
7
|
import 'sockjs-client/dist/sockjs.min.js';
|
|
8
|
+
import { CHAT_TYPE } from '../constants/index.js';
|
|
8
9
|
import { openSessionApi } from '../api/index.js';
|
|
9
10
|
import { isGroup } from '../utils/index.js';
|
|
10
11
|
import { trim } from 'lodash-es';
|
|
@@ -132,7 +133,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
132
133
|
let data = session;
|
|
133
134
|
if (!session) {
|
|
134
135
|
const _data = await openSessionApi({
|
|
135
|
-
chatType:
|
|
136
|
+
chatType: CHAT_TYPE.SINGLE,
|
|
136
137
|
receiver: id,
|
|
137
138
|
sender: state.userInfo.id
|
|
138
139
|
});
|