1.修改im聊天记录问题,更新im
This commit is contained in:
2026-01-07 18:18:31 +08:00
parent 2bd4cd399e
commit 9711d55edd
18 changed files with 106 additions and 25 deletions
@@ -183,7 +183,6 @@
const optional = computed(() => data.list.filter((item: any) => !item.isDisabled)); const optional = computed(() => data.list.filter((item: any) => !item.isDisabled));
const handleInput = (e: any) => { const handleInput = (e: any) => {
debugger;
ctx.emit('search', e.target.value); ctx.emit('search', e.target.value);
}; };
@@ -590,7 +590,6 @@
}; };
const submit = (userList: any) => { const submit = (userList: any) => {
debugger;
if (data.transferType === 'remove') { if (data.transferType === 'remove') {
data.userList = userList; data.userList = userList;
data.delDialogShow = !data.delDialogShow; data.delDialogShow = !data.delDialogShow;
@@ -298,7 +298,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
overflow: hidden; overflow: auto;
} }
} }
.image-preview { .image-preview {
-1
View File
@@ -592,7 +592,6 @@
}; };
const handleCurrentConversation = (value: string) => { const handleCurrentConversation = (value: string) => {
debugger;
data.currentModel = 'message'; data.currentModel = 'message';
data.currentConversationID = value; data.currentConversationID = value;
}; };
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
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.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>/** <!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.0de947d6.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.c17189d0.js"></script></body></html> };</script><script src="js/vendors~app.de88239f.js"></script><script src="js/app.8ff38855.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
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,6 +1,6 @@
import { getEnvInfo } from '/@/utils/getEnv'; import { getEnvInfo } from '/@/utils/getEnv';
export const imAddressSrc = `/static/im-web/index.html?${getUrlP()}`; // export const imAddressSrc = `/static/im-web/index.html?${getUrlP()}`;
// export const imAddressSrc = `http://localhost:8080?${getUrlP()}`; export const imAddressSrc = `http://localhost:8080?${getUrlP()}`;
function getUrlP() { function getUrlP() {
return `vitePlatform=${getEnvInfo().VITE_PLATFORM}&`; return `vitePlatform=${getEnvInfo().VITE_PLATFORM}&`;
@@ -1,5 +1,5 @@
<template> <template>
<div> <div ref="helperHistoryRef">
<!--引用表格--> <!--引用表格-->
<BasicTable @register="registerTable"> <BasicTable @register="registerTable">
<!--操作栏--> <!--操作栏-->
@@ -11,7 +11,7 @@
<div v-html="text"></div> <div v-html="text"></div>
</template> </template>
</BasicTable> </BasicTable>
<emergency-modal @register="registerModal1" :im-props="imProps" /> <emergency-modal @register="registerModal1" :im-props="imProps" :getContainer="helperHistoryRef" />
</div> </div>
</template> </template>
@@ -28,6 +28,7 @@
import { userSigAndroidApi } from '/@/views/emergency/communication/components/commApi'; import { userSigAndroidApi } from '/@/views/emergency/communication/components/commApi';
const [registerModal1, { openModal: openModal1 }] = useModal(); const [registerModal1, { openModal: openModal1 }] = useModal();
const helperHistoryRef = ref();
const imProps = ref<Object>({ const imProps = ref<Object>({
sdkAppId: '', sdkAppId: '',
userSig: '', userSig: '',
@@ -98,3 +99,17 @@
getSig(); getSig();
</script> </script>
<style scoped lang="less">
:deep(.ant-modal-content) {
display: flex;
flex-direction: column;
}
:deep(.ant-modal-body) {
flex: 1;
}
:deep(.scrollbar__view) {
> div {
min-height: 60vh !important;
}
}
</style>
@@ -1,5 +1,5 @@
<template> <template>
<div> <div ref="helperHistoryRef">
<!--引用表格--> <!--引用表格-->
<BasicTable @register="registerTable"> <BasicTable @register="registerTable">
<template #tableTitle> <template #tableTitle>
@@ -16,7 +16,7 @@
</BasicTable> </BasicTable>
<!-- 表单区域 --> <!-- 表单区域 -->
<staff-for-doctor-modal @register="registerModal" @success="handleSuccess" /> <staff-for-doctor-modal @register="registerModal" @success="handleSuccess" />
<emergency-modal @register="registerModal1" :im-props="imProps" /> <emergency-modal @register="registerModal1" :im-props="imProps" :getContainer="helperHistoryRef" />
<ExportUtil task-code="UserToDoctorExportCode" @register="registerExport" drawer-title="员工咨询专家导出" /> <ExportUtil task-code="UserToDoctorExportCode" @register="registerExport" drawer-title="员工咨询专家导出" />
</div> </div>
</template> </template>
@@ -39,6 +39,7 @@
const [registerModal, { openModal }] = useModal(); const [registerModal, { openModal }] = useModal();
const [registerModal1, { openModal: openModal1 }] = useModal(); const [registerModal1, { openModal: openModal1 }] = useModal();
const [registerExport, { openDrawer }] = useDrawer(); const [registerExport, { openDrawer }] = useDrawer();
const helperHistoryRef = ref();
const imProps = ref<Object>({ const imProps = ref<Object>({
sdkAppId: '', sdkAppId: '',
userSig: '', userSig: '',
@@ -132,4 +133,17 @@
getSig(); getSig();
</script> </script>
<style scoped></style> <style scoped lang="less">
:deep(.ant-modal-content) {
display: flex;
flex-direction: column;
}
:deep(.ant-modal-body) {
flex: 1;
}
:deep(.scrollbar__view) {
> div {
min-height: 60vh !important;
}
}
</style>
@@ -1,5 +1,5 @@
<template> <template>
<div> <div ref="helperHistoryRef">
<!--引用表格--> <!--引用表格-->
<BasicTable @register="registerTable"> <BasicTable @register="registerTable">
<template #tableTitle> <template #tableTitle>
@@ -14,7 +14,7 @@
</BasicTable> </BasicTable>
<!-- 表单区域 --> <!-- 表单区域 -->
<staff-for-doctor-modal @register="registerModal" @success="handleSuccess" /> <staff-for-doctor-modal @register="registerModal" @success="handleSuccess" />
<emergency-modal :im-props="imProps" @register="registerModal1" /> <emergency-modal :im-props="imProps" @register="registerModal1" :getContainer="helperHistoryRef" />
<ExportUtil drawer-title="员工咨询专家导出" task-code="UserToDoctorExportCodeV2" @register="registerExport" /> <ExportUtil drawer-title="员工咨询专家导出" task-code="UserToDoctorExportCodeV2" @register="registerExport" />
</div> </div>
</template> </template>
@@ -39,6 +39,7 @@
const [registerModal, { openModal }] = useModal(); const [registerModal, { openModal }] = useModal();
const [registerModal1, { openModal: openModal1 }] = useModal(); const [registerModal1, { openModal: openModal1 }] = useModal();
const [registerExport, { openDrawer }] = useDrawer(); const [registerExport, { openDrawer }] = useDrawer();
const helperHistoryRef = ref();
const imProps = ref<Object>({ const imProps = ref<Object>({
sdkAppId: '', sdkAppId: '',
userSig: '', userSig: '',
@@ -159,4 +160,17 @@
getSig(); getSig();
</script> </script>
<style scoped></style> <style scoped lang="less">
:deep(.ant-modal-content) {
display: flex;
flex-direction: column;
}
:deep(.ant-modal-body) {
flex: 1;
}
:deep(.scrollbar__view) {
> div {
min-height: 60vh !important;
}
}
</style>
@@ -1,5 +1,5 @@
<template> <template>
<div> <div ref="helperHistoryRef">
<!--引用表格--> <!--引用表格-->
<BasicTable :rowSelection="null" @register="registerTable"> <BasicTable :rowSelection="null" @register="registerTable">
<template #tableTitle> <template #tableTitle>
@@ -17,7 +17,7 @@
<div v-html="text"></div> <div v-html="text"></div>
</template> </template>
</BasicTable> </BasicTable>
<emergency-modal @register="registerModal1" :im-props="imProps" /> <emergency-modal @register="registerModal1" :im-props="imProps" :getContainer="helperHistoryRef" />
<ExportUtil task-code="UserToHelpExportCode" @register="registerExport" drawer-title="员工咨询专家导出" /> <ExportUtil task-code="UserToHelpExportCode" @register="registerExport" drawer-title="员工咨询专家导出" />
<medical-modal <medical-modal
@register="registerModalM" @register="registerModalM"
@@ -50,6 +50,7 @@
const [registerExport, { openDrawer }] = useDrawer(); const [registerExport, { openDrawer }] = useDrawer();
const helperHistoryRef = ref();
const imProps = ref<Object>({ const imProps = ref<Object>({
sdkAppId: '', sdkAppId: '',
userSig: '', userSig: '',
@@ -137,3 +138,17 @@
getSig(); getSig();
</script> </script>
<style scoped lang="less">
:deep(.ant-modal-content) {
display: flex;
flex-direction: column;
}
:deep(.ant-modal-body) {
flex: 1;
}
:deep(.scrollbar__view) {
> div {
min-height: 60vh !important;
}
}
</style>
@@ -1,6 +1,18 @@
<template> <template>
<BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose title="历史记录" :width="800" @close="closeModalF"> <BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose title="历史记录" :width="800" @close="closeModalF">
<div style="width: 100%; height: 60vh; display: flex; align-items: center; justify-content: center"> <div
style="
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
"
>
<a-spin class="iframe" tip="加载中..." v-if="loadingVisible" :spinning="loadingVisible" /> <a-spin class="iframe" tip="加载中..." v-if="loadingVisible" :spinning="loadingVisible" />
<iframe v-show="!loadingVisible" id="iframeRef" ref="iframeRef" style="width: 100%; height: 100%" class="iframe"></iframe> <iframe v-show="!loadingVisible" id="iframeRef" ref="iframeRef" style="width: 100%; height: 100%" class="iframe"></iframe>
</div> </div>
@@ -31,6 +43,7 @@
}&getMessageList=0&isOvertime=${isOvertime.value}`; }&getMessageList=0&isOvertime=${isOvertime.value}`;
setModalProps({ setModalProps({
footer: null, footer: null,
defaultFullscreen: false,
}); });
}); });
window.onmessage = (msg) => { window.onmessage = (msg) => {
@@ -1,5 +1,5 @@
<template> <template>
<div> <div ref="helperHistoryRef">
<!--引用表格--> <!--引用表格-->
<BasicTable :rowSelection="null" @register="registerTable" v-if="!checkedExpert"> <BasicTable :rowSelection="null" @register="registerTable" v-if="!checkedExpert">
<template #form-consultType="{ model, filed }"> <template #form-consultType="{ model, filed }">
@@ -31,7 +31,7 @@
</BasicTable> </BasicTable>
<!-- 表单区域 --> <!-- 表单区域 -->
<staffForDoctorModal @register="registerModal" @success="handleSuccess" /> <staffForDoctorModal @register="registerModal" @success="handleSuccess" />
<emergency-modal @register="registerModal1" :im-props="imProps" /> <emergency-modal @register="registerModal1" :im-props="imProps" :getContainer="helperHistoryRef" />
<medical-modal <medical-modal
@register="registerModalM" @register="registerModalM"
@success=" @success="
@@ -63,6 +63,7 @@
import ExportUtil from '/@/utils/export/exportUtil.vue'; import ExportUtil from '/@/utils/export/exportUtil.vue';
const checkedExpert = ref<Boolean>(false); const checkedExpert = ref<Boolean>(false);
const helperHistoryRef = ref();
//注册model //注册model
const [registerModal, { openModal }] = useModal(); const [registerModal, { openModal }] = useModal();
const [registerModal1, { openModal: openModal1 }] = useModal(); const [registerModal1, { openModal: openModal1 }] = useModal();
@@ -285,4 +286,16 @@
background-color: #466afb !important; background-color: #466afb !important;
color: #ffffff !important; color: #ffffff !important;
} }
:deep(.ant-modal-content) {
display: flex;
flex-direction: column;
}
:deep(.ant-modal-body) {
flex: 1;
}
:deep(.scrollbar__view) {
> div {
min-height: 60vh !important;
}
}
</style> </style>