Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jingqi.liu
pica-admin-consultation
提交
8ba5403a
提交
8ba5403a
编写于
8月 02, 2021
作者:
fusheng.liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
save
上级
28fe8727
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
45 行增加
和
53 行删除
+45
-53
consultation.vue
src/components/common/consultation.vue
+2
-4
diagnoseAdvice.vue
src/components/common/diagnoseAdvice.vue
+18
-12
inquirylist.vue
src/components/common/inquirylist.vue
+2
-3
index.js
src/store/mutations/index.js
+4
-0
workbench.vue
src/views/IM/diagnosis-admin/workbench.vue
+19
-34
未找到文件。
src/components/common/consultation.vue
浏览文件 @
8ba5403a
...
...
@@ -2,7 +2,7 @@
<div
class=
"consultationlist"
style=
" user-select:none; "
>
<div
class=
"list"
>
<div
class=
"name"
>
刘思妙
</div>
<div
class=
"details"
@
click=
"
skip
"
>
<div
class=
"details"
@
click=
"
goworkBench
"
>
<div
class=
"handle"
>
待处理
<span>
128
</span></div>
<div
class=
"see"
>
<a
href=
"#"
>
查看详情
</a>
...
...
@@ -54,13 +54,11 @@ export default {
created
()
{
},
methods
:
{
skip
()
{
goworkBench
()
{
this
.
searchParam
.
dateTime
=
this
.
valuenow
this
.
searchParam
.
operateUserId
=
'11'
this
.
POST
(
'/diagnose/socket/condition/update'
,
this
.
searchParam
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
console
.
log
(
res
);
localStorage
.
setItem
(
'administrator'
,
JSON
.
stringify
(
this
.
searchParam
))
this
.
$store
.
commit
(
'updateSoketQuest'
,
this
.
searchParam
)
this
.
$router
.
push
({
path
:
'/workbench'
})
}
else
{
...
...
src/components/common/diagnoseAdvice.vue
浏览文件 @
8ba5403a
<
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"
>
<div
class=
"center"
v-stopdrag
>
<span>
诊断建议
</span>
<el-input
rows=
"10"
type=
"textarea"
v-model=
"diagnoseAdvice"
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,6 +35,9 @@ export default {
},
created
()
{
},
mounted
()
{
},
computed
:{
...
mapState
({
...
...
@@ -47,14 +47,13 @@ export default {
get
:
function
()
{
return
this
.
currentAdvice
.
content
},
set
(
val
){
set
(
val
){
this
.
currentAdvice
.
content
=
val
}
}
},
methods
:{
SaveAdvice
()
{
console
.
log
(
this
.
currentAdvice
.
content
);
let
params
=
{
adviceAudioUrls
:
this
.
currentAdvice
.
adviceAudioUrls
,
content
:
this
.
diagnoseAdvice
,
...
...
@@ -68,7 +67,6 @@ export default {
message
:
"保存成功"
,
type
:
"success"
,
});
this
.
formData
.
advice
=
''
this
.
closeadvice
()
}
}).
catch
(
err
=>
{
...
...
@@ -105,7 +103,15 @@ export default {
};
};
}
}
},
stopdrag
:
{
inserted
:
function
(
el
,
binding
,
vnode
)
{
let
element
=
el
;
element
.
onmousedown
=
function
(
e
)
{
e
.
stopPropagation
()
}
}
}
}
}
</
script
>
...
...
src/components/common/inquirylist.vue
浏览文件 @
8ba5403a
...
...
@@ -79,7 +79,6 @@ export default {
}
},
created
()
{
console
.
log
(
this
.
currentuserId
);
},
computed
:{
...
mapState
({
...
...
@@ -189,7 +188,7 @@ export default {
.inquirylist
{
display
:
flex
;
margin-bottom
:
10px
;
padding
:
10px
5
px
;
padding
:
10px
10
px
;
overflow
:
hidden
!
important
;
.el-row
{
width
:
100%
;
...
...
@@ -386,7 +385,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
浏览文件 @
8ba5403a
...
...
@@ -13,6 +13,10 @@ export default {
},
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
;
...
...
src/views/IM/diagnosis-admin/workbench.vue
浏览文件 @
8ba5403a
...
...
@@ -109,44 +109,36 @@ export default {
}
},
created
(){
// console.log(this.$route.query.id);
this
.
search
()
this
.
inquirySearch
()
},
watch
:
{
$route
:
{
handler
:
function
(
val
,
oldVal
){
console
.
log
(
val
,
oldVal
);
},
// 深度观察监听
deep
:
true
}
},
methods
:{
handleSizeChange
(
val
){
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
this
.
soketQuest
.
pageSize
=
val
let
condition
=
{
pageSize
:
val
}
this
.
$store
.
commit
(
'updateSoketseach'
,
condition
)
}
else
{
this
.
searchParam
.
pageSize
=
val
}
this
.
s
earch
()
this
.
inquiryS
earch
()
},
handleCurrentChange
(
val
){
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
this
.
soketQuest
.
pageNo
=
val
let
condition
=
{
pageNo
:
val
}
this
.
$store
.
commit
(
'updateSoketseach'
,
condition
)
}
else
{
this
.
searchParam
.
pageNo
=
val
}
this
.
s
earch
()
this
.
inquiryS
earch
()
},
changestatus
(
val
){
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
this
.
soketQuest
.
returnStatus
=
val
this
.
soketQuest
.
pageNo
=
1
let
condition
=
{
returnStatus
:
val
,
pageNo
:
1
}
this
.
$store
.
commit
(
'updateSoketseach'
,
condition
)
}
else
{
this
.
searchParam
.
returnStatus
=
val
this
.
searchParam
.
pageNo
=
1
}
this
.
s
earch
()
this
.
inquiryS
earch
()
// 测试代码
const
l
=
this
.
currentDiagList
;
...
...
@@ -157,36 +149,29 @@ export default {
},
changeDatetime
(
val
)
{
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
this
.
soketQuest
.
dateTime
=
val
.
toLocaleDateString
().
split
(
'/'
).
join
(
'-'
)
this
.
soketQuest
.
pageNo
=
1
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
.
s
earch
()
this
.
inquiryS
earch
()
},
search
()
{
inquirySearch
()
{
let
params
=
null
;
if
(
JSON
.
stringify
(
this
.
soketQuest
)
==
"{}"
){
let
params
=
this
.
searchParam
params
=
this
.
searchParam
this
.
loading
=
true
this
.
POST
(
'/diagnose/socket/condition/update'
,
params
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
this
.
loading
=
false
console
.
log
(
res
);
}
})
}
else
{
let
params
=
this
.
soketQuest
params
=
this
.
soketQuest
this
.
loading
=
true
this
.
POST
(
'/diagnose/socket/condition/update'
,
params
).
then
(
res
=>
{
}
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
}
},
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录