提交 0b16f10e 编写于 作者: lyf's avatar lyf

修改时间

上级 d0c1732d
......@@ -48,7 +48,7 @@
{{ item.doctorMobile }}
</span>
<span class="info-call-time" v-if="item.doctorCallTime">
{{ pastCallTime }}小时前呼叫
{{ pastDoctorCallTime }}小时前呼叫
</span>
<span class="info-calling" v-if="item.doctorCallKfStatus == 1">
<img :src="infocallImg" alt="" />
......@@ -67,8 +67,8 @@
</div>
</div>
<div class="line-btn" @click="openChat">
<!-- <span v-if="isDoctorChat">正在呼叫接诊医生,进入诊室</span>-->
<!-- <span v-else-if="isUserChat">正在呼叫医助,进入诊室</span>-->
<!-- <span v-if="isDoctorChat">正在呼叫接诊医生,进入诊室</span>-->
<!-- <span v-else-if="isUserChat">正在呼叫医助,进入诊室</span>-->
<span>进入诊室</span>
</div>
</div>
......@@ -92,7 +92,7 @@
{{ item.userMobile }}
</span>
<span class="info-call-time" v-if="item.userCallTime">
{{ userCallTime }}小时前呼叫
{{ pastUserCallTime }}小时前呼叫
</span>
<span class="info-calling" v-if="item.userCallKfStatus == 1">
<img :src="infocallImg" alt="" />
......@@ -199,9 +199,9 @@ export default {
case 1:
return "待处理";
case 2:
return '待问诊'
return "待问诊";
case 3:
return '问诊进行中'
return "问诊进行中";
case 4:
return "问诊已完成";
case 5:
......@@ -219,18 +219,24 @@ export default {
userCallTime() {
return new Date(this.item.userCallTime).format("hh:mm");
},
pastUserCallTime() {
let now_data = new Date().getTime();
if (this.item.userCallTime) {
return new Date(now_data - this.item.userCallTime).format("hh:mm");
} else {
return null;
}
},
doctorCallTime() {
return this.item.doctorCallTime
return this.item.doctorCallTime;
},
pastCallTime(){
pastDoctorCallTime() {
let now_data = new Date().getTime();
if(this.item.doctorCallTime){
if (this.item.doctorCallTime) {
return new Date(now_data - this.item.doctorCallTime).format("hh:mm");
} else {
return null;
}
else{
return null
}
},
nowtime() {
return new Date().getTime() - this.item.appointBeginTime;
......@@ -267,10 +273,10 @@ export default {
},
// 主动呼叫 roletype 1:助诊医生 2:接诊医生
drivingCall(id, roletype) {
if(roletype == 1 && this.isUserChat){
if (roletype == 1 && this.isUserChat) {
return false;
}
if(roletype == 2 && this.isDoctorChat){
if (roletype == 2 && this.isDoctorChat) {
return false;
}
this.getInfo(id).then((res) => {
......@@ -414,7 +420,7 @@ export default {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
padding: 0 5px;
padding: 0 5px;
.inquiry-user-l {
display: flex;
flex-direction: row;
......
......@@ -50,7 +50,7 @@
<img src="../../../assets/image/workbench/no_data_wz.png" alt="" />
<div class="nodata-title">暂时没有问诊</div>
</div>
<div class="pagination-container">
<div class="pagination-container" v-if="allSize>0">
<el-pagination
background
@size-change="handleSizeChange"
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册