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
提交
28fe8727
提交
28fe8727
编写于
8月 02, 2021
作者:
fusheng.liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
save
上级
ecad6297
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
77 行增加
和
32 行删除
+77
-32
consultation.vue
src/components/common/consultation.vue
+2
-2
diagnoseAdvice.vue
src/components/common/diagnoseAdvice.vue
+17
-8
inquirylist.vue
src/components/common/inquirylist.vue
+5
-2
index.js
src/store/mutations/index.js
+3
-0
state.js
src/store/state.js
+1
-0
workbench.vue
src/views/IM/diagnosis-admin/workbench.vue
+48
-20
slidebar.vue
src/views/layout/slidebar.vue
+1
-0
未找到文件。
src/components/common/consultation.vue
浏览文件 @
28fe8727
...
@@ -56,8 +56,8 @@ export default {
...
@@ -56,8 +56,8 @@ export default {
methods
:
{
methods
:
{
skip
()
{
skip
()
{
this
.
searchParam
.
dateTime
=
this
.
valuenow
this
.
searchParam
.
dateTime
=
this
.
valuenow
this
.
searchParam
.
operateUserId
=
'1
23
'
this
.
searchParam
.
operateUserId
=
'1
1
'
this
.
POST
(
'/diagnose/
admin/diagnose/operator/list
'
,
this
.
searchParam
).
then
(
res
=>
{
this
.
POST
(
'/diagnose/
socket/condition/update
'
,
this
.
searchParam
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
if
(
res
.
code
==
'000000'
){
console
.
log
(
res
);
console
.
log
(
res
);
localStorage
.
setItem
(
'administrator'
,
JSON
.
stringify
(
this
.
searchParam
))
localStorage
.
setItem
(
'administrator'
,
JSON
.
stringify
(
this
.
searchParam
))
...
...
src/components/common/diagnoseAdvice.vue
浏览文件 @
28fe8727
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<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=
"header"
>
<span
class=
"headernum"
>
问诊单
{{
currentAdvice
.
diagnoseId
}}
诊断建议
</span>
<el-button
@
click=
"closeadvice"
>
退出
</el-button></div>
<div
class=
"center"
>
<div
class=
"center"
>
<span>
诊断建议
</span>
<el-input
rows=
"10"
type=
"textarea"
v-model=
"
formData.a
dvice"
placeholder=
"请输入内容"
></el-input>
<span>
诊断建议
</span>
<el-input
rows=
"10"
type=
"textarea"
v-model=
"
diagnoseA
dvice"
placeholder=
"请输入内容"
></el-input>
</div>
</div>
<div
class=
"record"
>
<div
class=
"record"
>
<span>
录音/录像
</span>
<span>
录音/录像
</span>
...
@@ -25,7 +25,7 @@ export default {
...
@@ -25,7 +25,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
formData
:{
formData
:{
diagnoseAdvice
:
''
,
//
diagnoseAdvice:'',
advice
:
""
,
advice
:
""
,
},
},
}
}
...
@@ -42,17 +42,26 @@ export default {
...
@@ -42,17 +42,26 @@ export default {
computed
:{
computed
:{
...
mapState
({
...
mapState
({
currentAdvice
:
'currentAdvice'
,
currentAdvice
:
'currentAdvice'
,
})
}),
diagnoseAdvice
:{
get
:
function
()
{
return
this
.
currentAdvice
.
content
},
set
(
val
){
this
.
currentAdvice
.
content
=
val
}
}
},
},
methods
:{
methods
:{
SaveAdvice
()
{
SaveAdvice
()
{
console
.
log
(
this
.
currentAdvice
.
content
);
let
params
=
{
let
params
=
{
// adviceAudioUrls: this.Adviceslist
.adviceAudioUrls,
adviceAudioUrls
:
this
.
currentAdvice
.
adviceAudioUrls
,
// content: this.formData.a
dvice,
content
:
this
.
diagnoseA
dvice
,
// diagnoseId: 11,
diagnoseId
:
11
,
//id需要获取
// illnessAudioUrls: this.Adviceslist
.illnessAudioUrls
illnessAudioUrls
:
this
.
currentAdvice
.
illnessAudioUrls
}
}
if
(
!
this
.
formData
.
advice
)
return
//
if(!this.formData.advice) return
this
.
POST
(
'/diagnose/admin/diagnose/doctorAdvice/create'
,
params
).
then
(
res
=>
{
this
.
POST
(
'/diagnose/admin/diagnose/doctorAdvice/create'
,
params
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
){
if
(
res
.
code
==
"000000"
){
this
.
$message
({
this
.
$message
({
...
...
src/components/common/inquirylist.vue
浏览文件 @
28fe8727
...
@@ -79,11 +79,13 @@ export default {
...
@@ -79,11 +79,13 @@ export default {
}
}
},
},
created
()
{
created
()
{
console
.
log
(
this
.
currentuserId
);
},
},
computed
:{
computed
:{
...
mapState
({
...
mapState
({
showChat
:
'showChat'
,
showChat
:
'showChat'
,
showAdvice
:
'showAdvice'
showAdvice
:
'showAdvice'
,
currentuserId
:
'currentuserId'
}),
}),
diagnoseType
()
{
diagnoseType
()
{
switch
(
this
.
item
.
diagnoseType
)
{
switch
(
this
.
item
.
diagnoseType
)
{
...
@@ -169,8 +171,9 @@ export default {
...
@@ -169,8 +171,9 @@ export default {
});
});
return
false
;
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'
){
if
(
res
.
code
==
'000000'
){
console
.
log
(
res
.
data
);
this
.
$store
.
commit
(
'updateCurrentAdvice'
,
res
.
data
);
this
.
$store
.
commit
(
'updateCurrentAdvice'
,
res
.
data
);
}
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
...
...
src/store/mutations/index.js
浏览文件 @
28fe8727
...
@@ -20,6 +20,9 @@ export default {
...
@@ -20,6 +20,9 @@ export default {
updateShowAdvice
(
state
,
obj
)
{
updateShowAdvice
(
state
,
obj
)
{
state
.
showAdvice
=
obj
;
state
.
showAdvice
=
obj
;
},
},
updateCurrentuserId
(
state
,
obj
)
{
state
.
currentuserId
=
obj
;
},
updateNoticeList
(
state
,
obj
)
{
updateNoticeList
(
state
,
obj
)
{
state
.
noticeList
=
obj
;
state
.
noticeList
=
obj
;
},
},
...
...
src/store/state.js
浏览文件 @
28fe8727
...
@@ -8,6 +8,7 @@ export default {
...
@@ -8,6 +8,7 @@ export default {
websoketList
:
{},
websoketList
:
{},
soketQuest
:
{},
soketQuest
:
{},
noticeList
:
[],
noticeList
:
[],
currentuserId
:
null
,
showChat
:
false
,
showChat
:
false
,
showAdvice
:
false
showAdvice
:
false
};
};
src/views/IM/diagnosis-admin/workbench.vue
浏览文件 @
28fe8727
...
@@ -66,7 +66,7 @@ export default {
...
@@ -66,7 +66,7 @@ export default {
data
(){
data
(){
return
{
return
{
tabPosition
:
"1"
,
tabPosition
:
"1"
,
Datevalue
:
new
Date
(
JSON
.
parse
(
localStorage
.
getItem
(
"administrator"
)).
dateTime
),
Datevalue
:
new
Date
(
JSON
.
parse
(
localStorage
.
getItem
(
"administrator"
)).
dateTime
)
||
new
Date
()
,
currentPage4
:
0
,
currentPage4
:
0
,
showChat
:
true
,
showChat
:
true
,
totalRows
:
40
,
totalRows
:
40
,
...
@@ -110,10 +110,7 @@ export default {
...
@@ -110,10 +110,7 @@ export default {
},
},
created
(){
created
(){
// console.log(this.$route.query.id);
// console.log(this.$route.query.id);
// this.search()
this
.
search
()
let
a
=
JSON
.
parse
(
localStorage
.
getItem
(
"administrator"
))
console
.
log
(
a
,
a
.
dateTime
);
},
},
watch
:
{
watch
:
{
$route
:
{
$route
:
{
...
@@ -126,16 +123,29 @@ export default {
...
@@ -126,16 +123,29 @@ export default {
},
},
methods
:{
methods
:{
handleSizeChange
(
val
){
handleSizeChange
(
val
){
this
.
soketQuest
.
pageSize
=
val
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
this
.
soketQuest
.
pageSize
=
val
}
else
{
this
.
searchParam
.
pageSize
=
val
}
this
.
search
()
this
.
search
()
},
},
handleCurrentChange
(
val
){
handleCurrentChange
(
val
){
this
.
soketQuest
.
pageNo
=
val
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
this
.
soketQuest
.
pageNo
=
val
}
else
{
this
.
searchParam
.
pageNo
=
val
}
this
.
search
()
this
.
search
()
},
},
changestatus
(
val
){
changestatus
(
val
){
this
.
soketQuest
.
returnStatus
=
val
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
this
.
soketQuest
.
pageNo
=
1
this
.
soketQuest
.
returnStatus
=
val
this
.
soketQuest
.
pageNo
=
1
}
else
{
this
.
searchParam
.
returnStatus
=
val
this
.
searchParam
.
pageNo
=
1
}
this
.
search
()
this
.
search
()
// 测试代码
// 测试代码
...
@@ -146,19 +156,37 @@ export default {
...
@@ -146,19 +156,37 @@ export default {
this
.
$store
.
commit
(
'updateCurrentDiagList'
,
l
);
this
.
$store
.
commit
(
'updateCurrentDiagList'
,
l
);
},
},
changeDatetime
(
val
)
{
changeDatetime
(
val
)
{
this
.
soketQuest
.
dateTime
=
val
.
toLocaleDateString
().
split
(
'/'
).
join
(
'-'
)
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
this
.
soketQuest
.
pageNo
=
1
this
.
soketQuest
.
dateTime
=
val
.
toLocaleDateString
().
split
(
'/'
).
join
(
'-'
)
this
.
soketQuest
.
pageNo
=
1
}
else
{
this
.
searchParam
.
dateTime
=
val
.
toLocaleDateString
().
split
(
'/'
).
join
(
'-'
)
this
.
searchParam
.
pageNo
=
1
}
this
.
search
()
this
.
search
()
},
},
search
()
{
search
()
{
let
params
=
this
.
soketQuest
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
this
.
loading
=
true
let
params
=
this
.
searchParam
this
.
POST
(
'/diagnose/admin/diagnose/operator/list'
,
this
.
soketQuest
).
then
(
res
=>
{
this
.
loading
=
true
if
(
res
.
code
==
'000000'
){
this
.
POST
(
'/diagnose/socket/condition/update'
,
params
).
then
(
res
=>
{
this
.
loading
=
false
if
(
res
.
code
==
'000000'
){
console
.
log
(
res
);
this
.
loading
=
false
}
console
.
log
(
res
);
})
}
})
}
else
{
let
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
);
}
})
}
// let params = this.soketQuest || this.searchParam
}
}
},
},
}
}
...
@@ -176,7 +204,7 @@ export default {
...
@@ -176,7 +204,7 @@ export default {
.forbox
{
.forbox
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
//
justify-content: space-between;
.for
{
.for
{
display
:
flex
;
display
:
flex
;
}
}
...
...
src/views/layout/slidebar.vue
浏览文件 @
28fe8727
...
@@ -68,6 +68,7 @@ export default {
...
@@ -68,6 +68,7 @@ export default {
this
.
POST
(
"/basic-data/menu/list"
,
{
systemType
:
this
.
systemType
}).
then
(
res
=>
{
this
.
POST
(
"/basic-data/menu/list"
,
{
systemType
:
this
.
systemType
}).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
let
{
vueMenuDtos
}
=
res
.
data
;
let
{
vueMenuDtos
}
=
res
.
data
;
this
.
$store
.
commit
(
'CurrentuserId'
,
res
.
data
.
userId
)
localStorage
.
setItem
(
'userID'
,
res
.
data
.
userId
)
localStorage
.
setItem
(
'userID'
,
res
.
data
.
userId
)
// let vueMenuDtos = [];
// let vueMenuDtos = [];
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录