Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-IM
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-IM
提交
4a00e667
提交
4a00e667
编写于
1月 22, 2021
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
设置会话标志
上级
7039a9d9
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
10 行增加
和
6 行删除
+10
-6
index.vue
src/views/IM/current-session/index.vue
+10
-6
未找到文件。
src/views/IM/current-session/index.vue
浏览文件 @
4a00e667
...
...
@@ -286,8 +286,8 @@ export default {
handler
(
newMsgList
)
{
let
l
=
newMsgList
.
length
;
if
(
l
>=
2
)
{
for
(
let
i
=
1
;
i
<
l
-
1
;
i
++
)
{
if
(
newMsgList
[
i
-
1
].
taskLogId
==
newMsgList
[
i
].
taskLogId
)
{
for
(
let
i
=
1
;
i
<
l
;
i
++
)
{
if
(
newMsgList
[
i
-
1
].
taskLogId
!
==
newMsgList
[
i
].
taskLogId
)
{
newMsgList
[
i
].
sessionFlag
=
true
;
}
}
...
...
@@ -310,19 +310,23 @@ export default {
containerHeightId
=
"screenSet"
)
{
let
containerHeight
=
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
15
;
p_getElm
(
containerHeightId
).
style
.
height
=
this
.
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
15
;
this
.
p_getElm
(
containerHeightId
).
style
.
height
=
containerHeight
-
cMinusHeight
+
"px"
;
console
.
log
(
'containerHeight'
,
containerHeight
);
window
.
onresize
=
function
()
{
console
.
log
(
'containerHeight2'
,
containerHeight
);
containerHeight
=
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
15
;
p_getElm
(
containerHeightId
).
style
.
height
=
this
.
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
15
;
this
.
p_getElm
(
containerHeightId
).
style
.
height
=
containerHeight
-
cMinusHeight
+
"px"
;
};
},
p_getElm
(
elmId
){
return
document
.
getElementById
(
elmId
)
},
// 处理发送消息
// 1: 先将消息体直接显示在对话框中
// 2: 设置一个时间戳,以便再次找回
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录