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
提交
1b02407b
提交
1b02407b
编写于
1月 22, 2021
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
高度问题等
上级
7344ca1b
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
26 行增加
和
13 行删除
+26
-13
index.scss
src/views/IM/current-session/index.scss
+1
-1
index.vue
src/views/IM/current-session/index.vue
+25
-12
未找到文件。
src/views/IM/current-session/index.scss
浏览文件 @
1b02407b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
.component-content
{
.component-content
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
min-height
:
600px
;
//
min-height: 600px;
min-width
:
1200px
;
min-width
:
1200px
;
font-size
:
14px
;
font-size
:
14px
;
.left
{
.left
{
...
...
src/views/IM/current-session/index.vue
浏览文件 @
1b02407b
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<span
@
click=
"fetchOneTask"
>
再来一个
</span>
<span
@
click=
"fetchOneTask"
>
再来一个
</span>
</div>
</div>
<p
class=
"c-num"
>
当前等待会话:
{{
this
.
sessionListData
.
waitingTaskCount
}}
个
</p>
<p
class=
"c-num"
>
当前等待会话:
{{
this
.
sessionListData
.
waitingTaskCount
}}
个
</p>
<ul
class=
"session-list"
:style=
"
{'height': containerHeight + 'px'}">
<ul
id=
"sessionListId"
class=
"session-list"
:style=
"
{'height': containerHeight + 'px'}">
<li
<li
class=
"item"
class=
"item"
:class=
"
{'current': currentTaskLogId == session.taskLogId}"
:class=
"
{'current': currentTaskLogId == session.taskLogId}"
...
@@ -51,7 +51,11 @@
...
@@ -51,7 +51,11 @@
<!--
<span
class=
"close-btn"
>
结束会话
</span>
-->
<!--
<span
class=
"close-btn"
>
结束会话
</span>
-->
</section>
</section>
<p
class=
"refreshText"
></p>
<p
class=
"refreshText"
></p>
<section
class=
"msg-content scroll-box"
:style=
"
{'height': (containerHeight - 35) + 'px'}">
<section
id=
"msgContentId"
class=
"msg-content scroll-box"
:style=
"
{'height': (containerHeight - 35) + 'px'}"
>
<article
<article
v-for=
"(item, index) in messageList"
v-for=
"(item, index) in messageList"
:key=
"index"
:key=
"index"
...
@@ -199,8 +203,8 @@ import {
...
@@ -199,8 +203,8 @@ import {
import
*
as
commonUtil
from
"@/utils/utils"
;
import
*
as
commonUtil
from
"@/utils/utils"
;
import
{
getPicaKFAccid
,
getPhomeDemain
}
from
"@/utils"
;
import
{
getPicaKFAccid
,
getPhomeDemain
}
from
"@/utils"
;
import
UserInfo
from
"@/components/IM/user-info.vue"
;
import
UserInfo
from
"@/components/IM/user-info.vue"
;
const
CONTAINER_HEIGHT
=
300
;
//
const CONTAINER_HEIGHT = 300;
//
const CONTAINER_HEIGHT = 700;
const
CONTAINER_HEIGHT
=
700
;
let
forwardMsgIntervalId
=
null
;
let
forwardMsgIntervalId
=
null
;
let
sessionIntervalId
=
null
;
let
sessionIntervalId
=
null
;
let
continueIntervalId
=
null
;
let
continueIntervalId
=
null
;
...
@@ -285,10 +289,10 @@ export default {
...
@@ -285,10 +289,10 @@ export default {
// 监听消息列表的变化,添加sessionFlag(会话结束标志)
// 监听消息列表的变化,添加sessionFlag(会话结束标志)
messageList
:
{
messageList
:
{
handler
(
newMsgList
)
{
handler
(
newMsgList
)
{
let
l
=
newMsgList
.
length
;
let
l
=
newMsgList
.
length
;
if
(
l
>=
2
)
{
if
(
l
>=
2
)
{
for
(
let
i
=
1
;
i
<
l
;
i
++
)
{
for
(
let
i
=
1
;
i
<
l
;
i
++
)
{
if
(
newMsgList
[
i
-
1
].
taskLogId
!==
newMsgList
[
i
].
taskLogId
)
{
if
(
newMsgList
[
i
-
1
].
taskLogId
!==
newMsgList
[
i
].
taskLogId
)
{
newMsgList
[
i
].
sessionFlag
=
true
;
newMsgList
[
i
].
sessionFlag
=
true
;
}
}
}
}
...
@@ -300,6 +304,15 @@ export default {
...
@@ -300,6 +304,15 @@ export default {
mounted
()
{
mounted
()
{
// this.resizeHeight();
// this.resizeHeight();
this
.
$nextTick
(()
=>
{
_this
.
containerHeight
=
_this
.
p_getElm
(
'slidebar-container'
).
getBoundingClientRect
().
height
-
15
;
_this
.
p_getElm
(
'screenSet'
).
style
.
height
=
_this
.
containerHeight
-
152
+
"px"
;
console
.
log
(
'_this.containerHeight'
,
_this
.
containerHeight
);
_this
.
p_getElm
(
"sessionListId"
).
style
.
height
=
"1000px"
;
_this
.
p_getElm
(
"msgContentId"
).
style
.
height
=
"965px"
;
});
},
},
methods
:
{
methods
:
{
...
@@ -314,9 +327,9 @@ export default {
...
@@ -314,9 +327,9 @@ export default {
_this
.
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
15
;
_this
.
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
15
;
_this
.
p_getElm
(
containerHeightId
).
style
.
height
=
_this
.
p_getElm
(
containerHeightId
).
style
.
height
=
_this
.
containerHeight
-
cMinusHeight
+
"px"
;
_this
.
containerHeight
-
cMinusHeight
+
"px"
;
console
.
log
(
'containerHeight'
,
_this
.
containerHeight
);
console
.
log
(
"containerHeight"
,
_this
.
containerHeight
);
window
.
onresize
=
function
()
{
window
.
onresize
=
function
()
{
console
.
log
(
'containerHeight2'
,
_this
.
containerHeight
);
console
.
log
(
"containerHeight2"
,
_this
.
containerHeight
);
_this
.
containerHeight
=
_this
.
containerHeight
=
_this
.
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
15
;
_this
.
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
15
;
_this
.
p_getElm
(
containerHeightId
).
style
.
height
=
_this
.
p_getElm
(
containerHeightId
).
style
.
height
=
...
@@ -324,8 +337,8 @@ export default {
...
@@ -324,8 +337,8 @@ export default {
};
};
},
},
p_getElm
(
elmId
){
p_getElm
(
elmId
)
{
return
document
.
getElementById
(
elmId
)
return
document
.
getElementById
(
elmId
);
},
},
// 处理发送消息
// 处理发送消息
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录