提交 28fe8727 编写于 作者: fusheng.liu's avatar fusheng.liu

save

上级 ecad6297
...@@ -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 = '123' this.searchParam.operateUserId = '11'
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))
......
...@@ -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.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>
...@@ -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.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({
......
...@@ -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=>{
......
...@@ -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;
}, },
......
...@@ -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
}; };
...@@ -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;
} }
......
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册