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
提交
e8d5846c
提交
e8d5846c
编写于
1月 26, 2021
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
解决bug等
上级
aee7c041
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
56 行增加
和
12 行删除
+56
-12
index.scss
src/views/IM/current-session/index.scss
+1
-2
index.vue
src/views/IM/current-session/index.vue
+55
-10
未找到文件。
src/views/IM/current-session/index.scss
浏览文件 @
e8d5846c
...
...
@@ -367,9 +367,8 @@
}
p
{
margin-top
:
10px
;
text-align
:
center
;
font-size
:
14px
;
color
:
#000000
;
color
:
rgba
(
0
,
0
,
0
,
0
.65
)
;
}
}
}
...
...
src/views/IM/current-session/index.vue
浏览文件 @
e8d5846c
...
...
@@ -104,8 +104,8 @@
</div>
</div>
<div
v-if=
"item.showType == 4"
class=
"mid-text"
>
{{
item
.
suffix
}}
<span
class=
"link"
>
{{
item
.
text
}}
</span>
{{
item
.
text
}}
<span
class=
"link"
>
{{
item
.
suffix
}}
</span>
</div>
<div
v-if=
"item.showType == 5"
class=
"mid-text no-support"
>
<img
src=
"../../../assets/image/IM/icon-warning-circle.png"
alt
/>
...
...
@@ -118,7 +118,7 @@
v-if=
"item.sendOrReceive && item.isShowErrorMsg"
class=
"error-mg"
:class=
"
{'mr': item.sendOrReceive}"
>
{{
item
.
isE
rrorMsg
}}
</span>
>
{{
item
.
e
rrorMsg
}}
</span>
</article>
</section>
<section
class=
"c-bottom"
>
...
...
@@ -211,9 +211,10 @@ import { getPicaKFAccid, getPhomeDemain } from "@/utils";
import
UserInfo
from
"@/components/IM/user-info.vue"
;
// const CONTAINER_HEIGHT = 300;
const
CONTAINER_HEIGHT
=
700
;
let
forwardMsgIntervalId
=
null
;
let
sessionIntervalId
=
null
;
let
continueIntervalId
=
null
;
let
forwardMsgIntervalId
=
null
,
sessionIntervalId
=
null
,
continueIntervalId
=
null
,
autoCompletionIntervalId
=
null
;
let
_this
=
null
;
export
default
{
...
...
@@ -287,6 +288,7 @@ export default {
deep
:
true
},
},
created
()
{
_this
=
this
;
this
.
picakfAccId
=
getPicaKFAccid
();
...
...
@@ -298,6 +300,11 @@ export default {
},
10000
);
this
.
getFiveContentList
();
autoCompletionIntervalId
&&
clearInterval
(
autoCompletionIntervalId
);
autoCompletionIntervalId
=
setInterval
(()
=>
{
this
.
autoCompletionInterval
();
},
30000
);
// 监听键盘的回车按键(回车时发送消息,并阻止其在textarea中的回车换行行为)
document
.
onkeydown
=
function
(
ev
)
{
var
event
=
ev
||
event
;
...
...
@@ -323,6 +330,43 @@ export default {
//
...
mapMutations
([
"SET_IS_FROM_ASSIGN_TASK"
]),
// 含有敏感信息的消息,自行补全提示文案
// 每30秒监测敏感信息
autoCompletionInterval
()
{
if
(
!
this
.
messageList
)
return
;
let
flag
=
false
,
msg
;
for
(
let
i
=
0
;
i
<
this
.
messageList
.
length
;
i
++
)
{
msg
=
messageList
[
i
];
if
(
msg
.
isShowErrorIcon
&&
!
msg
.
isShowErrorMsg
)
{
flag
=
true
;
}
}
if
(
flag
)
{
this
.
getMSGForwardForAC
(
msg
);
}
},
// 查询医生和居民的消息 - 向前查找
// 将获取消息列表插入到当前消息列表的最后
getMSGForwardForAC
()
{
let
session
=
this
.
currentSession
;
let
params
=
{
doctorAccId
:
this
.
currentToAccId
,
includeFlag
:
0
,
lastClientIdServer
:
session
.
lastMsgIdClient
,
lastMsgIdServer
:
session
.
lastMsgIdServer
,
lastMsgTimestamp
:
msg
.
realTimestamp
,
limit
:
20
,
patientAccId
:
this
.
picakfAccId
,
unionId
:
""
};
this
.
POST
(
"/im/msg/forward"
,
params
).
then
(
res
=>
{
if
(
res
.
code
===
"000000"
)
{
this
.
contactForwardMessage
(
res
.
data
,
false
);
}
});
},
// 获取元素
getElmByID
(
elmId
)
{
return
document
.
getElementById
(
elmId
);
...
...
@@ -338,8 +382,8 @@ export default {
let
msg
=
Object
.
assign
({},
params
);
msg
.
fromAccount
=
this
.
currentToAccId
;
msg
.
toAccount
=
this
.
picakfAccId
;
msg
.
text
=
params
.
info
;
msg
.
suffix
=
params
.
remark
;
msg
.
text
=
params
.
info
;
msg
.
size
=
params
.
fileSize
;
msg
.
url
=
params
.
url
;
msg
.
showType
=
params
.
type
-
0
+
1
;
...
...
@@ -489,6 +533,7 @@ export default {
url
=
content
.
url
;
}
else
if
(
content
.
bizType
==
19
)
{
showType
=
4
;
text
=
content
.
content
;
suffix
=
content
.
suffix
;
}
else
{
showType
=
5
;
...
...
@@ -562,7 +607,7 @@ export default {
},
// 接接数据
contactForwardMessage
(
cMessageList
)
{
contactForwardMessage
(
cMessageList
,
canPush
=
true
)
{
let
content
=
{},
signature
=
""
,
msgIndex
=
-
1
,
...
...
@@ -582,7 +627,7 @@ export default {
});
if
(
msgIndex
>
-
1
)
{
flag
=
true
;
this
.
messageList
[
msgIndex
].
isE
rrorMsg
=
content
.
content
;
this
.
messageList
[
msgIndex
].
e
rrorMsg
=
content
.
content
;
this
.
messageList
[
msgIndex
].
isShowErrorMsg
=
true
;
}
this
.
$forceUpdate
();
...
...
@@ -592,7 +637,7 @@ export default {
}
}
else
{
flag
=
true
;
this
.
messageList
.
push
(
item
);
canPush
&&
this
.
messageList
.
push
(
item
);
}
});
if
(
flag
)
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录