提交 b83f0ade 编写于 作者: 张磊's avatar 张磊

Merge branch 'feature/fs' into 'develop'

Feature/fs

See merge request com.pica.cloud.education.frontend/pica-admin-consultation!51
<template> <template>
<div class="consultationlist"> <div class="consultationlist" style=" user-select:none; ">
<div class="list"> <div class="list">
<div class="name">刘思妙</div> <div class="name">刘思妙</div>
<div class="details"> <div class="details" @click="goworkBench">
<div class="handle">待处理 <span>128</span></div> <div class="handle">待处理 <span>128</span></div>
<div class="see"> <div class="see">
<a href="#">查看详情</a> <a href="#">查看详情</a>
...@@ -32,7 +32,46 @@ ...@@ -32,7 +32,46 @@
</template> </template>
<script> <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> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
<template> <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="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="formData.advice" placeholder="请输入内容"></el-input> <span>诊断建议</span> <el-input rows="10" type="textarea" v-model="diagnoseAdvice" placeholder="请输入内容"></el-input>
</div> </div>
<div class="record"> <div class="record">
<span>录音/录像</span> <span>录音/录像</span>
<div v-if="currentAdvice.adviceAudioUrls!=undefined &&currentAdvice.adviceAudioUrls.length > 0"> <div v-if="currentAdvice.adviceAudioUrls!=undefined &&currentAdvice.adviceAudioUrls.length > 0">
<div v-for="adlist in currentAdvice.adviceAudioUrls" :key="adlist.diagnoseId"> <div v-for="itemAudio in currentAdvice.adviceAudioUrls" :key="itemAudio.diagnoseId">
<el-link :href="adlist" target="_blank">{{adlist}}</el-link> <el-link :href="itemAudio" target="_blank">{{itemAudio}}</el-link>
</div> </div>
</div> </div>
<span style="color:#0D9078" v-else>无音频</span> <span style="color:#0D9078" v-else>无音频</span>
...@@ -24,10 +24,7 @@ import {mapState} from "vuex"; ...@@ -24,10 +24,7 @@ import {mapState} from "vuex";
export default { export default {
data() { data() {
return{ return{
formData:{
diagnoseAdvice:'',
advice:"",
},
} }
}, },
props:{ props:{
...@@ -38,21 +35,32 @@ export default { ...@@ -38,21 +35,32 @@ export default {
}, },
created() { created() {
},
mounted() {
}, },
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() {
let params = { let params = {
// adviceAudioUrls: this.Adviceslist.adviceAudioUrls, adviceAudioUrls: this.currentAdvice.adviceAudioUrls,
// content: this.formData.advice, content: this.diagnoseAdvice,
// 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({
...@@ -95,7 +103,15 @@ export default { ...@@ -95,7 +103,15 @@ export default {
}; };
}; };
} }
} },
stopdrag: {
inserted:function(el, binding, vnode) {
let element = el;
element.onmousedown =function(e) {
e.stopPropagation()
}
}
}
} }
} }
</script> </script>
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>
<template> <template>
<div class="inquirylist"> <div class="inquirylist" style=" user-select:none; ">
<el-row> <el-row>
<el-col :span="8" > <el-col :span="8" >
<el-card shadow="always" :body-style="{ padding: '0px' }"> <el-card shadow="always" :body-style="{ padding: '0px' }">
...@@ -83,7 +83,8 @@ export default { ...@@ -83,7 +83,8 @@ export default {
computed:{ computed:{
...mapState({ ...mapState({
showChat: 'showChat', showChat: 'showChat',
showAdvice:'showAdvice' showAdvice:'showAdvice',
currentuserId:'currentuserId'
}), }),
diagnoseType() { diagnoseType() {
switch(this.item.diagnoseType) { switch(this.item.diagnoseType) {
...@@ -183,8 +184,9 @@ export default { ...@@ -183,8 +184,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=>{
...@@ -200,7 +202,7 @@ export default { ...@@ -200,7 +202,7 @@ export default {
.inquirylist{ .inquirylist{
display: flex; display: flex;
margin-bottom: 10px; margin-bottom: 10px;
padding: 10px 5px; padding: 10px 10px;
overflow: hidden !important; overflow: hidden !important;
.el-row{ .el-row{
width: 100%; width: 100%;
...@@ -397,7 +399,7 @@ export default { ...@@ -397,7 +399,7 @@ export default {
display: flex; display: flex;
margin-bottom: 10px; margin-bottom: 10px;
// margin: 20px 30px 0px; // margin: 20px 30px 0px;
padding: 10px 5px; padding: 10px 14px;
// background: #fff; // background: #fff;
overflow: hidden !important; overflow: hidden !important;
.el-row{ .el-row{
......
...@@ -11,12 +11,22 @@ export default { ...@@ -11,12 +11,22 @@ export default {
updateCurrentAdvice(state, obj) { updateCurrentAdvice(state, obj) {
state.currentAdvice = 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) { updateShowChat(state, obj) {
state.showChat = obj; state.showChat = obj;
}, },
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;
}, },
......
...@@ -5,7 +5,10 @@ export default { ...@@ -5,7 +5,10 @@ export default {
currentCalList:{}, currentCalList:{},
currentChat: {}, currentChat: {},
currentAdvice: {}, currentAdvice: {},
websoketList: {},
soketQuest: {},
noticeList: [], noticeList: [],
currentuserId:null,
showChat:false, showChat:false,
showAdvice:false showAdvice:false
}; };
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<el-col :span="12"> <el-col :span="12">
<el-date-picker <el-date-picker
style="margin-top: 10px" style="margin-top: 10px"
v-model="value1" v-model="valuenow"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
> >
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<!-- 问诊列表 --> <!-- 问诊列表 -->
<div class="box"> <div class="box">
<div class="row" v-for="item in 4" :key="item"> <div class="row" v-for="item in 4" :key="item">
<consultationlist></consultationlist> <consultationlist :valuenow="valuenow"></consultationlist>
</div> </div>
</div> </div>
<!-- 底部 --> <!-- 底部 -->
...@@ -98,13 +98,23 @@ import consultationlist from "../../../components/common/consultation"; ...@@ -98,13 +98,23 @@ import consultationlist from "../../../components/common/consultation";
export default { export default {
data() { data() {
return { return {
value1: Date.now(), valuenow: new Date().toLocaleDateString().split('/').join('-'),
currentPage4: 0, currentPage4: 0,
}; };
}, },
components: { components: {
consultationlist, consultationlist,
}, },
created() {
},
watch:{
valuenow(n,o){
if(n){
console.log(this.valuenow);
}
}
},
methods: { methods: {
handleSizeChange() {}, handleSizeChange() {},
handleCurrentChange() {}, handleCurrentChange() {},
......
...@@ -59,13 +59,14 @@ export default { ...@@ -59,13 +59,14 @@ export default {
computed:{ computed:{
...mapState({ ...mapState({
currentDiagList: 'currentDiagList', currentDiagList: 'currentDiagList',
currentCalList: 'currentCalList' currentCalList: 'currentCalList',
soketQuest:'soketQuest'
}), }),
}, },
data(){ data(){
return { return {
tabPosition:"1", tabPosition:"1",
Datevalue:new Date().toLocaleDateString().split('/').join('-'), Datevalue: new Date(JSON.parse(localStorage.getItem( "administrator")).dateTime) || new Date(),
currentPage4:0, currentPage4:0,
showChat: true, showChat: true,
totalRows:40, totalRows:40,
...@@ -108,20 +109,36 @@ export default { ...@@ -108,20 +109,36 @@ export default {
} }
}, },
created(){ created(){
this.inquirySearch()
}, },
methods:{ methods:{
handleSizeChange(val){ handleSizeChange(val){
this.searchParam.pageSize = val if(JSON.stringify(this.soketQuest)=="{}"){
this.search() let condition = {pageSize:val}
this.$store.commit('updateSoketseach',condition)
}else{
this.searchParam.pageSize = val
}
this.inquirySearch()
}, },
handleCurrentChange(val){ handleCurrentChange(val){
this.searchParam.pageNo = val if(JSON.stringify(this.soketQuest)=="{}"){
this.search() let condition = {pageNo:val}
this.$store.commit('updateSoketseach',condition)
}else{
this.searchParam.pageNo = val
}
this.inquirySearch()
}, },
changestatus(val){ changestatus(val){
this.searchParam.returnStatus = val if(JSON.stringify(this.soketQuest)=="{}"){
this.searchParam.pageNo = 1 let condition = {returnStatus:val,pageNo:1}
this.search() this.$store.commit('updateSoketseach',condition)
}else{
this.searchParam.returnStatus = val
this.searchParam.pageNo = 1
}
this.inquirySearch()
// 测试代码 // 测试代码
const l = this.currentDiagList; const l = this.currentDiagList;
...@@ -131,19 +148,30 @@ export default { ...@@ -131,19 +148,30 @@ export default {
this.$store.commit('updateCurrentDiagList', l); this.$store.commit('updateCurrentDiagList', l);
}, },
changeDatetime(val) { changeDatetime(val) {
this.searchParam.dateTime = val.toLocaleDateString().split('/').join('-') if(JSON.stringify(this.soketQuest)=="{}"){
this.searchParam.pageNo = 1 let condition = {dateTime:val.toLocaleDateString().split('/').join('-'),pageNo:1}
this.search() this.$store.commit('updateSoketseach',condition)
}else{
this.searchParam.dateTime = val.toLocaleDateString().split('/').join('-')
this.searchParam.pageNo = 1
}
this.inquirySearch()
}, },
search() { inquirySearch() {
let params = this.searchParam let params = null;
this.loading = true if(JSON.stringify(this.soketQuest)=="{}"){
this.POST('/diagnose/admin/diagnose/operator/list',params).then(res=>{ params = this.searchParam
if(res.code == '000000'){ this.loading = true
this.loading = false }else{
console.log(res); 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 { ...@@ -161,7 +189,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;
} }
......
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册