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

save

上级 0bbdb307
<template>
<div class="consultationlist">
<div class="consultationlist" style=" user-select:none; ">
<div class="list">
<div class="name">刘思妙</div>
<div class="details">
<div class="details" @click="skip">
<div class="handle">待处理 <span>128</span></div>
<div class="see">
<a href="#">查看详情</a>
......@@ -32,7 +32,48 @@
</template>
<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>
<style lang="scss" scoped>
......
......@@ -59,6 +59,7 @@ export default {
message: "保存成功",
type: "success",
});
this.formData.advice = ''
this.closeadvice()
}
}).catch(err=>{
......
......@@ -110,7 +110,7 @@ export default {
}
</script>
<style lang="scss" scoped>
</style>
<template>
<div class="inquirylist">
<div class="inquirylist" style=" user-select:none; ">
<el-row>
<el-col :span="8" >
<el-card shadow="always" :body-style="{ padding: '0px' }">
......
......@@ -11,6 +11,9 @@ export default {
updateCurrentAdvice(state, obj) {
state.currentAdvice = obj;
},
updateSoketQuest(state, obj) {
state.soketQuest = obj;
},
updateShowChat(state, obj) {
state.showChat = obj;
},
......
......@@ -5,6 +5,8 @@ export default {
currentCalList:{},
currentChat: {},
currentAdvice: {},
websoketList: {},
soketQuest: {},
noticeList: [],
showChat:false,
showAdvice:false
......
......@@ -14,7 +14,7 @@
<el-col :span="12">
<el-date-picker
style="margin-top: 10px"
v-model="value1"
v-model="valuenow"
type="date"
placeholder="选择日期"
>
......@@ -70,7 +70,7 @@
<!-- 问诊列表 -->
<div class="box">
<div class="row" v-for="item in 4" :key="item">
<consultationlist></consultationlist>
<consultationlist :valuenow="valuenow"></consultationlist>
</div>
</div>
<!-- 底部 -->
......@@ -98,13 +98,23 @@ import consultationlist from "../../../components/common/consultation";
export default {
data() {
return {
value1: Date.now(),
valuenow: new Date().toLocaleDateString().split('/').join('-'),
currentPage4: 0,
};
},
components: {
consultationlist,
},
created() {
},
watch:{
valuenow(n,o){
if(n){
console.log(this.valuenow);
}
}
},
methods: {
handleSizeChange() {},
handleCurrentChange() {},
......
......@@ -58,13 +58,14 @@ export default {
computed:{
...mapState({
currentDiagList: 'currentDiagList',
currentCalList: 'currentCalList'
currentCalList: 'currentCalList',
soketQuest:'soketQuest'
}),
},
data(){
return {
tabPosition:"1",
Datevalue:new Date().toLocaleDateString().split('/').join('-'),
Datevalue: new Date(JSON.parse(localStorage.getItem( "administrator")).dateTime),
currentPage4:0,
showChat: true,
totalRows:40,
......@@ -107,30 +108,44 @@ export default {
}
},
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:{
handleSizeChange(val){
this.searchParam.pageSize = val
this.soketQuest.pageSize = val
this.search()
},
handleCurrentChange(val){
this.searchParam.pageNo = val
this.soketQuest.pageNo = val
this.search()
},
changestatus(val){
this.searchParam.returnStatus = val
this.searchParam.pageNo = 1
this.soketQuest.returnStatus = val
this.soketQuest.pageNo = 1
this.search()
},
changeDatetime(val) {
this.searchParam.dateTime = val.toLocaleDateString().split('/').join('-')
this.searchParam.pageNo = 1
this.soketQuest.dateTime = val.toLocaleDateString().split('/').join('-')
this.soketQuest.pageNo = 1
this.search()
},
search() {
let params = this.searchParam
let params = this.soketQuest
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'){
this.loading = false
console.log(res);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册