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
提交
5261c00e
提交
5261c00e
编写于
4月 08, 2021
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
接口联调
上级
748cdec5
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
89 行增加
和
25 行删除
+89
-25
diagnosis-im.vue
src/views/IM/diagnosis-admin/diagnosis-im.vue
+31
-18
diagnosis-list.vue
src/views/IM/diagnosis-admin/diagnosis-list.vue
+21
-6
im.scss
src/views/IM/diagnosis-admin/im.scss
+37
-1
未找到文件。
src/views/IM/diagnosis-admin/diagnosis-im.vue
浏览文件 @
5261c00e
...
...
@@ -15,13 +15,13 @@
<article
v-for=
"(item, index) in messageList"
:key=
"index"
>
<
div
class=
"split-line"
v-if=
"item.sessionFlag"
>
本次会话结束
</div
>
<
!--
<div
class=
"split-line"
v-if=
"item.sessionFlag"
>
本次会话结束
</div>
--
>
<!-- sendOrReceive 为true在右边 -->
<div
class=
"msg-item"
:class=
"
{'cr': item.sendOrReceive}">
<div
class=
"msg-item-img"
>
<img
:src=
"item.avatarImg"
alt
/>
</div>
<div
class=
"msg-item-detail"
>
<div
class=
"msg-item-detail"
:class=
"
{'line': item.showType == 10}"
>
<span
class=
"mid-time"
>
{{
item
.
name
}}
{{
item
.
timestampStr
}}
</span>
<div
class=
"send-warpper"
>
<img
...
...
@@ -39,21 +39,6 @@
<div
v-if=
"item.showType == 1"
class=
"mid-text-wrapper"
style=
"max-width: 520px;"
>
<div
class=
"mid-text"
>
{{
item
.
text
}}
</div>
</div>
<!-- 预约时间模块 -->
<!--
<div
v-if=
"item.showType == 1"
class=
"time-box"
>
<div
class=
"title"
>
电话/视频问诊时间已确定
</div>
<div
class=
"time"
>
已预约 2021-03-20 下午 3:00-3:30
</div>
<div
class=
"time-text"
>
因PCR反应模板仅为DNA,因此在进行PCR反应钱,应将新型冠状病毒核酸逆转录为DNA。
</div>
</div>
-->
<!-- 医生建议模块 -->
<!--
<div
v-if=
"item.showType == 1"
class=
"suggession-box"
>
<div
class=
"title"
>
医生建议
</div>
<div
class=
"suggession-text"
>
无糖饮食,参加体育锻炼,不适随诊
</div>
</div>
-->
<!-- 音视频与IM的交互 -->
<!--
<div
v-if=
"item.showType == 1"
class=
"live-box"
>
<div
class=
"mid-text"
>
{{
item
.
text
}}
</div>
</div>
-->
<div
v-if=
"item.showType == 2"
class=
"mid-img"
v-viewer
>
<div
class=
"img-box"
>
<img
...
...
@@ -63,7 +48,6 @@
alt
/>
</div>
</div>
<div
v-if=
"item.showType == 3"
class=
"mid-pdf"
@
click=
"openPDF(item)"
>
<div
class=
"midp-left"
>
...
...
@@ -100,6 +84,25 @@
<span>
{{
item
.
text
.
illnessDetail
}}
</span>
</div>
</div>
<!-- 预约时间模块 -->
<div
v-if=
"item.showType == 8"
class=
"time-box"
>
<div
class=
"title"
>
{{
item
.
title
}}
</div>
<div
class=
"time"
>
{{
item
.
text
.
timeStr
}}
</div>
<div
class=
"time-text"
>
{{
item
.
text
.
tips
}}
</div>
</div>
<!-- 音视频与IM的交互 -->
<div
v-if=
"item.showType == 9"
class=
"live-box"
>
<div
class=
"live-notice"
>
{{
item
.
text
}}
</div>
</div>
<!-- 问诊结束 -->
<div
v-if=
"item.showType == 10"
class=
"diagnosis-end"
>
<div
class=
"split-line"
>
{{
item
.
text
}}
</div>
</div>
<!-- 医生建议模块 -->
<div
v-if=
"item.showType == 11"
class=
"suggession-box"
>
<div
class=
"title"
>
医生建议
</div>
<div
class=
"suggession-text"
>
{{
item
.
content
}}
</div>
</div>
</div>
</div>
</div>
...
...
@@ -518,6 +521,16 @@ export default {
showType
=
7
;
title
=
content
.
title
;
text
=
JSON
.
parse
(
content
.
content
);
}
else
if
(
content
.
bizType
==
23
)
{
// 预约时间
showType
=
8
;
title
=
content
.
title
;
text
=
JSON
.
parse
(
content
.
content
);
}
else
if
(
content
.
bizType
==
24
){
// 音视频与IM交互
showType
=
9
;
text
=
content
.
content
;
}
else
if
(
content
.
bizType
==
25
){
// 本次问诊结束
showType
=
10
;
text
=
content
.
content
;
}
else
{
showType
=
5
;
}
...
...
src/views/IM/diagnosis-admin/diagnosis-list.vue
浏览文件 @
5261c00e
...
...
@@ -73,14 +73,14 @@
<el-table-column
prop=
"statusStr"
label=
"问诊状态"
min-width=
"80"
align=
"left"
></el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
min-width=
"150"
>
<
template
slot-scope=
"scope"
>
<!-- 1 初始状态 2待咨询 3 咨询中 4已结束 -->
<div>
<el-button
type=
"primary"
size=
"small"
@
click=
"timeHandle(scope.row)"
>
预约时间
</el-button>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"timeHandle(scope.row)"
>
修改时间
</el-button>
-->
<el-button
type=
"primary"
size=
"small"
@
click=
"endDiagnosis(scope.row)"
>
结束问诊
</el-button>
<el-button
v-if=
"scope.row.status != 4"
type=
"primary"
size=
"small"
@
click=
"timeHandle(scope.row)"
>
修改时间
</el-button>
<el-button
v-if=
"scope.row.status == 3"
type=
"primary"
size=
"small"
@
click=
"endDiagnosis(scope.row)"
>
结束
</el-button>
</div>
<div
style=
"margin-top: 10px;"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"callAll(scope.row)"
>
呼叫双方
</el-button>
<
!--
<el-button
type=
"primary"
size=
"small"
@
click=
"callAll(scope.row)"
>
加入沟通
</el-button>
--
>
<el-button
v-if=
"scope.row.status == 3 && scope.row.imStatus == 1"
type=
"primary"
size=
"small"
@
click=
"callAll(scope.row)"
>
呼叫双方
</el-button>
<
el-button
v-if=
"scope.row.status == 3 && scope.row.imStatus == 2"
type=
"primary"
size=
"small"
@
click=
"callAll(scope.row)"
>
加入问诊
</el-button
>
<el-button
type=
"primary"
size=
"small"
@
click=
"sendMessage(scope.row)"
>
发送消息
</el-button>
</div>
</
template
>
...
...
@@ -283,12 +283,17 @@ export default {
this
.
loading
=
false
;
if
(
res
.
code
==
"000000"
)
{
this
.
$message
({
message
:
'
预约
成功'
,
message
:
'
修改预约时间
成功'
,
type
:
"success"
});
this
.
searchParam
.
tab
=
1
;
this
.
timeVisible
=
false
;
this
.
search
();
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"error"
})
}
});
}
...
...
@@ -309,6 +314,11 @@ export default {
});
this
.
searchParam
.
tab
=
1
;
this
.
search
();
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"error"
})
}
});
})
...
...
@@ -331,6 +341,11 @@ export default {
});
this
.
searchParam
.
tab
=
1
;
this
.
search
();
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"error"
})
}
});
this
.
activeName
=
'first'
;
...
...
src/views/IM/diagnosis-admin/im.scss
浏览文件 @
5261c00e
...
...
@@ -350,9 +350,45 @@
background
:
#EBF5FC
;
border-radius
:
20px
;
}
&
>
.live-box
{
width
:
202px
;
height
:
44px
;
line-height
:
44px
;
background
:
#f0f1f2
;
border-radius
:
8px
;
text-align
:
center
;
}
&
>
.diagnosis-end
{
width
:
100%
;
.split-line
{
width
:
100%
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
margin
:
15px
0
;
font-size
:
14px
;
color
:
#999999
;
&
:
:
before
{
flex
:
1
;
content
:
''
;
height
:
1px
;
margin-right
:
18px
;
background
:
#f0f1f2
;
}
&
:
:
after
{
flex
:
1
;
content
:
''
;
height
:
1px
;
margin-left
:
18px
;
background
:
#f0f1f2
;
}
}
}
}
}
.msg-item-detail.line
{
width
:
100%
;
}
&
.cr
{
flex-direction
:
row-reverse
;
.msg-item-img
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录