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
提交
2786e5cd
提交
2786e5cd
编写于
8月 02, 2021
作者:
张磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
code done
上级
82aa474a
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
110 行增加
和
71 行删除
+110
-71
App.vue
src/App.vue
+3
-1
inquirylist.vue
src/components/common/inquirylist.vue
+19
-18
index.js
src/store/actions/index.js
+22
-0
socket.js
src/store/module/socket.js
+37
-1
common.scss
src/style/common.scss
+26
-26
workbench.vue
src/views/IM/diagnosis-admin/workbench.vue
+3
-25
未找到文件。
src/App.vue
浏览文件 @
2786e5cd
...
@@ -62,6 +62,7 @@ export default {
...
@@ -62,6 +62,7 @@ export default {
created
()
{
created
()
{
vm
=
this
;
vm
=
this
;
vm
.
getToken
();
vm
.
getToken
();
window
.
_VM
=
vm
;
},
},
mounted
()
{
mounted
()
{
setTimeout
(
function
()
{
setTimeout
(
function
()
{
...
@@ -129,7 +130,8 @@ export default {
...
@@ -129,7 +130,8 @@ export default {
vm
.
authList
=
authList
;
vm
.
authList
=
authList
;
}
}
});
});
}
},
closeGlobalMsgNotice
()
{}
}
}
};
};
</
script
>
</
script
>
...
...
src/components/common/inquirylist.vue
浏览文件 @
2786e5cd
...
@@ -155,24 +155,25 @@ export default {
...
@@ -155,24 +155,25 @@ export default {
return
false
;
return
false
;
}
}
const
i
=
this
.
item
;
const
i
=
this
.
item
;
if
(
i
.
imTeamId
){
// if(i.imTeamId){
const
params
=
{
// const params = {
teamIdList
:
[
i
.
imTeamId
]
// teamIdList: [i.imTeamId]
}
// }
this
.
POST
(
`/im/team/call/op/ack/`
,
params
).
then
(
res
=>
{
// this.POST(`/im/team/call/op/ack/`,params).then(res=>{
if
(
res
.
code
==
'000000'
){
// if(res.code == '000000'){
this
.
$store
.
commit
(
'updateShowChat'
,
true
);
// this.$store.commit('updateShowChat', true);
this
.
$store
.
commit
(
'updateCurrentChat'
,
i
);
// this.$store.commit('updateCurrentChat', i);
}
// }
}).
catch
(
err
=>
{
// }).catch(err=>{
this
.
$message
({
// this.$message({
message
:
err
.
message
,
// message: err.message,
type
:
"warning"
,
// type: "warning",
duration
:
1000
// duration:1000
});
// });
})
// })
//
}
// }
this
.
$store
.
dispatch
(
'gotoInquiry'
,
i
);
},
},
openAdvice
()
{
openAdvice
()
{
if
(
this
.
showAdvice
){
if
(
this
.
showAdvice
){
...
...
src/store/actions/index.js
浏览文件 @
2786e5cd
export
default
{
gotoInquiry
({
commit
},
current
)
{
if
(
current
.
imTeamId
){
const
params
=
{
teamIdList
:
[
current
.
imTeamId
]
}
_VM
.
POST
(
`/im/team/call/op/ack/`
,
params
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
commit
(
'updateShowChat'
,
true
);
commit
(
'updateCurrentChat'
,
current
);
}
}).
catch
(
err
=>
{
_VM
.
$message
({
message
:
err
.
message
,
type
:
"warning"
,
duration
:
1000
});
})
}
},
}
src/store/module/socket.js
浏览文件 @
2786e5cd
...
@@ -47,9 +47,13 @@ export default {
...
@@ -47,9 +47,13 @@ export default {
state
.
socketClient
.
on
(
"diagnose_call_push_event"
,
(
socket
)
=>
{
state
.
socketClient
.
on
(
"diagnose_call_push_event"
,
(
socket
)
=>
{
console
.
log
(
'diagnose_call_push_event---'
,
socket
);
console
.
log
(
'diagnose_call_push_event---'
,
socket
);
const
l
=
store
.
noticeList
;
const
l
=
store
.
noticeList
;
if
(
l
.
length
>=
5
){
l
.
shift
();
}
l
.
push
(
socket
);
l
.
push
(
socket
);
const
n
=
{
notifyIndex
:
l
.
length
,
...
socket
}
store
.
commit
(
'updateNoticeList'
,
l
);
store
.
commit
(
'updateNoticeList'
,
l
);
store
.
commit
(
'SET_NOTIFY'
,
n
);
});
});
state
.
socketClient
.
on
(
'ping'
,
function
()
{
state
.
socketClient
.
on
(
'ping'
,
function
()
{
console
.
log
(
'[E] 心跳请求已发出 →'
,
true
);
console
.
log
(
'[E] 心跳请求已发出 →'
,
true
);
...
@@ -59,5 +63,37 @@ export default {
...
@@ -59,5 +63,37 @@ export default {
console
.
log
(
'[E] 心跳响应已收到 ←'
,
true
);
console
.
log
(
'[E] 心跳响应已收到 ←'
,
true
);
});
});
},
},
SET_NOTIFY
:
(
state
,
payload
)
=>
{
console
.
log
(
'--payload'
,
payload
)
let
doms
=
document
.
getElementsByClassName
(
'el-notification'
)
if
(
doms
.
length
>=
5
)
return
const
h
=
_VM
.
$createElement
;
const
cn
=
_VM
.
$notify
({
title
:
`问诊单195(
${
payload
.
department
}
)`
,
message
:
h
(
"p"
,
[
h
(
"i"
,
{
style
:
`color: teal;`
},
`
${
payload
.
doctorName
}
正在呼叫你`
),
h
(
"el-button"
,
{
style
:
`float:right;margin-top:
${
30
}
px;`
,
on
:
{
click
:
function
()
{
console
.
log
(
'--click'
,
payload
)
store
.
dispatch
(
'gotoInquiry'
,
payload
);
cn
.
close
();
},
},
},
"进入诊室"
),
]),
onClose
:
function
()
{
console
.
log
(
'--onClose'
,
payload
)
},
duration
:
0
,
position
:
'top-right'
,
})
}
},
},
};
};
src/style/common.scss
浏览文件 @
2786e5cd
...
@@ -28,35 +28,35 @@ body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, l
...
@@ -28,35 +28,35 @@ body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, l
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
// ::-webkit-scrollbar
// ::-webkit-scrollbar
// {
// {
// width: 0px;
// width: 0px;
// height: 0px;
// height: 0px;
// background-color: #fff;
// }
/*定义滚动条轨道 内阴影+圆角*/
// ::-webkit-scrollbar-track
// {
// -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0);
// border-radius: 10px;
// background-color: #fff;
// background-color: #fff;
// }
// }
/*定义滑块 内阴影+圆角*/
/*定义滚动条轨道 内阴影+圆角*/
// ::-webkit-scrollbar-thumb
// ::-webkit-scrollbar-track
// {
// {
// border-radius: 10px;
// -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0);
// -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
// border-radius: 10px;
// background-color: #555;
// background-color: #fff;
// }
// }
/*定义滑块 内阴影+圆角*/
// ::-webkit-scrollbar-thumb
// {
// border-radius: 10px;
// -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
// background-color: #555;
// }
input
[
type
=
"button"
],
input
[
type
=
"submit"
],
input
[
type
=
"search"
],
input
[
type
=
"reset"
]
{
input
[
type
=
"button"
],
input
[
type
=
"submit"
],
input
[
type
=
"search"
],
input
[
type
=
"reset"
]
{
-webkit-appearance
:
none
;
-webkit-appearance
:
none
;
}
}
textarea
{
-webkit-appearance
:
none
;}
textarea
{
-webkit-appearance
:
none
;}
html
,
body
{
html
,
body
{
height
:
100%
;
height
:
100%
;
...
@@ -167,14 +167,14 @@ html,body{
...
@@ -167,14 +167,14 @@ html,body{
background
:
#fafafa
;
background
:
#fafafa
;
}
}
//下拉框
//下拉框
.el-dropdown-menu
.el-popper
{
.el-dropdown-menu
.el-popper
{
top
:
48px
;
top
:
48px
;
}
}
// 消息推送
// 消息推送
.el-notification.right
{
.el-notification.right
{
top
:
130px
!
important
;
//
top: 130px !important;
}
}
// 弹框按钮样式
// 弹框按钮样式
...
@@ -266,4 +266,4 @@ html,body{
...
@@ -266,4 +266,4 @@ html,body{
.viewer-button.viewer-close
{
.viewer-button.viewer-close
{
display
:
none
;
display
:
none
;
}
}
\ No newline at end of file
src/views/IM/diagnosis-admin/workbench.vue
浏览文件 @
2786e5cd
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</div>
</div>
</el-row>
</el-row>
<!-- tab栏 -->
<!-- tab栏 -->
<el-radio-group
@
change=
"
globalMsgNotic
e"
v-model=
"tabPosition"
style=
"margin-bottom: 30px;"
>
<el-radio-group
@
change=
"
tabChang
e"
v-model=
"tabPosition"
style=
"margin-bottom: 30px;"
>
<el-radio-button
label=
"99"
>
全部(
{{
currentCalList
}}
)
</el-radio-button>
<el-radio-button
label=
"99"
>
全部(
{{
currentCalList
}}
)
</el-radio-button>
<el-radio-button
label=
"1"
>
待处理(
{{
currentCalList
}}
)
</el-radio-button>
<el-radio-button
label=
"1"
>
待处理(
{{
currentCalList
}}
)
</el-radio-button>
<el-radio-button
label=
"2"
>
问诊中(
{{
currentCalList
}}
)
</el-radio-button>
<el-radio-button
label=
"2"
>
问诊中(
{{
currentCalList
}}
)
</el-radio-button>
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
import
{
mapState
}
from
"vuex"
;
import
{
mapState
}
from
"vuex"
;
import
storejs
from
'storejs'
;
import
storejs
from
'storejs'
;
import
InquiryListComponent
from
'../../../components/common/inquirylist.vue'
;
import
InquiryListComponent
from
'../../../components/common/inquirylist.vue'
;
import
store
from
"../../../store"
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -165,31 +166,8 @@ export default {
...
@@ -165,31 +166,8 @@ export default {
const
l
=
this
.
currentDiagList
;
const
l
=
this
.
currentDiagList
;
l
.
push
(...
this
.
testlistdata
);
l
.
push
(...
this
.
testlistdata
);
this
.
$store
.
commit
(
'updateCurrentDiagList'
,
l
);
this
.
$store
.
commit
(
'updateCurrentDiagList'
,
l
);
this
.
$store
.
commit
(
'socket/SET_NOTIFY'
,
...
this
.
testlistdata
);
},
},
globalMsgNotice
()
{
let
doms
=
document
.
getElementsByClassName
(
'el-notification'
)
if
(
doms
.
length
>
2
)
return
const
h
=
this
.
$createElement
;
this
.
$notify
({
title
:
"问诊单195(内科)"
,
message
:
h
(
"p"
,
[
h
(
"i"
,
{
style
:
"color: teal"
},
"王医生,孙医生正在呼叫你"
),
h
(
"el-button"
,
{
style
:
"float: right;margin-top:20px;"
,
on
:
{
click
:
this
.
closeGlobalMsgNotice
,
},
},
"进入诊室"
),
]),
duration
:
5000
,
position
:
'top-right'
,
})
},
closeGlobalMsgNotice
()
{}
},
},
}
}
</
script
>
</
script
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录