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
提交
7be81feb
提交
7be81feb
编写于
1月 25, 2021
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
滚动条样式
上级
ebac1107
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
28 行增加
和
14 行删除
+28
-14
detail.vue
src/views/IM/search-message/detail.vue
+28
-14
未找到文件。
src/views/IM/search-message/detail.vue
浏览文件 @
7be81feb
...
@@ -56,7 +56,7 @@ import BreadCrumb from "@/components/breadcrumb.vue";
...
@@ -56,7 +56,7 @@ import BreadCrumb from "@/components/breadcrumb.vue";
import
{
doUpload
,
getFilePath
}
from
"@/utils/qiniu-util"
;
import
{
doUpload
,
getFilePath
}
from
"@/utils/qiniu-util"
;
import
{
openLoading
,
closeLoading
,
betaHandle
,
timeHandle
}
from
"@/utils/utils"
;
import
{
openLoading
,
closeLoading
,
betaHandle
,
timeHandle
}
from
"@/utils/utils"
;
import
{
getPicaKFAccid
}
from
"@/utils"
;
import
{
getPicaKFAccid
}
from
"@/utils"
;
import
*
as
commonUtil
from
"@/utils/utils"
;
//
import * as commonUtil from "@/utils/utils";
export
default
{
export
default
{
components
:
{
components
:
{
BreadCrumb
BreadCrumb
...
@@ -228,22 +228,27 @@ export default {
...
@@ -228,22 +228,27 @@ export default {
}
}
this
.
POST
(
url
,
req
).
then
((
res
)
=>
{
this
.
POST
(
url
,
req
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
let
arr
=
[],
sortArr
=
[];
if
(
res
.
data
.
length
>
0
)
{
if
(
res
.
data
.
length
>
0
)
{
this
.
historyTime
=
res
.
data
[
0
].
timestamp
;
this
.
hasHistoryData
=
true
;
this
.
hasHistoryData
=
true
;
let
arr
=
res
.
data
;
this
.
historyTime
=
res
.
data
[
0
].
timestamp
;
arr
=
this
.
dataconcatHandle
(
res
.
data
.
reverse
());
this
.
detailData
.
unshift
(...
arr
);
this
.
detailData
.
unshift
(...
arr
);
this
.
detailData
=
this
.
dataconcatHandle
(
this
.
detailData
);
let
el
=
this
.
getElmByID
(
'scroll-set'
);
setTimeout
(()
=>
{
el
.
scrollTop
=
500
;
const
scrollBoxDom
=
document
.
getElementById
(
"scroll-set"
);
scrollBoxDom
.
scrollTop
=
200
;
},
100
);
}
else
{
}
else
{
this
.
hasHistoryData
=
false
;
this
.
hasHistoryData
=
false
;
}
}
}
}
})
})
},
},
// 按照时间大小排序
timeSort
(
arrList
)
{
arrList
.
sort
((
a
,
b
)
=>
{
return
a
.
timestamp
-
b
.
timestamp
;
});
return
arrList
},
// 数据合并转换
// 数据合并转换
dataconcatHandle
(
data
)
{
dataconcatHandle
(
data
)
{
let
currentTaskId
=
''
;
let
currentTaskId
=
''
;
...
@@ -282,10 +287,11 @@ export default {
...
@@ -282,10 +287,11 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.search-msg-detail
{
.search-msg-detail
{
.detail-content
{
.detail-content
{
margin
:
80px
20px
0
;
margin
:
80px
20px
0
20px
;
padding
:
0
20px
;
padding
:
0
0px
0
20px
;
background
:
#fff
;
background
:
#fff
;
#scroll-set
{
#scroll-set
{
overflow-x
:
hidden
;
overflow
:
scroll
;
overflow
:
scroll
;
}
}
.split-line
{
.split-line
{
...
@@ -293,22 +299,22 @@ export default {
...
@@ -293,22 +299,22 @@ export default {
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
margin
:
15px
0
;
//
margin: 15px 0;
font-size
:
14px
;
font-size
:
14px
;
color
:
#
999999
;
color
:
#
333
;
&
:
:
before
{
&
:
:
before
{
flex
:
1
;
flex
:
1
;
content
:
''
;
content
:
''
;
height
:
1px
;
height
:
1px
;
margin-right
:
18px
;
margin-right
:
18px
;
background
:
#f0f1f2
;
background
:
#C7C8C9
;
}
}
&
:
:
after
{
&
:
:
after
{
flex
:
1
;
flex
:
1
;
content
:
''
;
content
:
''
;
height
:
1px
;
height
:
1px
;
margin-left
:
18px
;
margin-left
:
18px
;
background
:
#f0f1f2
;
background
:
#C7C8C9
;
}
}
}
}
.msg-container
{
.msg-container
{
...
@@ -401,5 +407,13 @@ export default {
...
@@ -401,5 +407,13 @@ export default {
border-top
:
1px
solid
#F0F1F2
;
border-top
:
1px
solid
#F0F1F2
;
}
}
}
}
#
scroll-set
:
:-
webkit-scrollbar
{
width
:
10px
;
height
:
5px
;
background-color
:
#F0F1F2
!
important
;
}
#
scroll-set
:
:-
webkit-scrollbar-thumb
{
background-color
:
#F0F1F2
!
important
;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录