Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jingqi.liu
pica-admin-consultation
提交
85aaacef
提交
85aaacef
编写于
8月 04, 2021
作者:
张磊
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feat/zl' into 'develop'
Feat/zl See merge request
com.pica.cloud.education.frontend/pica-admin-consultation!65
上级
fac40675
9e5fc861
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
65 行增加
和
33 行删除
+65
-33
calling.png
src/assets/image/workbench/calling.png
+0
-0
diagnosis-live.vue
src/components/IM/diagnosis-live.vue
+44
-26
inquirylist.vue
src/components/common/inquirylist.vue
+20
-6
RtcClient.js
src/utils/RtcClient.js
+1
-1
未找到文件。
src/assets/image/workbench/calling.png
0 → 100644
浏览文件 @
85aaacef
2.6 KB
src/components/IM/diagnosis-live.vue
浏览文件 @
85aaacef
...
...
@@ -4,19 +4,19 @@
<div
class=
"top-left"
>
<div
class=
"time-message "
>
<p
class=
"msg-img"
>
<img
:src=
"
diagnoseType == 1 ? im_text : im_video"
alt
/>
<img
:src=
"
currentChat.diagnoseType == 2 ? im_text : im_video"
/>
</p>
<span>
{{
diagnoseType
}}
</span>
</div>
<div
class=
"time-message ml10"
>
<p
class=
"msg-img"
>
<img
:src=
"im_time"
alt
/></p>
<p
class=
"msg-img"
>
<img
:src=
"im_time"
alt
/></p>
<p>
设定时长:
{{
time
}}
分钟
</p>
<p
v-if=
"startTime && endTime"
>
总时长:
{{
useTime
}}
</p>
<p
v-if=
"startTime && endTime"
>
剩余时长:
{{
loseTime
}}
</p>
</div>
</div>
</div>
<div
class=
"main"
>
<div
class=
"main"
v-if=
"currentChat.diagnoseType == 1 || currentChat.diagnoseType == 2"
>
<div
class=
"viedo-wrapper"
v-for=
"(item, index) of memberList"
...
...
@@ -34,16 +34,16 @@
<p
class=
"text-num"
>
{{
item
.
role
==
1
?
currentChat
.
doctorMobile
:
currentChat
.
userMobile
}}
</p>
</div>
</div>
<div
class=
"viedo"
>
<div
class=
"viedo-container"
v-if=
"rtc.viewslist[index]"
:id=
"rtc.viewslist[index] ? rtc.viewslist[index].id : ''"
></div>
<el-button
class=
"call-btn"
:disabled=
"item.status === 2"
@
click=
"drivingCall(item)"
>
{{
showText
(
item
.
status
,
item
.
role
,
item
)
}}
<div
:class=
"
{viedowrap:currentChat.diagnoseType == 2}" :id="rtc.viewslist[index] ? rtc.viewslist[index].id : ''">
</div>
<div
class=
"viedo-btn-wrap"
:id=
"rtc.viewslist[index] ? rtc.viewslist[index].id : ''"
>
<el-button
class=
"call-btn"
:class=
"
{calling1: item.role == 1
&&
doctorTrtcEntryStatus== 3, calling2: item.role == 2
&&
userTrtcEntryStatus== 3}"
@click="drivingCall(item)">
{{
item
.
role
==
1
?
showText
(
doctorTrtcEntryStatus
)
:
showText
(
userTrtcEntryStatus
)
}}
</el-button>
</div>
</div>
<div
class=
"vedio-man"
>
<p
class=
"man-img"
@
click=
"toggleVol"
>
...
...
@@ -84,9 +84,11 @@ export default {
watch
:
{
currentChat
(
newVal
,
oldVal
)
{
if
(
newVal
!==
oldVal
&&
newVal
.
imTeamId
){
const
{
imTeamId
,
diagnoseLogId
}
=
this
.
currentChat
;
const
{
imTeamId
,
diagnoseLogId
,
doctorTrtcEntryStatus
,
userTrtcEntryStatus
}
=
this
.
currentChat
;
this
.
tid
=
imTeamId
||
"3854284100"
;
this
.
diagnoseLogId
=
diagnoseLogId
||
"38"
;
this
.
doctorTrtcEntryStatus
=
doctorTrtcEntryStatus
;
this
.
userTrtcEntryStatus
=
userTrtcEntryStatus
;
this
.
init
();
}
}
...
...
@@ -127,7 +129,9 @@ export default {
tid
:
""
,
// 群id
diagnoseLogId
:
""
,
//问诊id
isMuted
:
false
,
liveInfoSave
:
{}
liveInfoSave
:
{},
userTrtcEntryStatus
:
''
,
doctorTrtcEntryStatus
:
''
};
},
created
()
{
...
...
@@ -177,6 +181,13 @@ export default {
},
// 主动呼叫
drivingCall
(
data
)
{
if
(
data
.
role
==
1
&&
this
.
doctorTrtcEntryStatus
==
3
){
return
false
;
}
if
(
data
.
role
==
2
&&
this
.
userTrtcEntryStatus
==
3
){
return
false
;
}
let
url
=
`/im/team/call/direct/`
;
let
params
=
{
imAccId
:
data
.
accId
,
...
...
@@ -185,7 +196,19 @@ export default {
};
this
.
POST
(
url
,
params
).
then
((
res
)
=>
{
if
(
res
.
code
===
"000000"
)
{
this
.
getInfo
(
data
);
// this.getInfo(data);
// this.rtc.join()
this
.
$message
({
message
:
'呼叫成功'
,
type
:
"success"
,
});
console
.
log
(
'--data'
,
data
);
if
(
data
.
role
==
1
){
this
.
doctorTrtcEntryStatus
=
3
;
}
if
(
data
.
role
==
2
){
this
.
userTrtcEntryStatus
=
3
;
}
}
else
{
this
.
$message
({
message
:
res
.
message
,
...
...
@@ -338,7 +361,7 @@ export default {
this
.
rtc
.
unmuteLocalAudio
();
},
// 显示文案
showText
(
status
,
role
)
{
showText
(
status
)
{
let
text
=
""
;
switch
(
status
)
{
case
1
:
...
...
@@ -663,13 +686,6 @@ export default {
margin-left: 5px;
color: #fff;
.time-content {
.call-btn {
display: flex;
justify-content: center;
align-items: center;
min-width: 100px;
margin-bottom: 5px;
}
font-size: 12px;
display: flex;
flex-direction: column;
...
...
@@ -677,9 +693,7 @@ export default {
align-items: flex-end;
}
}
.viedo {
.viedo-btn-wrap {
.call-btn{
width: 173px;
height: 38px;
...
...
@@ -689,6 +703,9 @@ export default {
margin-top: 15px;
border: none;
}
.calling1, .calling2 {
background: #9FC8C0;
}
.viedo-container{
width: 100px;
...
...
@@ -702,8 +719,9 @@ export default {
// bottom: 0;
// margin: auto;
}
}
.viedowrap{
height: 180px;
}
}
.vedio-man{
...
...
src/components/common/inquirylist.vue
浏览文件 @
85aaacef
...
...
@@ -16,9 +16,9 @@
<div
class=
"right-status"
:class=
"
{grey: 'returnStatus ==', org: ''}">
{{
returnStatusText
}}
</div>
<div
class=
"right-time"
>
已经问诊
</div
>
<!--
<div
class=
"right-time"
>
--
>
<!-- 已经问诊-->
<!--
</div>
--
>
</div>
</div>
<div
class=
"line mt30"
>
...
...
@@ -37,9 +37,12 @@
<span
class=
"info-phone"
>
{{
item
.
doctorMobile
}}
</span>
<span
class=
"info-call-time"
v-if=
"item.doctorCall
KfStatus == 1
"
>
<span
class=
"info-call-time"
v-if=
"item.doctorCall
Time
"
>
{{
doctorCallTime
}}
小时前呼叫
</span>
<span
class=
"info-calling"
v-if=
"item.doctorCallKfStatus == 1"
>
<img
:src=
"infocallImg"
alt=
""
>
</span>
</div>
</div>
</div>
...
...
@@ -58,9 +61,12 @@
<span
class=
"info-phone"
>
{{
item
.
userMobile
}}
</span>
<span
class=
"info-call-time"
v-if=
"item.userCall
KfStatus == 1
"
>
<span
class=
"info-call-time"
v-if=
"item.userCall
Time
"
>
{{
userCallTime
}}
小时前呼叫
</span>
<span
class=
"info-calling"
v-if=
"item.userCallKfStatus == 1"
>
<img
:src=
"infocallImg"
alt=
""
>
</span>
</div>
</div>
</div>
...
...
@@ -77,7 +83,7 @@ import { mapState } from "vuex";
export
default
{
data
()
{
return
{
doctorIncomingcallImg
:
require
(
'@/assets/image/workbench/doctorCallcustomer.gif
'
)
infocallImg
:
require
(
'@/assets/image/workbench/calling.png
'
)
};
},
props
:{
...
...
@@ -292,6 +298,14 @@ export default {
.info-call-time
{
color
:
#FF5E57
;
}
.info-calling
{
width
:
15px
;
height
:
15px
;
display
:
inline-block
;
img
{
width
:
100%
;
}
}
}
}
.line-btn
{
...
...
src/utils/RtcClient.js
浏览文件 @
85aaacef
...
...
@@ -37,7 +37,7 @@ class RtcClient {
// 加入房间
async
join
()
{
if
(
this
.
isJoined_
)
{
//
alert('抱歉,您已经在房间里面为了')
alert
(
'抱歉,您已经在房间里面为了'
)
return
;
}
try
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录