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
提交
b83f0ade
提交
b83f0ade
编写于
8月 02, 2021
作者:
张磊
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/fs' into 'develop'
Feature/fs See merge request
!51
上级
bf993cc5
8ba5403a
变更
9
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
159 行增加
和
50 行删除
+159
-50
consultation.vue
src/components/common/consultation.vue
+42
-3
diagnoseAdvice.vue
src/components/common/diagnoseAdvice.vue
+32
-16
diagnosis.vue
src/components/common/diagnosis.vue
+1
-1
inquirylist.vue
src/components/common/inquirylist.vue
+7
-5
index.js
src/store/mutations/index.js
+10
-0
state.js
src/store/state.js
+3
-0
administrators.vue
src/views/IM/diagnosis-admin/administrators.vue
+13
-3
workbench.vue
src/views/IM/diagnosis-admin/workbench.vue
+50
-22
slidebar.vue
src/views/layout/slidebar.vue
+1
-0
未找到文件。
src/components/common/consultation.vue
浏览文件 @
b83f0ade
<
template
>
<div
class=
"consultationlist"
>
<div
class=
"consultationlist"
style=
" user-select:none; "
>
<div
class=
"list"
>
<div
class=
"name"
>
刘思妙
</div>
<div
class=
"details"
>
<div
class=
"details"
@
click=
"goworkBench"
>
<div
class=
"handle"
>
待处理
<span>
128
</span></div>
<div
class=
"see"
>
<a
href=
"#"
>
查看详情
</a>
...
...
@@ -32,7 +32,46 @@
</
template
>
<
script
>
export
default
{};
export
default
{
data
()
{
return
{
userId
:
""
,
searchParam
:{
dateTime
:
''
,
operateUserId
:
''
,
returnStatus
:
1
,
pageSize
:
6
,
pageNo
:
1
,
}
}
},
props
:{
valuenow
:{
type
:
String
,
default
:
''
}
},
created
()
{
},
methods
:
{
goworkBench
()
{
this
.
searchParam
.
dateTime
=
this
.
valuenow
this
.
searchParam
.
operateUserId
=
'11'
this
.
POST
(
'/diagnose/socket/condition/update'
,
this
.
searchParam
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
this
.
$store
.
commit
(
'updateSoketQuest'
,
this
.
searchParam
)
this
.
$router
.
push
({
path
:
'/workbench'
})
}
else
{
this
.
$message
({
message
:
'跳转失败,请再试一次'
,
type
:
"warning"
,
duration
:
1000
});
}
})
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/components/common/diagnoseAdvice.vue
浏览文件 @
b83f0ade
<
template
>
<div
class=
"diagnoseAdvice"
v-drag
v-if=
"showAdvice"
>
<div
class=
"diagnoseAdvice"
v-drag
v-if=
"showAdvice"
>
<div
class=
"header"
>
<span
class=
"headernum"
>
问诊单
{{
currentAdvice
.
diagnoseId
}}
诊断建议
</span>
<el-button
@
click=
"closeadvice"
>
退出
</el-button></div>
<div
class=
"center"
>
<span>
诊断建议
</span>
<el-input
rows=
"10"
type=
"textarea"
v-model=
"
formData.a
dvice"
placeholder=
"请输入内容"
></el-input>
<div
class=
"center"
v-stopdrag
>
<span>
诊断建议
</span>
<el-input
rows=
"10"
type=
"textarea"
v-model=
"
diagnoseA
dvice"
placeholder=
"请输入内容"
></el-input>
</div>
<div
class=
"record"
>
<span>
录音/录像
</span>
<div
v-if=
"currentAdvice.adviceAudioUrls!=undefined &¤tAdvice.adviceAudioUrls.length > 0"
>
<div
v-for=
"
adlist in currentAdvice.adviceAudioUrls"
:key=
"adlist
.diagnoseId"
>
<el-link
:href=
"
adlist"
target=
"_blank"
>
{{
adlist
}}
</el-link>
<div
v-for=
"
itemAudio in currentAdvice.adviceAudioUrls"
:key=
"itemAudio
.diagnoseId"
>
<el-link
:href=
"
itemAudio"
target=
"_blank"
>
{{
itemAudio
}}
</el-link>
</div>
</div>
<span
style=
"color:#0D9078"
v-else
>
无音频
</span>
...
...
@@ -24,10 +24,7 @@ import {mapState} from "vuex";
export
default
{
data
()
{
return
{
formData
:{
diagnoseAdvice
:
''
,
advice
:
""
,
},
}
},
props
:{
...
...
@@ -38,21 +35,32 @@ export default {
},
created
()
{
},
mounted
()
{
},
computed
:{
...
mapState
({
currentAdvice
:
'currentAdvice'
,
})
}),
diagnoseAdvice
:{
get
:
function
()
{
return
this
.
currentAdvice
.
content
},
set
(
val
){
this
.
currentAdvice
.
content
=
val
}
}
},
methods
:{
SaveAdvice
()
{
let
params
=
{
// adviceAudioUrls: this.Adviceslist
.adviceAudioUrls,
// content: this.formData.a
dvice,
// diagnoseId: 11,
// illnessAudioUrls: this.Adviceslist
.illnessAudioUrls
adviceAudioUrls
:
this
.
currentAdvice
.
adviceAudioUrls
,
content
:
this
.
diagnoseA
dvice
,
diagnoseId
:
11
,
//id需要获取
illnessAudioUrls
:
this
.
currentAdvice
.
illnessAudioUrls
}
if
(
!
this
.
formData
.
advice
)
return
//
if(!this.formData.advice) return
this
.
POST
(
'/diagnose/admin/diagnose/doctorAdvice/create'
,
params
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
){
this
.
$message
({
...
...
@@ -95,7 +103,15 @@ export default {
};
};
}
}
},
stopdrag
:
{
inserted
:
function
(
el
,
binding
,
vnode
)
{
let
element
=
el
;
element
.
onmousedown
=
function
(
e
)
{
e
.
stopPropagation
()
}
}
}
}
}
</
script
>
...
...
src/components/common/diagnosis.vue
浏览文件 @
b83f0ade
...
...
@@ -110,7 +110,7 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
src/components/common/inquirylist.vue
浏览文件 @
b83f0ade
<
template
>
<div
class=
"inquirylist"
>
<div
class=
"inquirylist"
style=
" user-select:none; "
>
<el-row>
<el-col
:span=
"8"
>
<el-card
shadow=
"always"
:body-style=
"
{ padding: '0px' }">
...
...
@@ -83,7 +83,8 @@ export default {
computed
:{
...
mapState
({
showChat
:
'showChat'
,
showAdvice
:
'showAdvice'
showAdvice
:
'showAdvice'
,
currentuserId
:
'currentuserId'
}),
diagnoseType
()
{
switch
(
this
.
item
.
diagnoseType
)
{
...
...
@@ -183,8 +184,9 @@ export default {
});
return
false
;
}
this
.
GET
(
`/diagnose/admin/diagnose/doctorAdvice/list/
${
this
.
item
.
diagnoseLogId
}
`
).
then
(
res
=>
{
this
.
GET
(
`/diagnose/admin/diagnose/doctorAdvice/list/
11
`
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
console
.
log
(
res
.
data
);
this
.
$store
.
commit
(
'updateCurrentAdvice'
,
res
.
data
);
}
}).
catch
(
err
=>
{
...
...
@@ -200,7 +202,7 @@ export default {
.inquirylist
{
display
:
flex
;
margin-bottom
:
10px
;
padding
:
10px
5
px
;
padding
:
10px
10
px
;
overflow
:
hidden
!
important
;
.el-row
{
width
:
100%
;
...
...
@@ -397,7 +399,7 @@ export default {
display
:
flex
;
margin-bottom
:
10px
;
// margin: 20px 30px 0px;
padding
:
10px
5
px
;
padding
:
10px
14
px
;
// background: #fff;
overflow
:
hidden
!
important
;
.el-row
{
...
...
src/store/mutations/index.js
浏览文件 @
b83f0ade
...
...
@@ -11,12 +11,22 @@ export default {
updateCurrentAdvice
(
state
,
obj
)
{
state
.
currentAdvice
=
obj
;
},
updateSoketQuest
(
state
,
obj
)
{
state
.
soketQuest
=
obj
;
localStorage
.
setItem
(
'soketQuest'
,
obj
)
},
updateSoketseach
(
state
,
obj
)
{
state
.
soketQuest
=
Object
.
assign
({},
state
.
soketQuest
,
obj
);
},
updateShowChat
(
state
,
obj
)
{
state
.
showChat
=
obj
;
},
updateShowAdvice
(
state
,
obj
)
{
state
.
showAdvice
=
obj
;
},
updateCurrentuserId
(
state
,
obj
)
{
state
.
currentuserId
=
obj
;
},
updateNoticeList
(
state
,
obj
)
{
state
.
noticeList
=
obj
;
},
...
...
src/store/state.js
浏览文件 @
b83f0ade
...
...
@@ -5,7 +5,10 @@ export default {
currentCalList
:{},
currentChat
:
{},
currentAdvice
:
{},
websoketList
:
{},
soketQuest
:
{},
noticeList
:
[],
currentuserId
:
null
,
showChat
:
false
,
showAdvice
:
false
};
src/views/IM/diagnosis-admin/administrators.vue
浏览文件 @
b83f0ade
...
...
@@ -14,7 +14,7 @@
<el-col
:span=
"12"
>
<el-date-picker
style=
"margin-top: 10px"
v-model=
"value
1
"
v-model=
"value
now
"
type=
"date"
placeholder=
"选择日期"
>
...
...
@@ -70,7 +70,7 @@
<!-- 问诊列表 -->
<div
class=
"box"
>
<div
class=
"row"
v-for=
"item in 4"
:key=
"item"
>
<consultationlist></consultationlist>
<consultationlist
:valuenow=
"valuenow"
></consultationlist>
</div>
</div>
<!-- 底部 -->
...
...
@@ -98,13 +98,23 @@ import consultationlist from "../../../components/common/consultation";
export
default
{
data
()
{
return
{
value
1
:
Date
.
now
(
),
value
now
:
new
Date
().
toLocaleDateString
().
split
(
'/'
).
join
(
'-'
),
currentPage4
:
0
,
};
},
components
:
{
consultationlist
,
},
created
()
{
},
watch
:{
valuenow
(
n
,
o
){
if
(
n
){
console
.
log
(
this
.
valuenow
);
}
}
},
methods
:
{
handleSizeChange
()
{},
handleCurrentChange
()
{},
...
...
src/views/IM/diagnosis-admin/workbench.vue
浏览文件 @
b83f0ade
...
...
@@ -59,13 +59,14 @@ export default {
computed
:{
...
mapState
({
currentDiagList
:
'currentDiagList'
,
currentCalList
:
'currentCalList'
currentCalList
:
'currentCalList'
,
soketQuest
:
'soketQuest'
}),
},
data
(){
return
{
tabPosition
:
"1"
,
Datevalue
:
new
Date
().
toLocaleDateString
().
split
(
'/'
).
join
(
'-'
),
Datevalue
:
new
Date
(
JSON
.
parse
(
localStorage
.
getItem
(
"administrator"
)).
dateTime
)
||
new
Date
(
),
currentPage4
:
0
,
showChat
:
true
,
totalRows
:
40
,
...
...
@@ -108,20 +109,36 @@ export default {
}
},
created
(){
this
.
inquirySearch
()
},
methods
:{
handleSizeChange
(
val
){
this
.
searchParam
.
pageSize
=
val
this
.
search
()
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
let
condition
=
{
pageSize
:
val
}
this
.
$store
.
commit
(
'updateSoketseach'
,
condition
)
}
else
{
this
.
searchParam
.
pageSize
=
val
}
this
.
inquirySearch
()
},
handleCurrentChange
(
val
){
this
.
searchParam
.
pageNo
=
val
this
.
search
()
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
let
condition
=
{
pageNo
:
val
}
this
.
$store
.
commit
(
'updateSoketseach'
,
condition
)
}
else
{
this
.
searchParam
.
pageNo
=
val
}
this
.
inquirySearch
()
},
changestatus
(
val
){
this
.
searchParam
.
returnStatus
=
val
this
.
searchParam
.
pageNo
=
1
this
.
search
()
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
let
condition
=
{
returnStatus
:
val
,
pageNo
:
1
}
this
.
$store
.
commit
(
'updateSoketseach'
,
condition
)
}
else
{
this
.
searchParam
.
returnStatus
=
val
this
.
searchParam
.
pageNo
=
1
}
this
.
inquirySearch
()
// 测试代码
const
l
=
this
.
currentDiagList
;
...
...
@@ -131,19 +148,30 @@ export default {
this
.
$store
.
commit
(
'updateCurrentDiagList'
,
l
);
},
changeDatetime
(
val
)
{
this
.
searchParam
.
dateTime
=
val
.
toLocaleDateString
().
split
(
'/'
).
join
(
'-'
)
this
.
searchParam
.
pageNo
=
1
this
.
search
()
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
let
condition
=
{
dateTime
:
val
.
toLocaleDateString
().
split
(
'/'
).
join
(
'-'
),
pageNo
:
1
}
this
.
$store
.
commit
(
'updateSoketseach'
,
condition
)
}
else
{
this
.
searchParam
.
dateTime
=
val
.
toLocaleDateString
().
split
(
'/'
).
join
(
'-'
)
this
.
searchParam
.
pageNo
=
1
}
this
.
inquirySearch
()
},
search
()
{
let
params
=
this
.
searchParam
this
.
loading
=
true
this
.
POST
(
'/diagnose/admin/diagnose/operator/list'
,
params
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
this
.
loading
=
false
console
.
log
(
res
);
}
})
inquirySearch
()
{
let
params
=
null
;
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
params
=
this
.
searchParam
this
.
loading
=
true
}
else
{
params
=
this
.
soketQuest
this
.
loading
=
true
}
this
.
POST
(
'/diagnose/socket/condition/update'
,
params
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
this
.
loading
=
false
console
.
log
(
res
);
}
})
}
},
}
...
...
@@ -161,7 +189,7 @@ export default {
.forbox
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
//
justify-content: space-between;
.for
{
display
:
flex
;
}
...
...
src/views/layout/slidebar.vue
浏览文件 @
b83f0ade
...
...
@@ -68,6 +68,7 @@ export default {
this
.
POST
(
"/basic-data/menu/list"
,
{
systemType
:
this
.
systemType
}).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
let
{
vueMenuDtos
}
=
res
.
data
;
this
.
$store
.
commit
(
'CurrentuserId'
,
res
.
data
.
userId
)
localStorage
.
setItem
(
'userID'
,
res
.
data
.
userId
)
// let vueMenuDtos = [];
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录