update
1.更新im
This commit is contained in:
+2
-2
@@ -196,7 +196,7 @@
|
|||||||
|
|
||||||
const getDataList = async () => {
|
const getDataList = async () => {
|
||||||
try {
|
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) {
|
if (res?.code === 200) {
|
||||||
dataList.value = (res?.result || []).map((item: any) => {
|
dataList.value = (res?.result || []).map((item: any) => {
|
||||||
return {
|
return {
|
||||||
@@ -288,7 +288,7 @@
|
|||||||
const submit = () => {
|
const submit = () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
post('/health-emergency/api/emergency/addGroupUser', {
|
post('/health-emergency/api/emergency/addGroupUser', {
|
||||||
groupId: store.getters.getSessionId,
|
groupId: store.getters.getGroupId,
|
||||||
memberList: transferSelectedList.value.map((t: any) => {
|
memberList: transferSelectedList.value.map((t: any) => {
|
||||||
return t?.userID;
|
return t?.userID;
|
||||||
}),
|
}),
|
||||||
|
|||||||
+1
-1
@@ -447,7 +447,7 @@ export default class TUICallService implements ITUICallService {
|
|||||||
console.error(`${NAME.PREFIX}_handleError, errorCode: ${code}; errorMessage: ${callTips || message}.`);
|
console.error(`${NAME.PREFIX}_handleError, errorCode: ${code}; errorMessage: ${callTips || message}.`);
|
||||||
}
|
}
|
||||||
private async _handleNewInvitationReceived(event: any) {
|
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)}.`);
|
console.log(`${NAME.PREFIX}onCallReceived event data: ${JSON.stringify(event)}.`);
|
||||||
const { sponsor = '', isFromGroup, callMediaType, inviteData = {}, calleeIdList = [], groupID = '' } = this._analyzeEventData(event);
|
const { sponsor = '', isFromGroup, callMediaType, inviteData = {}, calleeIdList = [], groupID = '' } = this._analyzeEventData(event);
|
||||||
const currentUserInfo: IUserInfo = TUIStore.getData(StoreName.CALL, NAME.LOCAL_USER_INFO);
|
const currentUserInfo: IUserInfo = TUIStore.getData(StoreName.CALL, NAME.LOCAL_USER_INFO);
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ interface RootState {
|
|||||||
doctorName: string;
|
doctorName: string;
|
||||||
orderId: string | null;
|
orderId: string | null;
|
||||||
sessionId: string | null;
|
sessionId: string | null;
|
||||||
|
groupId: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 初始任务列表
|
// 初始任务列表
|
||||||
@@ -64,6 +65,7 @@ const initialState: RootState = {
|
|||||||
doctorName: '',
|
doctorName: '',
|
||||||
orderId: null,
|
orderId: null,
|
||||||
sessionId: null,
|
sessionId: null,
|
||||||
|
groupId: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
// 创建 store
|
// 创建 store
|
||||||
@@ -76,6 +78,7 @@ const store = createStore<RootState>({
|
|||||||
getDoctorName: (state) => state.doctorName,
|
getDoctorName: (state) => state.doctorName,
|
||||||
getOrderId: (state) => state.orderId,
|
getOrderId: (state) => state.orderId,
|
||||||
getSessionId: (state) => state.sessionId,
|
getSessionId: (state) => state.sessionId,
|
||||||
|
getGroupId: (state) => state.groupId,
|
||||||
// 新增有用的 getters
|
// 新增有用的 getters
|
||||||
getCompletedTasks: (state) => state.taskList.filter((task) => task.status),
|
getCompletedTasks: (state) => state.taskList.filter((task) => task.status),
|
||||||
getTaskById: (state) => (id: number) => state.taskList.find((task) => task.id === id),
|
getTaskById: (state) => (id: number) => state.taskList.find((task) => task.id === id),
|
||||||
@@ -130,6 +133,9 @@ const store = createStore<RootState>({
|
|||||||
setSessionId(state, sessionId: string | null) {
|
setSessionId(state, sessionId: string | null) {
|
||||||
state.sessionId = sessionId;
|
state.sessionId = sessionId;
|
||||||
},
|
},
|
||||||
|
setGroupId(state, groupId: string | null) {
|
||||||
|
state.groupId = groupId;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -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 baseFontSize 浏览器默认字体大小 [注]浏览器最小字体为12像素,所以该值必需大于等于12
|
||||||
* @param baseWidth 设计稿的尺寸
|
* @param baseWidth 设计稿的尺寸
|
||||||
@@ -53,4 +53,4 @@
|
|||||||
},
|
},
|
||||||
false
|
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
Reference in New Issue
Block a user