1.更新im
This commit is contained in:
2025-11-12 09:27:01 +08:00
parent 557d013095
commit c94c567c60
7 changed files with 13 additions and 7 deletions
@@ -196,7 +196,7 @@
const getDataList = async () => {
try {
const res = await get('/health-emergency/api/emergency/order/getGroupMemberList', { sessionId: store.getters.getSessionId });
const res = await get('/health-emergency/api/emergency/order/getGroupMemberList', { sessionId: store.getters.getGroupId });
if (res?.code === 200) {
dataList.value = (res?.result || []).map((item: any) => {
return {
@@ -288,7 +288,7 @@
const submit = () => {
loading.value = true;
post('/health-emergency/api/emergency/addGroupUser', {
groupId: store.getters.getSessionId,
groupId: store.getters.getGroupId,
memberList: transferSelectedList.value.map((t: any) => {
return t?.userID;
}),
@@ -447,7 +447,7 @@ export default class TUICallService implements ITUICallService {
console.error(`${NAME.PREFIX}_handleError, errorCode: ${code}; errorMessage: ${callTips || message}.`);
}
private async _handleNewInvitationReceived(event: any) {
store.commit('setSessionId', event?.groupID);
store.commit('setGroupId', event?.groupID);
console.log(`${NAME.PREFIX}onCallReceived event data: ${JSON.stringify(event)}.`);
const { sponsor = '', isFromGroup, callMediaType, inviteData = {}, calleeIdList = [], groupID = '' } = this._analyzeEventData(event);
const currentUserInfo: IUserInfo = TUIStore.getData(StoreName.CALL, NAME.LOCAL_USER_INFO);
+6
View File
@@ -27,6 +27,7 @@ interface RootState {
doctorName: string;
orderId: string | null;
sessionId: string | null;
groupId: string | null;
}
// 初始任务列表
@@ -64,6 +65,7 @@ const initialState: RootState = {
doctorName: '',
orderId: null,
sessionId: null,
groupId: null,
};
// 创建 store
@@ -76,6 +78,7 @@ const store = createStore<RootState>({
getDoctorName: (state) => state.doctorName,
getOrderId: (state) => state.orderId,
getSessionId: (state) => state.sessionId,
getGroupId: (state) => state.groupId,
// 新增有用的 getters
getCompletedTasks: (state) => state.taskList.filter((task) => task.status),
getTaskById: (state) => (id: number) => state.taskList.find((task) => task.id === id),
@@ -130,6 +133,9 @@ const store = createStore<RootState>({
setSessionId(state, sessionId: string | null) {
state.sessionId = sessionId;
},
setGroupId(state, groupId: string | null) {
state.groupId = groupId;
},
},
actions: {
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="icon" href="faviconnew.png"><title>即时通信</title><link href="css/vendors~app.03806786.css" rel="stylesheet"><link href="css/app.a5965174.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but 腾讯云即时通信 Web-IM doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="./TCaptcha.js"></script><script src="./aegis.min.js"></script><script>/**
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="icon" href="faviconnew.png"><title>即时通信</title><link href="css/vendors~app.03806786.css" rel="stylesheet"><link href="css/app.b58bc72b.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but 腾讯云即时通信 Web-IM doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="./TCaptcha.js"></script><script src="./aegis.min.js"></script><script>/**
* 根据基础字体大小 和 效果图宽度设置 根节点字体大小
* @param baseFontSize 浏览器默认字体大小 [注]浏览器最小字体为12像素,所以该值必需大于等于12
* @param baseWidth 设计稿的尺寸
@@ -53,4 +53,4 @@
},
false
);
};</script><script src="js/vendors~app.de88239f.js"></script><script src="js/app.d5a1e691.js"></script></body></html>
};</script><script src="js/vendors~app.de88239f.js"></script><script src="js/app.9b29fc46.js"></script></body></html>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long