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
提交
9c470b18
提交
9c470b18
编写于
4月 09, 2021
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
样式修改
上级
83334354
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
89 行增加
和
203 行删除
+89
-203
diagnosis-im.vue
src/views/IM/diagnosis-admin/diagnosis-im.vue
+37
-37
diagnosis-list.vue
src/views/IM/diagnosis-admin/diagnosis-list.vue
+49
-49
im.scss
src/views/IM/diagnosis-admin/im.scss
+3
-117
未找到文件。
src/views/IM/diagnosis-admin/diagnosis-im.vue
浏览文件 @
9c470b18
...
...
@@ -503,40 +503,40 @@ export default {
}
}
if
(
msg
.
type
.
toLowerCase
()
==
"custom"
)
{
content
=
JSON
.
parse
(
msg
.
content
)
;
text
=
content
.
content
;
content
=
JSON
.
parse
(
msg
.
content
)
text
=
content
.
content
if
(
content
.
bizType
==
-
1
)
{
// 系统消息:消息由于违规未发送成功(可以不处理)
showType
=
-
1
;
text
=
content
.
content
;
showType
=
-
1
text
=
content
.
content
}
else
if
(
content
.
bizType
==
18
)
{
// PDF
showType
=
3
;
text
=
content
.
name
;
size
=
content
.
size
;
url
=
content
.
url
;
showType
=
3
text
=
content
.
name
size
=
content
.
size
url
=
content
.
url
}
else
if
(
content
.
bizType
==
19
)
{
// 链接
showType
=
4
;
text
=
content
.
content
;
suffix
=
content
.
suffix
;
showType
=
4
text
=
content
.
content
suffix
=
content
.
suffix
}
else
if
(
content
.
bizType
==
22
){
// 病例
showType
=
7
;
title
=
content
.
title
;
text
=
JSON
.
parse
(
content
.
content
)
;
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
)
;
showType
=
8
title
=
content
.
title
text
=
JSON
.
parse
(
content
.
content
)
}
else
if
(
content
.
bizType
==
24
){
// 音视频与IM交互
showType
=
9
;
text
=
content
.
content
;
showType
=
9
text
=
content
.
content
}
else
if
(
content
.
bizType
==
25
){
// 本次问诊结束
showType
=
10
;
text
=
content
.
content
;
showType
=
10
text
=
content
.
content
}
else
if
(
content
.
bizType
==
26
){
// 医生建议
showType
=
11
;
title
=
content
.
title
;
text
=
content
.
content
;
showType
=
11
title
=
content
.
title
text
=
content
.
content
}
else
{
showType
=
5
;
showType
=
5
}
}
else
if
(
msg
.
type
.
toLowerCase
()
==
"image"
||
msg
.
type
.
toLowerCase
()
==
"picture"
)
{
// 图片
content
=
JSON
.
parse
(
msg
.
content
);
...
...
@@ -545,21 +545,21 @@ export default {
showType
=
2
;
this
.
imgSizeHandleNew
(
msg
,
content
.
w
,
content
.
h
);
}
else
if
(
msg
.
type
.
toLowerCase
()
==
"audio"
)
{
// 语音
content
=
JSON
.
parse
(
msg
.
content
)
;
url
=
content
.
url
;
content
=
JSON
.
parse
(
msg
.
content
)
url
=
content
.
url
showType
=
6
}
else
{
showType
=
1
;
// 文本
text
=
msg
.
content
;
}
msg
.
title
=
title
;
msg
.
text
=
text
;
msg
.
showType
=
showType
;
msg
.
suffix
=
suffix
;
msg
.
size
=
size
;
msg
.
url
=
url
;
msg
.
sessionFlag
=
false
;
cMessageList
.
push
(
msg
)
;
showType
=
1
// 文本
text
=
msg
.
content
}
msg
.
title
=
title
msg
.
text
=
text
msg
.
showType
=
showType
msg
.
suffix
=
suffix
msg
.
size
=
size
msg
.
url
=
url
msg
.
sessionFlag
=
false
cMessageList
.
push
(
msg
)
});
if
(
directFlag
===
1
)
{
...
...
src/views/IM/diagnosis-admin/diagnosis-list.vue
浏览文件 @
9c470b18
...
...
@@ -48,23 +48,23 @@
style=
"width: 100%"
v-loading=
"loading"
>
<el-table-column
prop=
"orderNo"
label=
"订单ID"
min-width=
"80"
align=
"left"
></el-table-column>
<el-table-column
prop=
"operateUserName"
label=
"运营人员"
min-width=
"
10
0"
align=
"left"
></el-table-column>
<el-table-column
prop=
"specialName"
label=
"专区名称"
min-width=
"
12
0"
align=
"left"
></el-table-column>
<el-table-column
prop=
"operateUserName"
label=
"运营人员"
min-width=
"
8
0"
align=
"left"
></el-table-column>
<el-table-column
prop=
"specialName"
label=
"专区名称"
min-width=
"
8
0"
align=
"left"
></el-table-column>
<el-table-column
prop=
"diagnoseType"
label=
"问诊类型"
min-width=
"80"
align=
"left"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
diagnoseType
|
diagnosisTypeFilter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"doctorName"
label=
"接诊医生"
min-width=
"
10
0"
align=
"left"
></el-table-column>
<el-table-column
prop=
"doctorMobile"
label=
"接诊电话"
min-width=
"
10
0"
align=
"left"
></el-table-column>
<el-table-column
prop=
"doctorName"
label=
"接诊医生"
min-width=
"
8
0"
align=
"left"
></el-table-column>
<el-table-column
prop=
"doctorMobile"
label=
"接诊电话"
min-width=
"
8
0"
align=
"left"
></el-table-column>
<el-table-column
prop=
"userName"
label=
"问诊患者"
min-width=
"80"
align=
"left"
></el-table-column>
<el-table-column
prop=
"userMobile"
label=
"问诊电话"
min-width=
"
10
0"
align=
"left"
></el-table-column>
<el-table-column
prop=
"price"
label=
"价格"
min-width=
"
8
0"
align=
"left"
>
<el-table-column
prop=
"userMobile"
label=
"问诊电话"
min-width=
"
8
0"
align=
"left"
></el-table-column>
<el-table-column
prop=
"price"
label=
"价格"
min-width=
"
6
0"
align=
"left"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
price
|
priceFilter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"appointBeginTime"
label=
"预约时间"
min-width=
"1
2
0"
align=
"left"
>
<el-table-column
prop=
"appointBeginTime"
label=
"预约时间"
min-width=
"1
0
0"
align=
"left"
>
<
template
slot-scope=
"scope"
>
<p>
{{
scope
.
row
.
appointBeginTime
}}
</p>
<p>
{{
scope
.
row
.
appointEndTime
}}
</p>
...
...
@@ -75,13 +75,13 @@
<
template
slot-scope=
"scope"
>
<!-- 1 初始状态 2待咨询 3 咨询中 4已结束 -->
<div>
<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>
<el-button
v-if=
"scope.row.status != 4"
type=
"primary"
size=
"small"
@
click=
"timeHandle(scope.row)"
style=
"margin-top: 10px;"
>
修改时间
</el-button>
<el-button
v-if=
"scope.row.status == 3"
type=
"primary"
size=
"small"
@
click=
"endDiagnosis(scope.row)"
style=
"margin-top: 10px;"
>
结束
</el-button>
</div>
<div
style=
"margin-top: 10px;"
>
<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=
"jionCommunicate(scope.row)"
>
加入问诊
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"sendMessage(scope.row)"
>
发送消息
</el-button>
<div>
<el-button
v-if=
"scope.row.status == 3 && scope.row.imStatus == 1"
type=
"primary"
size=
"small"
@
click=
"callAll(scope.row)"
style=
"margin-top: 10px;"
>
呼叫双方
</el-button>
<el-button
v-if=
"scope.row.status == 3 && scope.row.imStatus == 2"
type=
"primary"
size=
"small"
@
click=
"jionCommunicate(scope.row)"
style=
"margin-top: 10px;"
>
加入问诊
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"sendMessage(scope.row)"
style=
"margin-top: 10px;"
>
发送消息
</el-button>
</div>
</
template
>
</el-table-column>
...
...
@@ -229,66 +229,66 @@ export default {
}
},
mounted
()
{
this
.
getDiagnoseTypeList
()
;
this
.
getDiagnoseList
()
;
this
.
search
()
;
this
.
getDiagnoseTypeList
()
this
.
getDiagnoseList
()
this
.
search
()
},
methods
:
{
// 问诊类型
getDiagnoseTypeList
()
{
let
url
=
`/basic-data/constants?typeCode=P253`
;
let
url
=
`/basic-data/constants?typeCode=P253`
this
.
GET
(
url
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
diagnosisTypeSelect
=
res
.
data
;
this
.
diagnosisTypeSelect
=
res
.
data
}
})
;
})
},
// 问诊状态
getDiagnoseList
()
{
let
url
=
`/basic-data/constants?typeCode=P254`
;
let
url
=
`/basic-data/constants?typeCode=P254`
this
.
GET
(
url
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
diagnosisSelect
=
res
.
data
;
this
.
diagnosisSelect
=
res
.
data
}
});
},
// tab切换
handleClick
(
val
)
{
this
.
searchParam
.
tab
=
val
.
name
==
'second'
?
2
:
1
;
this
.
search
()
;
this
.
searchParam
.
tab
=
val
.
name
==
'second'
?
2
:
1
this
.
search
()
},
search
(
a
)
{
if
(
a
)
this
.
searchParam
.
pageNo
=
1
;
this
.
loading
=
true
;
let
url
=
`/diagnose/admin/diagnose/`
;
let
params
=
this
.
searchParam
;
if
(
a
)
this
.
searchParam
.
pageNo
=
1
this
.
loading
=
true
let
url
=
`/diagnose/admin/diagnose/`
let
params
=
this
.
searchParam
this
.
POST
(
url
,
params
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
if
(
res
.
code
==
"000000"
)
{
this
.
tableData
=
res
.
data
.
list
;
this
.
totalRows
=
res
.
data
.
allSize
;
this
.
tableData
=
res
.
data
.
list
this
.
totalRows
=
res
.
data
.
allSize
}
});
},
// 预约时间
timeHandle
(
row
)
{
this
.
timeVisible
=
true
;
this
.
timeForm
.
diagnoseLogId
=
row
.
diagnoseLogId
;
this
.
timeVisible
=
true
this
.
timeForm
.
diagnoseLogId
=
row
.
diagnoseLogId
},
confirmTime
()
{
this
.
$refs
.
timeForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
loading
=
true
;
this
.
loading
=
true
this
.
POST
(
'/diagnose/admin/diagnose/appointTime'
,
this
.
timeForm
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
if
(
res
.
code
==
"000000"
)
{
this
.
$message
({
message
:
'修改预约时间成功'
,
type
:
"success"
});
this
.
searchParam
.
tab
=
1
;
this
.
timeVisible
=
false
;
this
.
search
()
;
this
.
searchParam
.
tab
=
1
this
.
timeVisible
=
false
this
.
search
()
}
else
{
this
.
$message
({
message
:
res
.
message
,
...
...
@@ -311,9 +311,9 @@ export default {
this
.
$message
({
message
:
'成功结束问诊'
,
type
:
"success"
})
;
this
.
searchParam
.
tab
=
1
;
this
.
search
()
;
})
this
.
searchParam
.
tab
=
1
this
.
search
()
}
else
{
this
.
$message
({
message
:
res
.
message
,
...
...
@@ -347,8 +347,8 @@ export default {
message
:
'选择成功'
,
type
:
"success"
});
this
.
searchParam
.
tab
=
1
;
this
.
search
()
;
this
.
searchParam
.
tab
=
1
this
.
search
()
}
else
{
this
.
$message
({
message
:
res
.
message
,
...
...
@@ -356,17 +356,17 @@ export default {
})
}
});
this
.
activeName
=
'first'
;
this
.
searchParam
.
tab
=
1
;
this
.
search
()
;
this
.
activeName
=
'first'
this
.
searchParam
.
tab
=
1
this
.
search
()
},
handleSizeChange
(
value
)
{
this
.
searchParam
.
pageSize
=
value
;
this
.
search
()
;
this
.
searchParam
.
pageSize
=
value
this
.
search
()
},
handleCurrentChange
(
value
)
{
this
.
searchParam
.
pageNo
=
value
;
this
.
search
()
;
this
.
searchParam
.
pageNo
=
value
this
.
search
()
}
}
}
...
...
src/views/IM/diagnosis-admin/im.scss
浏览文件 @
9c470b18
...
...
@@ -5,117 +5,9 @@
// min-width: 1200px;
background
:
none
!
important
;
font-size
:
14px
;
.left
{
display
:
none
;
width
:
270px
;
// padding: 0 25px 15px;
border-right
:
2px
solid
#f5f5f5
;
.l-header
{
display
:
flex
;
flex-direction
:
row
;
height
:
52px
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
0
12px
0
25px
;
p
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
color
:
#0d9078
;
cursor
:
pointer
;
img
{
width
:
16px
;
height
:
16px
;
margin-right
:
4px
;
}
span
{
font-size
:
14px
;
color
:
#0d9078
;
}
}
// & > span:first-child {
// font-size: 14px;
// }
// & > span:last-child {
// color: #0d9078;
// cursor: pointer;
// }
}
.c-num
{
padding
:
0
25px
;
height
:
40px
;
line-height
:
40px
;
font-size
:
12px
;
background
:
#fffbe6
;
}
.session-list
{
width
:
100%
;
height
:
100%
;
overflow
:
scroll
;
&
>
.item
{
width
:
100%
;
display
:
flex
;
height
:
72px
;
flex-direction
:
row
;
align-items
:
center
;
padding
:
0
12px
0
25px
;
cursor
:
pointer
;
.img-wrapper
{
// position: relative;
// top: 0;
// left: 0;
width
:
24px
;
height
:
24px
;
margin-right
:
10px
;
img
{
width
:
100%
;
height
:
100%
;
border-radius
:
20px
;
}
}
&
>
.desc
{
flex
:
1
;
.top
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
.name
{
}
}
.bottom
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
align-items
:
center
;
font-size
:
12px
;
color
:
#999999
;
.num
{
display
:
inline-block
;
min-width
:
16px
;
padding
:
2px
4px
;
border-radius
:
8px
;
text-align
:
center
;
color
:
#ffffff
;
background
:
#ff4d4f
;
}
&
>
img
{
display
:
block
;
width
:
15px
;
height
:
15px
;
padding
:
2px
0
2px
4px
;
}
}
}
&
.current
{
background
:
#f8f9fa
;
}
}
}
}
.center
{
margin-left
:
240px
;
margin-right
:
240px
;
margin-left
:
10%
;
margin-right
:
10%
;
flex
:
1
;
background
:
#fff
;
.c-header
{
...
...
@@ -504,12 +396,6 @@
}
}
}
.right
{
display
:
none
;
width
:
240px
;
border-left
:
2px
solid
#f5f5f5
;
overflow
:
scroll
;
}
background
:
#fff
;
.time
{
color
:
#999999
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录