Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-consultation
提交
b20ec1ab
提交
b20ec1ab
编写于
1月 22, 2021
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
高度有问题
上级
1b02407b
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
21 行增加
和
12 行删除
+21
-12
filter.js
src/utils/filter.js
+11
-7
index.vue
src/views/IM/current-session/index.vue
+9
-4
list.vue
src/views/IM/waiting-session/list.vue
+1
-1
未找到文件。
src/utils/filter.js
浏览文件 @
b20ec1ab
...
@@ -3,7 +3,7 @@ const vueFilter = {
...
@@ -3,7 +3,7 @@ const vueFilter = {
if
(
!
value
)
return
''
;
if
(
!
value
)
return
''
;
return
new
Date
(
value
).
format
(
"yyyy-MM-dd hh:mm:ss"
);
return
new
Date
(
value
).
format
(
"yyyy-MM-dd hh:mm:ss"
);
},
},
continueTimesFilter
:
(
value
)
=>
{
continueTimesFilter
:
(
value
,
flag
)
=>
{
if
(
!
value
)
return
''
;
if
(
!
value
)
return
''
;
var
duration
=
value
/
1000
;
var
duration
=
value
/
1000
;
var
s
=
Math
.
floor
(
duration
%
60
).
toString
();
var
s
=
Math
.
floor
(
duration
%
60
).
toString
();
...
@@ -18,10 +18,14 @@ const vueFilter = {
...
@@ -18,10 +18,14 @@ const vueFilter = {
if
(
h
.
length
<
2
)
{
if
(
h
.
length
<
2
)
{
h
=
'0'
+
h
;
h
=
'0'
+
h
;
}
}
if
(
parseInt
(
h
)
>=
1
)
{
if
(
flag
)
{
return
h
+
'
时'
+
m
+
'分'
+
s
+
'秒'
;
return
h
+
'
:'
+
m
+
':'
+
s
;
}
else
{
}
else
{
return
m
+
'分'
+
s
+
'秒'
;
if
(
parseInt
(
h
)
>=
1
)
{
return
h
+
'时'
+
m
+
'分'
+
s
+
'秒'
;
}
else
{
return
m
+
'分'
+
s
+
'秒'
;
}
}
}
},
},
liveFilter
:
(
value
)
=>
{
liveFilter
:
(
value
)
=>
{
...
@@ -227,10 +231,10 @@ const vueFilter = {
...
@@ -227,10 +231,10 @@ const vueFilter = {
// 将字符串截短至指定长度,并用在最后追加特定字符串(例如:...)
// 将字符串截短至指定长度,并用在最后追加特定字符串(例如:...)
shortName
:
function
(
value
,
length
=
10
,
append
=
'...'
)
{
shortName
:
function
(
value
,
length
=
10
,
append
=
'...'
)
{
if
(
value
&&
value
.
length
>
length
)
{
if
(
value
&&
value
.
length
>
length
)
{
return
value
.
substring
(
0
,
length
)
+
append
return
value
.
substring
(
0
,
length
)
+
append
}
else
{
}
else
{
return
value
return
value
}
}
},
},
}
}
export
default
vueFilter
export
default
vueFilter
\ No newline at end of file
src/views/IM/current-session/index.vue
浏览文件 @
b20ec1ab
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
<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
id=
"sessionListId"
class=
"session-list"
:style=
"
{'height': containerHeight + 'px'}">
<!--
<ul
id=
"sessionListId"
class=
"session-list"
:style=
"
{'height': containerHeight + 'px'}"> -->
<ul
id=
"sessionListId"
class=
"session-list"
>
<li
<li
class=
"item"
class=
"item"
:class=
"
{'current': currentTaskLogId == session.taskLogId}"
:class=
"
{'current': currentTaskLogId == session.taskLogId}"
...
@@ -51,10 +52,14 @@
...
@@ -51,10 +52,14 @@
<!--
<span
class=
"close-btn"
>
结束会话
</span>
-->
<!--
<span
class=
"close-btn"
>
结束会话
</span>
-->
</section>
</section>
<p
class=
"refreshText"
></p>
<p
class=
"refreshText"
></p>
<section
<
!--
<
section
id=
"msgContentId"
id=
"msgContentId"
class=
"msg-content scroll-box"
class=
"msg-content scroll-box"
:style=
"
{'height': (containerHeight - 35) + 'px'}"
:style=
"
{'height': (containerHeight - 35) + 'px'}"
> -->
<section
id=
"msgContentId"
class=
"msg-content scroll-box"
>
>
<article
<article
v-for=
"(item, index) in messageList"
v-for=
"(item, index) in messageList"
...
@@ -310,8 +315,8 @@ export default {
...
@@ -310,8 +315,8 @@ export default {
_this
.
p_getElm
(
'screenSet'
).
style
.
height
=
_this
.
p_getElm
(
'screenSet'
).
style
.
height
=
_this
.
containerHeight
-
152
+
"px"
;
_this
.
containerHeight
-
152
+
"px"
;
console
.
log
(
'_this.containerHeight'
,
_this
.
containerHeight
);
console
.
log
(
'_this.containerHeight'
,
_this
.
containerHeight
);
_this
.
p_getElm
(
"sessionListId"
).
style
.
height
=
"1000px"
;
_this
.
p_getElm
(
"sessionListId"
).
style
.
height
=
_this
.
containerHeight
+
'px'
;
_this
.
p_getElm
(
"msgContentId"
).
style
.
height
=
"965px"
;
_this
.
p_getElm
(
"msgContentId"
).
style
.
height
=
_this
.
containerHeight
-
35
+
'px'
;
});
});
},
},
...
...
src/views/IM/waiting-session/list.vue
浏览文件 @
b20ec1ab
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<el-table-column
prop=
"userName"
label=
"用户名"
min-width=
"50"
align=
"center"
></el-table-column>
<el-table-column
prop=
"userName"
label=
"用户名"
min-width=
"50"
align=
"center"
></el-table-column>
<el-table-column
prop=
"waitTime"
label=
"等待时间"
min-width=
"100"
align=
"center"
>
<el-table-column
prop=
"waitTime"
label=
"等待时间"
min-width=
"100"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
waitTime
*
1000
|
continueTimesFilter
}}
</span>
<span>
{{
scope
.
row
.
waitTime
*
1000
|
continueTimesFilter
(
true
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"idType"
label=
"用户类型"
min-width=
"50"
align=
"center"
>
<el-table-column
prop=
"idType"
label=
"用户类型"
min-width=
"50"
align=
"center"
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录