提交 988f61d9 编写于 作者: fusheng.liu's avatar fusheng.liu

save

上级 0bbdb307
<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="skip">
<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,48 @@ ...@@ -32,7 +32,48 @@
</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: {
skip() {
this.searchParam.dateTime = this.valuenow
this.searchParam.operateUserId = '123'
this.POST('/diagnose/admin/diagnose/operator/list',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{
this.$message({
message: '跳转失败,请再试一次',
type: "warning",
duration:1000
});
}
})
}
}
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -59,6 +59,7 @@ export default { ...@@ -59,6 +59,7 @@ export default {
message: "保存成功", message: "保存成功",
type: "success", type: "success",
}); });
this.formData.advice = ''
this.closeadvice() this.closeadvice()
} }
}).catch(err=>{ }).catch(err=>{
......
...@@ -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' }">
......
...@@ -11,6 +11,9 @@ export default { ...@@ -11,6 +11,9 @@ export default {
updateCurrentAdvice(state, obj) { updateCurrentAdvice(state, obj) {
state.currentAdvice = obj; state.currentAdvice = obj;
}, },
updateSoketQuest(state, obj) {
state.soketQuest = obj;
},
updateShowChat(state, obj) { updateShowChat(state, obj) {
state.showChat = obj; state.showChat = obj;
}, },
......
...@@ -5,6 +5,8 @@ export default { ...@@ -5,6 +5,8 @@ export default {
currentCalList:{}, currentCalList:{},
currentChat: {}, currentChat: {},
currentAdvice: {}, currentAdvice: {},
websoketList: {},
soketQuest: {},
noticeList: [], noticeList: [],
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() {},
......
...@@ -58,13 +58,14 @@ export default { ...@@ -58,13 +58,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),
currentPage4:0, currentPage4:0,
showChat: true, showChat: true,
totalRows:40, totalRows:40,
...@@ -107,30 +108,44 @@ export default { ...@@ -107,30 +108,44 @@ export default {
} }
}, },
created(){ created(){
// console.log(this.$route.query.id);
// this.search()
let a = JSON.parse( localStorage.getItem( "administrator"))
console.log(a,a.dateTime);
}, },
watch: {
$route: {
handler: function(val, oldVal){
console.log(val,oldVal);
},
// 深度观察监听
deep: true
}
},
methods:{ methods:{
handleSizeChange(val){ handleSizeChange(val){
this.searchParam.pageSize = val this.soketQuest.pageSize = val
this.search() this.search()
}, },
handleCurrentChange(val){ handleCurrentChange(val){
this.searchParam.pageNo = val this.soketQuest.pageNo = val
this.search() this.search()
}, },
changestatus(val){ changestatus(val){
this.searchParam.returnStatus = val this.soketQuest.returnStatus = val
this.searchParam.pageNo = 1 this.soketQuest.pageNo = 1
this.search() this.search()
}, },
changeDatetime(val) { changeDatetime(val) {
this.searchParam.dateTime = val.toLocaleDateString().split('/').join('-') this.soketQuest.dateTime = val.toLocaleDateString().split('/').join('-')
this.searchParam.pageNo = 1 this.soketQuest.pageNo = 1
this.search() this.search()
}, },
search() { search() {
let params = this.searchParam let params = this.soketQuest
this.loading = true this.loading = true
this.POST('/diagnose/admin/diagnose/operator/list',params).then(res=>{ this.POST('/diagnose/admin/diagnose/operator/list',this.soketQuest).then(res=>{
if(res.code == '000000'){ if(res.code == '000000'){
this.loading = false this.loading = false
console.log(res); console.log(res);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册